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

Method GetCurrentChar

LuaParser/src/Lexer/TextReader.cpp:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55int TextReader::GetCurrentChar() {
56 if (!_isEof && _currentIndex < _text.size()) {
57 unsigned char ch = _text[_currentIndex];
58 return ch;
59 }
60 return EOZ;
61}
62
63bool TextReader::CheckNext1(int ch) {
64 if (_currentIndex < _text.size() && _text[_currentIndex] == ch) {

Callers 12

LexMethod · 0.80
ParseMethod · 0.80
LexMethod · 0.80
AnalyzeDocFormatMethod · 0.80
LexMethod · 0.80
ReadNumeralMethod · 0.80
SkipSepMethod · 0.80
ReadLongStringMethod · 0.80
ReadLongCLikeCommentMethod · 0.80
ReadStringMethod · 0.80
IncLinenumberMethod · 0.80
CurrentIsNewLineMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected