MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / EatWhile

Method EatWhile

LuaParser/include/LuaParser/Lexer/TextReader.h:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34 template<class Fn>
35 std::size_t EatWhile(Fn fn) {
36 std::size_t count = 0;
37 while (!IsEof() && fn(GetCurrentChar())) {
38 SaveAndNext();
39 count++;
40 }
41 return count;
42 }
43
44 bool IsEof() const;
45

Callers 4

LexMethod · 0.80
ParseMethod · 0.80
AnalyzeDocFormatMethod · 0.80
LexMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected