| 32 | } |
| 33 | |
| 34 | bool UTF8StringReader::TryRead(codepoint_t* outCodepoint) |
| 35 | { |
| 36 | if (_current == nullptr) |
| 37 | return false; |
| 38 | |
| 39 | codepoint_t codepoint = String::getNextCodepoint(_current, &_current); |
| 40 | *outCodepoint = codepoint; |
| 41 | if (codepoint == 0) |
| 42 | { |
| 43 | _current = nullptr; |
| 44 | return false; |
| 45 | } |
| 46 | return true; |
| 47 | } |
| 48 | |
| 49 | void UTF8StringReader::Skip() |
| 50 | { |
nothing calls this directly
no test coverage detected