Lines Matching defs:byte_idx

213   Idx byte_idx, end_idx, remain_len;
219 for (byte_idx = pstr->valid_len; byte_idx < end_idx;)
224 remain_len = end_idx - byte_idx;
233 ch = pstr->raw_mbs [pstr->raw_mbs_idx + byte_idx + i];
234 buf[i] = pstr->mbs[byte_idx + i] = pstr->trans[ch];
239 p = (const char *) pstr->raw_mbs + pstr->raw_mbs_idx + byte_idx;
251 wc = (wchar_t) pstr->raw_mbs[pstr->raw_mbs_idx + byte_idx];
258 pstr->wcs[byte_idx++] = wc;
260 for (remain_len = byte_idx + mbclen - 1; byte_idx < remain_len ;)
261 pstr->wcs[byte_idx++] = WEOF;
263 pstr->valid_len = byte_idx;
264 pstr->valid_raw_len = byte_idx;
275 Idx src_idx, byte_idx, end_idx, remain_len;
284 byte_idx = pstr->valid_len;
291 while (byte_idx < end_idx)
295 if (isascii (pstr->raw_mbs[pstr->raw_mbs_idx + byte_idx])
299 pstr->mbs[byte_idx]
300 = toupper (pstr->raw_mbs[pstr->raw_mbs_idx + byte_idx]);
303 pstr->wcs[byte_idx] = (wchar_t) pstr->mbs[byte_idx];
304 ++byte_idx;
308 remain_len = end_idx - byte_idx;
312 + byte_idx), remain_len, &pstr->cur_state);
323 memcpy (pstr->mbs + byte_idx, buf, mbclen);
326 src_idx = byte_idx;
331 memcpy (pstr->mbs + byte_idx,
332 pstr->raw_mbs + pstr->raw_mbs_idx + byte_idx, mbclen);
333 pstr->wcs[byte_idx++] = wcu;
335 for (remain_len = byte_idx + mbclen - 1; byte_idx < remain_len ;)
336 pstr->wcs[byte_idx++] = WEOF;
341 int ch = pstr->raw_mbs[pstr->raw_mbs_idx + byte_idx];
342 pstr->mbs[byte_idx] = ch;
344 pstr->wcs[byte_idx++] = (wchar_t) ch;
355 pstr->valid_len = byte_idx;
356 pstr->valid_raw_len = byte_idx;
360 for (src_idx = pstr->valid_raw_len; byte_idx < end_idx;)
365 remain_len = end_idx - byte_idx;
391 memcpy (pstr->mbs + byte_idx, buf, mbclen);
396 if (byte_idx + mbcdlen > pstr->bufs_len)
411 for (i = 0; i < (size_t) byte_idx; ++i)
416 memcpy (pstr->mbs + byte_idx, buf, mbcdlen);
417 pstr->wcs[byte_idx] = wcu;
418 pstr->offsets[byte_idx] = src_idx;
421 pstr->offsets[byte_idx + i]
423 pstr->wcs[byte_idx + i] = WEOF;
430 byte_idx += mbcdlen;
435 memcpy (pstr->mbs + byte_idx, p, mbclen);
438 memcpy (pstr->mbs + byte_idx, p, mbclen);
444 pstr->offsets[byte_idx + i] = src_idx + i;
448 pstr->wcs[byte_idx++] = wcu;
450 for (remain_len = byte_idx + mbclen - 1; byte_idx < remain_len ;)
451 pstr->wcs[byte_idx++] = WEOF;
460 pstr->mbs[byte_idx] = ch;
463 pstr->offsets[byte_idx] = src_idx;
467 pstr->wcs[byte_idx++] = (wchar_t) ch;
478 pstr->valid_len = byte_idx;