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

Method GetTokenHash

IDEHelper/Compiler/BfParser.cpp:1509–1521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1507const int gClassConst = 0;
1508
1509uint32 BfParser::GetTokenHash()
1510{
1511 char hashChars[4] = { 0 };
1512 int idx = 0;
1513 uint32 tokenHash = 0;
1514 int checkIdx = mSrcIdx - 1;
1515 while ((!IsWhitespaceOrPunctuation(mSrc[checkIdx])) && (idx < 4))
1516 {
1517 hashChars[idx++] = mSrc[checkIdx];
1518 checkIdx++;
1519 }
1520 return *((uint32*)hashChars);
1521}
1522
1523double BfParser::ParseLiteralDouble()
1524{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected