Searched refs:u8len (Results 1 - 2 of 2) sorted by relevance

/system/core/libutils/
H A DUnicode.cpp514 ssize_t utf8_to_utf16_length(const uint8_t* u8str, size_t u8len) argument
516 const uint8_t* const u8end = u8str + u8len;
540 char16_t* utf8_to_utf16_no_null_terminator(const uint8_t* u8str, size_t u8len, char16_t* u16str) argument
542 const uint8_t* const u8end = u8str + u8len;
547 size_t u8len = utf8_codepoint_len(*u8cur); local
548 uint32_t codepoint = utf8_to_utf32_codepoint(u8cur, u8len);
561 u8cur += u8len;
566 void utf8_to_utf16(const uint8_t* u8str, size_t u8len, char16_t* u16str) { argument
567 char16_t* end = utf8_to_utf16_no_null_terminator(u8str, u8len, u16str);
578 size_t u8len local
[all...]
H A DString16.cpp58 static char16_t* allocFromUTF8(const char* u8str, size_t u8len) argument
60 if (u8len == 0) return getEmptyString();
64 const ssize_t u16len = utf8_to_utf16_length(u8cur, u8len);
74 utf8_to_utf16(u8cur, u8len, u16str);

Completed in 5 milliseconds