Example #1
0
        public bool QueryStringAhead(string match, int start)
        {
            string peek;

            bool ret = reader.PeekAhead(out peek, Position + start, match.Length) == match.Length && peek == match;

            Print($"&2;Querying for string &3;{match}&2; at offset &5;{start}&2; (position &5;{Position + start}&2;); {(ret ? "&2;match" : "&c;no match")}&2; found.");

            return(ret);
        }