MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / isComment

Method isComment

TheForceEngine/TFE_System/parser.cpp:62–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62bool TFE_Parser::isComment(const char* buffer)
63{
64 const size_t commentCount = m_commentStrings.size();
65 const std::string* comments = m_commentStrings.data();
66 for (size_t c = 0; c < commentCount; c++)
67 {
68 if (strncmp(comments[c].c_str(), buffer, comments[c].length()) == 0)
69 {
70 return true;
71 }
72 }
73 return false;
74}
75
76// Read the next non-comment/whitespace line.
77const char* TFE_Parser::readLine(size_t& bufferPos, bool skipLeadingWhitespace, bool commentOnlyAtBeginning)

Callers

nothing calls this directly

Calls 3

dataMethod · 0.80
c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected