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

Function Utf8Encode

internal/utf8.cc:483–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483size_t Utf8Encode(char32_t code_point, std::string* absl_nonnull buffer) {
484 ABSL_DCHECK(buffer != nullptr);
485
486 char storage[4];
487 size_t storage_len = Utf8Encode(code_point, storage);
488 buffer->append(storage, storage_len);
489 return storage_len;
490}
491
492size_t Utf8Encode(char32_t code_point, char* absl_nonnull buffer) {
493 ABSL_DCHECK(buffer != nullptr);

Callers

nothing calls this directly

Calls 1

UnicodeIsValidFunction · 0.85

Tested by

no test coverage detected