MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / String_AppendUtf16

Function String_AppendUtf16

src/String.c:620–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620void String_AppendUtf16(cc_string* value, const void* data, int numBytes) {
621 const cc_unichar* chars = (const cc_unichar*)data;
622 int i; char c;
623
624 for (i = 0; i < (numBytes >> 1); i++) {
625 /* TODO: UTF16 to codepoint conversion */
626 if (Convert_TryCodepointToCP437(chars[i], &c)) String_Append(value, c);
627 }
628}
629
630void String_AppendUtf8(cc_string* value, const void* data, int numBytes) {
631 const cc_uint8* chars = (const cc_uint8*)data;

Callers 8

Platform_LoadSysFontsFunction · 0.85
Platform_DescribeErrorFunction · 0.85
Platform_DescribeErrorFunction · 0.85
Clipboard_GetTextFunction · 0.85
Clipboard_GetTextFunction · 0.85
Java_DecodeStringFunction · 0.85
Platform_DescribeErrorFunction · 0.85
GetClipboardLFunction · 0.85

Calls 2

String_AppendFunction · 0.85

Tested by

no test coverage detected