MCPcopy Create free account
hub / github.com/RenderKit/embree / trySymbol

Method trySymbol

common/lexers/tokenstream.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 bool TokenStream::trySymbol(const std::string& symbol)
55 {
56 size_t pos = 0;
57 while (pos < symbol.size()) {
58 if (symbol[pos] != cin->peek()) { cin->unget(pos); return false; }
59 cin->drop(); pos++;
60 }
61 return true;
62 }
63
64 bool TokenStream::trySymbols(Token& token, const ParseLocation& loc)
65 {

Callers 1

parseMethod · 0.80

Calls 2

dropMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected