| 723 | } |
| 724 | |
| 725 | bool BfParser::SrcPtrHasToken(const char* name) |
| 726 | { |
| 727 | const char* namePtr = name; |
| 728 | int checkIdx = mSrcIdx - 1; |
| 729 | while (*namePtr) |
| 730 | { |
| 731 | if (*(namePtr++) != mSrc[checkIdx]) |
| 732 | return false; |
| 733 | checkIdx++; |
| 734 | } |
| 735 | if (!IsWhitespaceOrPunctuation(mSrc[checkIdx])) |
| 736 | return false; |
| 737 | mSrcIdx = checkIdx; |
| 738 | mTokenEnd = checkIdx; |
| 739 | return true; |
| 740 | } |
| 741 | |
| 742 | void BfParser::AddErrorNode(int startIdx, int endIdx) |
| 743 | { |
nothing calls this directly
no test coverage detected