* Skip UTF-8 character, and advance reader. * @note The reader is advanced, even if no valid data was present. * @note This behaves different to Utf8View::iterator. * Here we do not skip overlong encodings, because we want to * allow binary data to follow UTF-8 data. */
| 436 | * allow binary data to follow UTF-8 data. |
| 437 | */ |
| 438 | void SkipUtf8() |
| 439 | { |
| 440 | auto len = this->PeekUtf8().first; |
| 441 | this->Skip(len > 0 ? len : 1); // advance at least one byte |
| 442 | } |
| 443 | |
| 444 | /** |
| 445 | * Check whether the next data matches 'str'. |
no test coverage detected