public void seekp(StringTokenizerPos where) { prev_pos = pos; prev_line_no = line_no; line_no = where.line_no; pos = where.char_pos; return; }
public string ReadStringUntill(string terminator) { int beg = pos; while (!eof()) { StringTokenizerPos b = tellp(); string t = read(); if (t == terminator) { seekp(b); return(str.Substring(beg, b.char_pos - beg)); } } throw new ApplicationException(string.Format("Не могу найти токен {0}", terminator)); }
public void seekp( StringTokenizerPos where ) { prev_pos = pos; prev_line_no = line_no; line_no = where.line_no; pos = where.char_pos; return; }