Home | History | Annotate | Download | only in lib

Lines Matching refs:valid_len

62   pstr->valid_len = (pstr->mbs_allocated || dfa->mb_cur_max > 1) ? 0 : len;
63 pstr->valid_raw_len = pstr->valid_len;
98 if (pstr->bufs_len > pstr->valid_len + dfa->mb_cur_max)
121 pstr->valid_len = pstr->bufs_len;
201 Note that this function assumes PSTR->VALID_LEN elements are already
202 built and starts from PSTR->VALID_LEN. */
218 /* Build the buffers from pstr->valid_len to either pstr->len or
221 for (byte_idx = pstr->valid_len; byte_idx < end_idx;)
265 pstr->valid_len = byte_idx;
286 byte_idx = pstr->valid_len;
357 pstr->valid_len = byte_idx;
480 pstr->valid_len = byte_idx;
537 for (char_idx = pstr->valid_len; char_idx < end_idx; ++char_idx)
547 pstr->valid_len = char_idx;
560 for (buf_idx = pstr->valid_len; buf_idx < end_idx; ++buf_idx)
566 pstr->valid_len = buf_idx;
591 pstr->valid_len = 0;
611 Idx low = 0, high = pstr->valid_len, mid;
631 if (pstr->valid_len > offset
635 (pstr->valid_len - offset) * sizeof (wint_t));
636 memmove (pstr->mbs, pstr->mbs + offset, pstr->valid_len - offset);
637 pstr->valid_len -= offset;
639 for (low = 0; low < pstr->valid_len; low++)
651 while (mid < pstr->valid_len)
656 if (mid == pstr->valid_len)
657 pstr->valid_len = 0;
660 pstr->valid_len = pstr->offsets[mid] - offset;
661 if (pstr->valid_len)
663 for (low = 0; low < pstr->valid_len; ++low)
665 memset (pstr->mbs, 255, pstr->valid_len);
668 pstr->valid_raw_len = pstr->valid_len;
679 (pstr->valid_len - offset) * sizeof (wint_t));
683 pstr->valid_len - offset);
684 pstr->valid_len -= offset;
687 assert (pstr->valid_len > 0);
695 Idx prev_valid_len = pstr->valid_len;
704 pstr->valid_len = 0;
728 /* pstr->valid_len = 0; */
758 pstr->valid_len = mbclen - (raw + offset - p);
766 pstr->valid_len = re_string_skip_chars (pstr, idx, &wc) - idx;
777 if (BE (pstr->valid_len, 0))
779 for (wcs_idx = 0; wcs_idx < pstr->valid_len; ++wcs_idx)
782 memset (pstr->mbs, 255, pstr->valid_len);
784 pstr->valid_raw_len = pstr->valid_len;
829 pstr->valid_len = pstr->len;