MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / Utf8IsValid

Function Utf8IsValid

internal/utf8.cc:318–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316} // namespace
317
318bool 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
325bool Utf8IsValid(const absl::Cord& str) {
326 CordReader reader(str);

Callers 9

CreateStringMethod · 0.85
TESTFunction · 0.85
UnescapeInternalFunction · 0.85
TESTFunction · 0.85

Calls 3

Utf8IsValidImplFunction · 0.85
Utf8ValidateImplFunction · 0.85
ResetMethod · 0.45

Tested by 6

TESTFunction · 0.68
TESTFunction · 0.68