Lines Matching refs:cur
129 static inline int32_t utf32_at_internal(const char* cur, size_t *num_read) in utf32_at_internal() argument
131 const char first_char = *cur; in utf32_at_internal()
134 return *cur; in utf32_at_internal()
136 cur++; in utf32_at_internal()
144 utf32 = (utf32 << 6) + (*cur++ & 0x3F); in utf32_at_internal()
193 char *cur = dst; in utf32_to_utf8() local
196 utf32_codepoint_to_utf8((uint8_t *)cur, *cur_utf32++, len); in utf32_to_utf8()
197 cur += len; in utf32_to_utf8()
199 *cur = '\0'; in utf32_to_utf8()
335 char *cur = dst; in utf16_to_utf8() local
348 utf32_codepoint_to_utf8((uint8_t*)cur, utf32, len); in utf16_to_utf8()
349 cur += len; in utf16_to_utf8()
351 *cur = '\0'; in utf16_to_utf8()
360 const char *cur = src; in utf8_length() local
362 while (*cur != '\0') { in utf8_length()
363 const char first_char = *cur++; in utf8_length()
380 if ((*cur & 0xC0) != 0x80) { // must be 10xxxxxx in utf8_length()
384 utf32 = (utf32 << 6) + (*cur++ & 0x3F); in utf8_length()
448 const char* cur; in utf8_to_utf32_length() local
451 for (cur = src, end = src + src_len, num_to_skip = 1; in utf8_to_utf32_length()
452 cur < end; in utf8_to_utf32_length()
453 cur += num_to_skip, ret++) { in utf8_to_utf32_length()
454 const char first_char = *cur; in utf8_to_utf32_length()
473 const char* cur = src; in utf8_to_utf32() local
476 while (cur < end) { in utf8_to_utf32()
478 *cur_utf32++ = static_cast<char32_t>(utf32_at_internal(cur, &num_read)); in utf8_to_utf32()
479 cur += num_read; in utf8_to_utf32()