Lines Matching defs:utf8In
418 size_t ConvertRegionUtf8ToUtf16(const uint8_t *utf8In, uint16_t *utf16Out, size_t utf8Len, size_t utf16Len)
420 size_t safeUtf8Len = FixUtf8Len(utf8In, utf8Len);
424 uint8_t src = utf8In[in_pos];
427 const uint8_t c2 = utf8In[++in_pos];
428 const uint8_t c3 = utf8In[++in_pos];
429 const uint8_t c4 = utf8In[++in_pos];
447 const uint8_t c2 = utf8In[++in_pos];
448 const uint8_t c3 = utf8In[++in_pos];
456 const uint8_t c2 = utf8In[++in_pos];
463 utf16Out[out_pos++] = static_cast<uint16_t>(utf8In[in_pos++]);
464 } while (in_pos < safeUtf8Len && out_pos < utf16Len && utf8In[in_pos] < 0x80);
470 utf16Out[out_pos++] = static_cast<uint16_t>(utf8In[in_pos++]);