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

Method SetCursorIdx

IDEHelper/Compiler/BfParser.cpp:488–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488void BfParser::SetCursorIdx(int cursorIdx)
489{
490 mCursorIdx = cursorIdx;
491 mCursorCheckIdx = cursorIdx;
492
493 int checkIdx = cursorIdx;
494 while (checkIdx > 0)
495 {
496 char c = mSrc[checkIdx - 1];
497 if (!IsWhitespace(c))
498 {
499 if (c == '.')
500 mCursorCheckIdx = checkIdx;
501 break;
502 }
503 checkIdx--;
504 }
505}
506
507//static int gDeleteCount = 0;
508//static int gIndentCount = 0;

Callers 3

CEEmitParseMethod · 0.80
BfParser_SetCursorIdxFunction · 0.80
BfParser_SetAutocompleteFunction · 0.80

Calls 1

IsWhitespaceFunction · 0.70

Tested by

no test coverage detected