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

Function Utf8Validate

internal/utf8.cc:342–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342std::pair<size_t, bool> Utf8Validate(absl::string_view str) {
343 StringReader reader(str);
344 auto result = Utf8ValidateImpl(&reader);
345 ABSL_ASSERT((reader.Reset(str), result.second == Utf8IsValidImpl(&reader)));
346 return result;
347}
348
349std::pair<size_t, bool> Utf8Validate(const absl::Cord& str) {
350 CordReader reader(str);

Callers 5

TESTFunction · 0.85

Calls 3

Utf8ValidateImplFunction · 0.85
Utf8IsValidImplFunction · 0.85
ResetMethod · 0.45

Tested by 5

TESTFunction · 0.68