MCPcopy Create free account
hub / github.com/buke/quickjs-go / unicode_get_short_code

Function unicode_get_short_code

deps/quickjs/libunicode.c:595–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593} DecompTypeEnum;
594
595static uint32_t unicode_get_short_code(uint32_t c)
596{
597 static const uint16_t unicode_short_table[2] = { 0x2044, 0x2215 };
598
599 if (c < 0x80)
600 return c;
601 else if (c < 0x80 + 0x50)
602 return c - 0x80 + 0x300;
603 else
604 return unicode_short_table[c - 0x80 - 0x50];
605}
606
607static uint32_t unicode_get_lower_simple(uint32_t c)
608{

Callers 1

unicode_decomp_entryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected