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

Function String_AppendCP1252

src/String.c:644–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644void String_AppendCP1252(cc_string* value, const void* data, int numBytes) {
645 const cc_uint8* chars = (const cc_uint8*)data;
646 int i; char c;
647
648 for (i = 0; i < numBytes; i++) {
649 if (Convert_TryCodepointToCP437(chars[i], &c)) String_Append(value, c);
650 }
651}
652
653int String_EncodeUtf8(void* data, const cc_string* src) {
654 cc_uint8* dst = (cc_uint8*)data;

Callers 2

Clipboard_GetTextFunction · 0.85
Clipboard_GetTextFunction · 0.85

Calls 2

String_AppendFunction · 0.85

Tested by

no test coverage detected