Home
last modified time | relevance | path

Searched refs:byte_idx (Results 1 – 2 of 2) sorted by relevance

/glibc-2.36/posix/
Dregex_internal.c220 Idx byte_idx, end_idx, remain_len; in build_wcs_buffer() local
226 for (byte_idx = pstr->valid_len; byte_idx < end_idx;) in build_wcs_buffer()
231 remain_len = end_idx - byte_idx; in build_wcs_buffer()
240 ch = pstr->raw_mbs [pstr->raw_mbs_idx + byte_idx + i]; in build_wcs_buffer()
241 buf[i] = pstr->mbs[byte_idx + i] = pstr->trans[ch]; in build_wcs_buffer()
246 p = (const char *) pstr->raw_mbs + pstr->raw_mbs_idx + byte_idx; in build_wcs_buffer()
254 wc = (wchar_t) pstr->raw_mbs[pstr->raw_mbs_idx + byte_idx]; in build_wcs_buffer()
267 pstr->wcs[byte_idx++] = wc; in build_wcs_buffer()
269 for (remain_len = byte_idx + mbclen - 1; byte_idx < remain_len ;) in build_wcs_buffer()
270 pstr->wcs[byte_idx++] = WEOF; in build_wcs_buffer()
[all …]
Dregex_internal.h788 int byte_idx; in re_string_char_size_at() local
791 for (byte_idx = 1; idx + byte_idx < pstr->valid_len; ++byte_idx) in re_string_char_size_at()
792 if (pstr->wcs[idx + byte_idx] != WEOF) in re_string_char_size_at()
794 return byte_idx; in re_string_char_size_at()