| 316 | } // namespace |
| 317 | |
| 318 | bool Utf8IsValid(absl::string_view str) { |
| 319 | StringReader reader(str); |
| 320 | bool valid = Utf8IsValidImpl(&reader); |
| 321 | ABSL_ASSERT((reader.Reset(str), valid == Utf8ValidateImpl(&reader).second)); |
| 322 | return valid; |
| 323 | } |
| 324 | |
| 325 | bool Utf8IsValid(const absl::Cord& str) { |
| 326 | CordReader reader(str); |