MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / codepoints_from_utf16

Function codepoints_from_utf16

unicode.h:343–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343static std::vector<uint32_t> codepoints_from_utf16(const std::vector<uint16_t> & utf16) {
344 std::vector<uint32_t> result;
345 size_t offset = 0;
346 while (offset < utf16.size())
347 result.push_back(codepoint_from_utf16(utf16, offset));
348 return result;
349}
350
351#define CODEPOINT_TYPE_UNIDENTIFIED 0
352#define CODEPOINT_TYPE_DIGIT 1

Callers

nothing calls this directly

Calls 3

codepoint_from_utf16Function · 0.85
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected