コード例 #1
0
 public void seekp(StringTokenizerPos where)
 {
     prev_pos     = pos;
     prev_line_no = line_no;
     line_no      = where.line_no;
     pos          = where.char_pos;
     return;
 }
コード例 #2
0
        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));
        }
コード例 #3
0
 public void seekp( StringTokenizerPos where )
 {
  prev_pos = pos;
  prev_line_no = line_no;
  line_no = where.line_no;
  pos = where.char_pos;
  return;
 }