| 2624 | } |
| 2625 | |
| 2626 | void RemoveCond(int& idx, bool doRemove) |
| 2627 | { |
| 2628 | if (doRemove) |
| 2629 | { |
| 2630 | if (mMatchStartIdx == -1) |
| 2631 | mMatchStartIdx = idx; |
| 2632 | } |
| 2633 | else |
| 2634 | { |
| 2635 | if (mMatchStartIdx != -1) |
| 2636 | { |
| 2637 | mVec->RemoveRange(mMatchStartIdx, idx - mMatchStartIdx); |
| 2638 | idx = mMatchStartIdx; |
| 2639 | mMatchStartIdx = -1; |
| 2640 | } |
| 2641 | } |
| 2642 | } |
| 2643 | |
| 2644 | void Finish() |
| 2645 | { |
no test coverage detected