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

Method lcaseToken

YACReaderLibrary/db/query_parser.cpp:190–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190std::string QueryParser::lcaseToken(bool advance)
191{
192 if (isEof()) {
193 return "";
194 }
195
196 auto lexeme = currentToken.lexeme();
197
198 auto res = (tokenType() == Token::Type::quotedWord) ? currentToken.lexeme().substr(1, lexeme.size() - 2) : lexeme;
199
200 if (advance) {
201 this->advance();
202 }
203 return toLower(res);
204}
205
206Token::Type QueryParser::tokenType()
207{

Callers

nothing calls this directly

Calls 2

advanceMethod · 0.95
lexemeMethod · 0.80

Tested by

no test coverage detected