示例#1
0
        public GlobParserContext(string pattern, bool caseSensitive)
        {
            _tokenizer    = new GlobTokenizer(pattern);
            _currentToken = null;
            _regexOptions = RegexOptions.Compiled | RegexOptions.Singleline;

            if (!caseSensitive)
            {
                _regexOptions |= RegexOptions.IgnoreCase;
            }
        }
示例#2
0
 public void Accept()
 {
     _currentToken = _tokenizer.Scan();
 }