Home
last modified time | relevance | path

Searched refs:codepoint (Results 1 – 1 of 1) sorted by relevance

/system/core/libutils/
DUnicode.cpp509 uint32_t codepoint = utf8_to_utf32_codepoint(u8cur, u8charLen); in utf8_to_utf16_length() local
510 if (codepoint > 0xFFFF) u16measuredLen++; // this will be a surrogate pair in utf16 in utf8_to_utf16_length()
547 uint32_t codepoint = utf8_to_utf32_codepoint(u8cur, u8len); in utf8_to_utf16_no_null_terminator() local
550 if (codepoint <= 0xFFFF) { in utf8_to_utf16_no_null_terminator()
552 *u16cur++ = (char16_t) codepoint; in utf8_to_utf16_no_null_terminator()
555 codepoint = codepoint - 0x10000; in utf8_to_utf16_no_null_terminator()
556 *u16cur++ = (char16_t) ((codepoint >> 10) + 0xD800); in utf8_to_utf16_no_null_terminator()
561 *u16cur++ = (char16_t) ((codepoint & 0x3FF) + 0xDC00); in utf8_to_utf16_no_null_terminator()