MCPcopy Create free account
hub / github.com/JuliaStrings/utf8proc / seqindex_decode_entry

Function seqindex_decode_entry

utf8proc.c:363–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363static utf8proc_int32_t seqindex_decode_entry(const utf8proc_uint16_t **entry)
364{
365 utf8proc_int32_t entry_cp = **entry;
366 if ((entry_cp & 0xF800) == 0xD800) {
367 *entry = *entry + 1;
368 entry_cp = ((entry_cp & 0x03FF) << 10) | (**entry & 0x03FF);
369 entry_cp += 0x10000;
370 }
371 return entry_cp;
372}
373
374static utf8proc_int32_t seqindex_decode_index(const utf8proc_uint32_t seqindex)
375{

Callers 2

seqindex_decode_indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected