| 486 | } |
| 487 | |
| 488 | void 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; |
no test coverage detected