MCPcopy Create free account
hub / github.com/beefytech/Beef / SrcPtrHasToken

Method SrcPtrHasToken

IDEHelper/Compiler/BfParser.cpp:725–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723}
724
725bool 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
742void BfParser::AddErrorNode(int startIdx, int endIdx)
743{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected