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

Function ReduceEmoji

src/String.c:542–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540}
541
542static cc_codepoint ReduceEmoji(cc_codepoint cp) {
543 if (cp == 0x1F31E) return 0x263C;
544 if (cp == 0x1F3B5) return 0x266B;
545 if (cp == 0x1F642) return 0x263A;
546
547 if (cp == 0x1F600 || cp == 0x1F601 || cp == 0x1F603) return 0x263A;
548 if (cp == 0x1F604 || cp == 0x1F606 || cp == 0x1F60A) return 0x263A;
549 return cp;
550}
551
552cc_bool Convert_TryCodepointToCP437(cc_codepoint cp, char* c) {
553 int i;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected