* Check whether the next data matches 'str', and skip it. */
| 452 | * Check whether the next data matches 'str', and skip it. |
| 453 | */ |
| 454 | [[nodiscard]] bool ReadIf(std::string_view str) |
| 455 | { |
| 456 | bool result = this->PeekIf(str); |
| 457 | if (result) this->Skip(str.size()); |
| 458 | return result; |
| 459 | } |
| 460 | /** |
| 461 | * If the next data matches 'str', then skip it. |
| 462 | */ |
no test coverage detected