MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / IsValidDecodeUTF8

Function IsValidDecodeUTF8

external/sentencepiece/src/util.h:179–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179inline bool IsValidDecodeUTF8(absl::string_view input, size_t *mblen) {
180 const char32 c = DecodeUTF8(input, mblen);
181 return c != kUnicodeError || *mblen == 3;
182}
183
184size_t EncodeUTF8(char32 c, char *output);
185

Callers 2

NormalizePrefixMethod · 0.85
DecodeMethod · 0.85

Calls 1

DecodeUTF8Function · 0.70

Tested by

no test coverage detected