Lines Matching refs:utf16
71 int SkUTF::CountUTF16(const uint16_t* utf16, size_t byteLength) { in CountUTF16() argument
72 if (!utf16 || !is_align2(intptr_t(utf16)) || !is_align2(byteLength)) { in CountUTF16()
75 const uint16_t* src = (const uint16_t*)utf16; in CountUTF16()
239 size_t SkUTF::ToUTF16(SkUnichar uni, uint16_t utf16[2]) { in ToUTF16()
244 if (utf16) { in ToUTF16()
246 utf16[0] = (uint16_t)((0xD800 - 64) + (uni >> 10)); in ToUTF16()
247 utf16[1] = (uint16_t)(0xDC00 | (uni & 0x3FF)); in ToUTF16()
249 utf16[0] = (uint16_t)uni; in ToUTF16()
269 uint16_t utf16[2]; in UTF8ToUTF16() local
270 size_t count = ToUTF16(uni, utf16); in UTF8ToUTF16()
277 uint16_t* elems = utf16; in UTF8ToUTF16()