MCPcopy Create free account
hub / github.com/Snapchat/Valdi / unicode_get_short_code

Function unicode_get_short_code

third-party/quickjs/src/quickjs/libunicode.c:490–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488} DecompTypeEnum;
489
490static uint32_t unicode_get_short_code(uint32_t c)
491{
492 static const uint16_t unicode_short_table[2] = { 0x2044, 0x2215 };
493
494 if (c < 0x80)
495 return c;
496 else if (c < 0x80 + 0x50)
497 return c - 0x80 + 0x300;
498 else
499 return unicode_short_table[c - 0x80 - 0x50];
500}
501
502static uint32_t unicode_get_lower_simple(uint32_t c)
503{

Callers 1

unicode_decomp_entryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected