Home
last modified time | relevance | path

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

/system/core/libutils/
DUnicode.cpp455 char16_t* u16cur = dst; in utf8_to_utf16_no_null_terminator() local
457 while (u8cur < u8end && u16cur < u16end) { in utf8_to_utf16_no_null_terminator()
464 *u16cur++ = (char16_t) codepoint; in utf8_to_utf16_no_null_terminator()
468 *u16cur++ = (char16_t) ((codepoint >> 10) + 0xD800); in utf8_to_utf16_no_null_terminator()
469 if (u16cur >= u16end) { in utf8_to_utf16_no_null_terminator()
471 return u16cur-1; in utf8_to_utf16_no_null_terminator()
473 *u16cur++ = (char16_t) ((codepoint & 0x3FF) + 0xDC00); in utf8_to_utf16_no_null_terminator()
478 return u16cur; in utf8_to_utf16_no_null_terminator()