示例#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));
 }