Lines Matching refs:cur
135 static inline int32_t utf32_at_internal(const char* cur, size_t *num_read)
137 const char first_char = *cur;
140 return *cur;
142 cur++;
150 utf32 = (utf32 << 6) + (*cur++ & 0x3F);
199 char *cur = dst;
202 utf32_codepoint_to_utf8((uint8_t *)cur, *cur_utf32++, len);
203 cur += len;
205 *cur = '\0';
341 char *cur = dst;
353 utf32_codepoint_to_utf8((uint8_t*)cur, utf32, len);
354 cur += len;
356 *cur = '\0';
365 const char *cur = src;
367 while (*cur != '\0') {
368 const char first_char = *cur++;
385 if ((*cur & 0xC0) != 0x80) { // must be 10xxxxxx
389 utf32 = (utf32 << 6) + (*cur++ & 0x3F);
453 const char* cur;
456 for (cur = src, end = src + src_len, num_to_skip = 1;
457 cur < end;
458 cur += num_to_skip, ret++) {
459 const char first_char = *cur;
478 const char* cur = src;
481 while (cur < end) {
483 *cur_utf32++ = static_cast<char32_t>(utf32_at_internal(cur, &num_read));
484 cur += num_read;