| 60 | } |
| 61 | |
| 62 | bool 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. |
| 77 | const char* TFE_Parser::readLine(size_t& bufferPos, bool skipLeadingWhitespace, bool commentOnlyAtBeginning) |