Пример #1
0
 public bool IsMatch()
 {
     if (reader.IsMatch1('\r'))
     {
         reader.IsMatch1('\n');
         return(true);
     }
     else if (reader.IsMatch1('\n'))
     {
         return(true);
     }
     return(false);
 }
Пример #2
0
 private TokenType getNextToken()
 {
     if (!options.PreserveWhiteSpace)
     {
         TokenType tokenType = skipWhiteSpace();
         if (tokenType != TokenType.Normal)
         {
             addToken();
             return(tokenType);
         }
     }
     if (reader.ShouldLoadBuffer(1))
     {
         reader.LoadBuffer();
     }
     if (reader.IsMatch1(options.Quote))
     {
         return(getQuotedToken());
     }
     else
     {
         return(getUnquotedToken());
     }
 }
Пример #3
0
 public bool IsMatch()
 {
     return(reader.IsMatch1(first));
 }