Lines Matching refs:valid_len
61 pstr->valid_len = (pstr->mbs_allocated || dfa->mb_cur_max > 1) ? 0 : len; in re_string_allocate()
62 pstr->valid_raw_len = pstr->valid_len; in re_string_allocate()
97 if (pstr->bufs_len > pstr->valid_len + dfa->mb_cur_max) in re_string_construct()
120 pstr->valid_len = pstr->bufs_len; in re_string_construct()
220 for (byte_idx = pstr->valid_len; byte_idx < end_idx;) in build_wcs_buffer()
264 pstr->valid_len = byte_idx; in build_wcs_buffer()
285 byte_idx = pstr->valid_len; in build_wcs_upper_buffer()
356 pstr->valid_len = byte_idx; in build_wcs_upper_buffer()
479 pstr->valid_len = byte_idx; in build_wcs_upper_buffer()
536 for (char_idx = pstr->valid_len; char_idx < end_idx; ++char_idx) in build_upper_buffer()
546 pstr->valid_len = char_idx; in build_upper_buffer()
559 for (buf_idx = pstr->valid_len; buf_idx < end_idx; ++buf_idx) in re_string_translate_buffer()
565 pstr->valid_len = buf_idx; in re_string_translate_buffer()
590 pstr->valid_len = 0; in re_string_reconstruct()
610 Idx low = 0, high = pstr->valid_len, mid; in re_string_reconstruct()
630 if (pstr->valid_len > offset in re_string_reconstruct()
634 (pstr->valid_len - offset) * sizeof (wint_t)); in re_string_reconstruct()
635 memmove (pstr->mbs, pstr->mbs + offset, pstr->valid_len - offset); in re_string_reconstruct()
636 pstr->valid_len -= offset; in re_string_reconstruct()
638 for (low = 0; low < pstr->valid_len; low++) in re_string_reconstruct()
650 while (mid < pstr->valid_len) in re_string_reconstruct()
655 if (mid == pstr->valid_len) in re_string_reconstruct()
656 pstr->valid_len = 0; in re_string_reconstruct()
659 pstr->valid_len = pstr->offsets[mid] - offset; in re_string_reconstruct()
660 if (pstr->valid_len) in re_string_reconstruct()
662 for (low = 0; low < pstr->valid_len; ++low) in re_string_reconstruct()
664 memset (pstr->mbs, 255, pstr->valid_len); in re_string_reconstruct()
667 pstr->valid_raw_len = pstr->valid_len; in re_string_reconstruct()
678 (pstr->valid_len - offset) * sizeof (wint_t)); in re_string_reconstruct()
682 pstr->valid_len - offset); in re_string_reconstruct()
683 pstr->valid_len -= offset; in re_string_reconstruct()
686 assert (pstr->valid_len > 0); in re_string_reconstruct()
694 Idx prev_valid_len = pstr->valid_len; in re_string_reconstruct()
703 pstr->valid_len = 0; in re_string_reconstruct()
757 pstr->valid_len = mbclen - (raw + offset - p); in re_string_reconstruct()
765 pstr->valid_len = re_string_skip_chars (pstr, idx, &wc) - idx; in re_string_reconstruct()
776 if (BE (pstr->valid_len, 0)) in re_string_reconstruct()
778 for (wcs_idx = 0; wcs_idx < pstr->valid_len; ++wcs_idx) in re_string_reconstruct()
781 memset (pstr->mbs, 255, pstr->valid_len); in re_string_reconstruct()
783 pstr->valid_raw_len = pstr->valid_len; in re_string_reconstruct()
828 pstr->valid_len = pstr->len; in re_string_reconstruct()