Searched refs:u8len (Results 1 – 4 of 4) sorted by relevance
/aosp14/system/core/libutils/ |
H A D | Unicode.cpp | 397 ssize_t utf8_to_utf16_length(const uint8_t* u8str, size_t u8len, bool overreadIsFatal) in utf8_to_utf16_length() argument 399 const uint8_t* const u8end = u8str + u8len; in utf8_to_utf16_length() 437 char16_t* utf8_to_utf16(const uint8_t* u8str, size_t u8len, char16_t* u16str, size_t u16len) { in utf8_to_utf16() argument 440 char16_t* end = utf8_to_utf16_no_null_terminator(u8str, u8len, u16str, u16len - 1); in utf8_to_utf16() 458 size_t u8len = utf8_codepoint_len(*u8cur); in utf8_to_utf16_no_null_terminator() local 459 uint32_t codepoint = utf8_to_utf32_codepoint(u8cur, u8len); in utf8_to_utf16_no_null_terminator() 476 u8cur += u8len; in utf8_to_utf16_no_null_terminator()
|
H A D | String16.cpp | 41 char16_t* String16::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()
|
/aosp14/system/core/libutils/include/utils/ |
H A D | String16.h | 125 static char16_t* allocFromUTF8(const char* u8str, size_t u8len);
|
/aosp14/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 820 const base::expected<size_t, IOError> u8len = decodeLength(&u8str); in stringAt() local 821 if (UNLIKELY(!u8len.has_value())) { in stringAt() 822 return base::unexpected(u8len.error()); in stringAt() 826 if ((uint32_t)(u8str+*u8len-strings) < mStringPoolSize) { in stringAt() 835 auto decodedString = stringDecodeAt(idx, u8str, *u8len); in stringAt() 892 (long long)idx, (long long)(u8str+*u8len-strings), in stringAt() 929 const base::expected<size_t, IOError> u8len = decodeLength(&str); in string8At() local 930 if (UNLIKELY(!u8len.has_value())) { in string8At() 931 return base::unexpected(u8len.error()); in string8At() 934 if ((uint32_t)(str+*u8len-strings) < mStringPoolSize) { in string8At() [all …]
|