Searched refs:byte_idx (Results 1 – 2 of 2) sorted by relevance
220 Idx byte_idx, end_idx, remain_len; in build_wcs_buffer() local226 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 …]
788 int byte_idx; in re_string_char_size_at() local791 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()