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

Method next

YACReaderLibrary/db/query_lexer.cpp:8–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6}
7
8Token QueryLexer::next()
9{
10 while (isSpace(peek())) {
11 get();
12 }
13
14 switch (peek()) {
15 case '\0':
16 return Token(Token::Type::eof);
17 case '(':
18 case ')':
19 return single(Token::Type::opcode);
20 case ':':
21 return single(Token::Type::equal);
22 case '=':
23 return equal();
24 case '<':
25 return minor();
26 case '>':
27 return major();
28 case '"':
29 return quotedWord();
30 default:
31 return word();
32 }
33}
34
35char QueryLexer::peek()
36{

Callers 15

parseCommandFunction · 0.45
updateFromSQLQueryMethod · 0.45
getFolderNameMethod · 0.45
getFolderMethod · 0.45
getLabelComicsMethod · 0.45
getFavoritesMethod · 0.45
getReadingMethod · 0.45
getReadingListsMethod · 0.45
updateChildrenInfoMethod · 0.45
insertComicsInLabelMethod · 0.45

Calls 1

TokenClass · 0.85

Tested by

no test coverage detected