MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / utf16_encode_units

Function utf16_encode_units

StereoKitC/libraries/unicode.cpp:104–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102///////////////////////////////////////////
103
104int32_t utf16_encode_units(char32_t ch) {
105 if (ch < 0x00010000L) return 1;
106 if (ch < 0x00110000L) return 2;
107 return 0;
108}
109
110///////////////////////////////////////////
111

Callers 2

utf_insert_charFunction · 0.85
utf16_encode_appendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected