public bool IsMatch() { if (reader.IsMatch1('\r')) { reader.IsMatch1('\n'); return(true); } else if (reader.IsMatch1('\n')) { return(true); } return(false); }
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()); } }
public bool IsMatch() { return(reader.IsMatch1(first)); }