Searched refs:u8len (Results 1 – 2 of 2) sorted by relevance
/system/core/libutils/ |
D | Unicode.cpp | 527 ssize_t utf8_to_utf16_length(const uint8_t* u8str, size_t u8len, bool overreadIsFatal) in utf8_to_utf16_length() argument 529 const uint8_t* const u8end = u8str + u8len; in utf8_to_utf16_length() 567 char16_t* utf8_to_utf16(const uint8_t* u8str, size_t u8len, char16_t* u16str, size_t u16len) { in utf8_to_utf16() argument 570 char16_t* end = utf8_to_utf16_no_null_terminator(u8str, u8len, u16str, u16len - 1); in utf8_to_utf16() 588 size_t u8len = utf8_codepoint_len(*u8cur); in utf8_to_utf16_no_null_terminator() local 589 uint32_t codepoint = utf8_to_utf32_codepoint(u8cur, u8len); in utf8_to_utf16_no_null_terminator() 606 u8cur += u8len; in utf8_to_utf16_no_null_terminator()
|
D | String16.cpp | 41 static char16_t* allocFromUTF8(const char* u8str, size_t u8len) in allocFromUTF8() argument 43 if (u8len == 0) return getEmptyString(); in allocFromUTF8() 47 const ssize_t u16len = utf8_to_utf16_length(u8cur, u8len); in allocFromUTF8() 57 utf8_to_utf16(u8cur, u8len, u16str, ((size_t) u16len) + 1); in allocFromUTF8()
|