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

Function IsValidCodepoint

external/sentencepiece/src/util.h:165–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163inline bool IsTrailByte(char x) { return static_cast<signed char>(x) < -0x40; }
164
165inline bool IsValidCodepoint(char32 c) {
166 return (static_cast<uint32_t>(c) < 0xD800) || (c >= 0xE000 && c <= 0x10FFFF);
167}
168
169bool IsStructurallyValid(absl::string_view str);
170

Callers 5

TESTFunction · 0.85
DecodeUTF8Function · 0.85
IsStructurallyValidFunction · 0.85
IsValidSentencePieceMethod · 0.85
LoadSentencesMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68