Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/
DUtil.cpp60 ssize_t utf8_length = utf16_to_utf8_length(utf16.data(), utf16.length()); in Utf16ToUtf8() local
61 if (utf8_length <= 0) { in Utf16ToUtf8()
66 utf8.resize(utf8_length); in Utf16ToUtf8()
67 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin(), utf8_length + 1); in Utf16ToUtf8()
/frameworks/base/tools/aapt2/util/
DUtil.cpp397 const size_t utf8_length = (size_t) utf32_to_utf8_length(&codepoint, 1); in ModifiedUtf8ToUtf8() local
398 if (utf8_length != 4) { in ModifiedUtf8ToUtf8()
404 output.resize(output.size() + utf8_length); in ModifiedUtf8ToUtf8()
405 utf32_to_utf8((char32_t*) &codepoint, 1, start, utf8_length + 1); in ModifiedUtf8ToUtf8()
436 ssize_t utf8_length = utf16_to_utf8_length(utf16.data(), utf16.length()); in Utf16ToUtf8() local
437 if (utf8_length <= 0) { in Utf16ToUtf8()
442 utf8.resize(utf8_length); in Utf16ToUtf8()
443 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin(), utf8_length + 1); in Utf16ToUtf8()
/frameworks/base/tools/aapt2/
DResourceUtils.cpp921 const size_t utf8_length = xml_string_.text.size(); in AppendText() local
922 ssize_t len = utf8_to_utf16_length(utf8_data + previous_len, utf8_length - previous_len); in AppendText()