* Check whether the next UTF-8 char matches 'c', and skip it. */
| 499 | * Check whether the next UTF-8 char matches 'c', and skip it. |
| 500 | */ |
| 501 | [[nodiscard]] bool ReadUtf8If(char32_t c) |
| 502 | { |
| 503 | auto [len, result] = this->PeekUtf8(); |
| 504 | if (len == 0 || result != c) return false; |
| 505 | this->Skip(len); |
| 506 | return true; |
| 507 | } |
| 508 | /** |
| 509 | * If the next data matches the UTF-8 char 'c', then skip it. |
| 510 | */ |
no test coverage detected