HomeSort by relevance Sort by last modified time
    Searched refs:u16len (Results 1 - 3 of 3) sorted by null

  /system/core/libutils/
String16.cpp 60 const ssize_t u16len = utf8_to_utf16_length(u8cur, u8len); local
61 if (u16len < 0) {
65 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1));
70 utf8_to_utf16(u8cur, u8len, u16str, ((size_t) u16len) + 1);
Unicode.cpp 604 char16_t* utf8_to_utf16(const uint8_t* u8str, size_t u8len, char16_t* u16str, size_t u16len) {
606 LOG_ALWAYS_FATAL_IF(u16len == 0 || u16len > SSIZE_MAX, "u16len is %zu", u16len);
607 char16_t* end = utf8_to_utf16_no_null_terminator(u8str, u8len, u16str, u16len - 1);
  /frameworks/base/libs/androidfw/
ResourceTypes.cpp 697 const char16_t* ResStringPool::stringAt(size_t idx, size_t* u16len) const
707 *u16len = decodeLength(&str);
708 if ((uint32_t)(str+*u16len-strings) < mStringPoolSize) {
710 if (str[*u16len] != 0x0000) {
718 (int)idx, (int)(str+*u16len-strings), (int)mStringPoolSize);
724 *u16len = decodeLength(&u8str);
755 if (actualLen < 0 || (size_t)actualLen != *u16len) {
758 (long long)idx, (long long)actualLen, (long long)*u16len);
769 char16_t *u16str = (char16_t *)calloc(*u16len+1, sizeof(char16_t));
779 utf8_to_utf16(u8str, u8len, u16str, *u16len + 1)
    [all...]

Completed in 714 milliseconds