| 33 | |
| 34 | template<class Fn> |
| 35 | std::size_t EatWhile(Fn fn) { |
| 36 | std::size_t count = 0; |
| 37 | while (!IsEof() && fn(GetCurrentChar())) { |
| 38 | SaveAndNext(); |
| 39 | count++; |
| 40 | } |
| 41 | return count; |
| 42 | } |
| 43 | |
| 44 | bool IsEof() const; |
| 45 |
no outgoing calls
no test coverage detected