MCPcopy Create free account
hub / github.com/YACReader/yacreader / token

Method token

YACReaderLibrary/db/query_parser.cpp:175–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175std::string QueryParser::token(bool advance)
176{
177 if (isEof()) {
178 return "";
179 }
180
181 auto lexeme = currentToken.lexeme();
182
183 auto res = (tokenType() == Token::Type::quotedWord) ? currentToken.lexeme().substr(1, lexeme.size() - 2) : lexeme; // TODO process quotedWordDiferently?
184 if (advance) {
185 this->advance();
186 }
187 return res;
188}
189
190std::string QueryParser::lcaseToken(bool advance)
191{

Callers

nothing calls this directly

Calls 2

advanceMethod · 0.95
lexemeMethod · 0.80

Tested by

no test coverage detected