Home
last modified time | relevance | path

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

/system/core/libutils/binder/
DUnicode.cpp288 static constexpr bool is_surrogate_pair(char16_t w1, char16_t w2) { in is_surrogate_pair() argument
289 return ((w1 & 0xfc00) == 0xd800) && ((w2 & 0xfc00) == 0xdc00); in is_surrogate_pair()
338 char16_t w2; in utf16_to_utf8() local
369 if (in < in_end && (w2 = *in, is_surrogate_pair(w, w2))) { in utf16_to_utf8()
372 char32_t dw = (char32_t)(0x10000 + ((w - 0xd800) << 10) + (w2 - 0xdc00)); in utf16_to_utf8()