Home
last modified time | relevance | path

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

/ndk/sources/host-tools/sed-4.2.1/lib/
Dregex_internal.c214 Idx byte_idx, end_idx, remain_len; in build_wcs_buffer() local
220 for (byte_idx = pstr->valid_len; byte_idx < end_idx;) in build_wcs_buffer()
225 remain_len = end_idx - byte_idx; in build_wcs_buffer()
234 ch = pstr->raw_mbs [pstr->raw_mbs_idx + byte_idx + i]; in build_wcs_buffer()
235 buf[i] = pstr->mbs[byte_idx + i] = pstr->trans[ch]; in build_wcs_buffer()
240 p = (const char *) pstr->raw_mbs + pstr->raw_mbs_idx + byte_idx; in build_wcs_buffer()
252 wc = (wchar_t) pstr->raw_mbs[pstr->raw_mbs_idx + byte_idx]; in build_wcs_buffer()
259 pstr->wcs[byte_idx++] = wc; in build_wcs_buffer()
261 for (remain_len = byte_idx + mbclen - 1; byte_idx < remain_len ;) in build_wcs_buffer()
262 pstr->wcs[byte_idx++] = WEOF; in build_wcs_buffer()
[all …]
Dregex_internal.h811 int byte_idx; in internal_function() local
814 for (byte_idx = 1; idx + byte_idx < pstr->valid_len; ++byte_idx) in internal_function()
815 if (pstr->wcs[idx + byte_idx] != WEOF) in internal_function()
817 return byte_idx; in internal_function()