public void SetSource(Stream source, int fallbackCodePage)
 {
     this.buffer = ScanBuff.GetBuffer(source, fallbackCodePage);
     this.lNum   = 0;
     this.code   = '\n'; // to initialize yyline, yycol and lineStart
     GetCode();
 }
 public void SetSource(IList <string> source)
 {
     this.buffer = ScanBuff.GetBuffer(source);
     this.code   = '\n'; // to initialize yyline, yycol and lineStart
     this.lNum   = 0;
     GetCode();
 }
Ejemplo n.º 3
0
 public void SetSource(TextReader source)
 {
     this.buffer = ScanBuff.GetBuffer(source);
     this.lNum   = 0;
     this.code   = '\n'; // to initialize yyline, yycol and lineStart
     GetCode();
 }
 public void SetSource(string source, int offset)
 {
     this.buffer     = ScanBuff.GetBuffer(source);
     this.buffer.Pos = offset;
     this.lNum       = 0;
     this.code       = '\n'; // to initialize yyline, yycol and lineStart
     GetCode();
 }
Ejemplo n.º 5
0
 public void SetSource(IEnumerator <char> source)
 {
     this.buffer     = ScanBuff.GetBuffer(source);
     this.buffer.Pos = 0;
     this.lNum       = 0;
     this.code       = '\n'; // to initialize yyline, yycol and lineStart
     GetCode();
 }