Lines Matching refs:cur
136 static inline int32_t utf32_at_internal(const char* cur, size_t *num_read) in utf32_at_internal() argument
138 const char first_char = *cur; in utf32_at_internal()
141 return *cur; in utf32_at_internal()
143 cur++; in utf32_at_internal()
151 utf32 = (utf32 << 6) + (*cur++ & 0x3F); in utf32_at_internal()
208 char *cur = dst; in utf32_to_utf8() local
212 utf32_codepoint_to_utf8((uint8_t *)cur, *cur_utf32++, len); in utf32_to_utf8()
213 cur += len; in utf32_to_utf8()
217 *cur = '\0'; in utf32_to_utf8()
336 char *cur = dst; in utf16_to_utf8() local
350 utf32_codepoint_to_utf8((uint8_t*)cur, utf32, len); in utf16_to_utf8()
351 cur += len; in utf16_to_utf8()
355 *cur = '\0'; in utf16_to_utf8()
364 const char *cur = src; in utf8_length() local
366 while (*cur != '\0') { in utf8_length()
367 const char first_char = *cur++; in utf8_length()
384 if ((*cur & 0xC0) != 0x80) { // must be 10xxxxxx in utf8_length()
388 utf32 = (utf32 << 6) + (*cur++ & 0x3F); in utf8_length()