Lines Matching refs:len
21 static void re_string_construct_common (const char *str, int len,
41 re_string_allocate (re_string_t *pstr, const char *str, int len, int init_len,
50 init_buf_len = (len + 1 < init_len) ? len + 1: init_len;
51 re_string_construct_common (str, len, pstr, trans, icase, dfa);
60 pstr->valid_len = (pstr->mbs_allocated || dfa->mb_cur_max > 1) ? 0 : len;
69 re_string_construct (re_string_t *pstr, const char *str, int len,
74 re_string_construct_common (str, len, pstr, trans, icase, dfa);
76 if (len > 0)
78 ret = re_string_realloc_buffers (pstr, len + 1);
94 if (pstr->valid_raw_len >= len)
165 re_string_construct_common (const char *str, int len, re_string_t *pstr,
170 pstr->len = len;
171 pstr->raw_len = len;
178 pstr->stop = pstr->len;
209 /* Build the buffers from pstr->valid_len to either pstr->len or
211 end_idx = (pstr->bufs_len > pstr->len) ? pstr->len : pstr->bufs_len;
278 end_idx = (pstr->bufs_len > pstr->len) ? pstr->len : pstr->bufs_len;
418 pstr->len += mbcdlen - mbclen;
421 end_idx = (pstr->bufs_len > pstr->len)
422 ? pstr->len : pstr->bufs_len;
493 remain_len = pstr->len - rawbuf_idx;
523 end_idx = (pstr->bufs_len > pstr->len) ? pstr->len : pstr->bufs_len;
546 end_idx = (pstr->bufs_len > pstr->len) ? pstr->len : pstr->bufs_len;
574 pstr->len = pstr->raw_len;
631 pstr->len = pstr->raw_len - idx + offset;
684 pstr->len = pstr->raw_len - idx + offset;
723 int mlen = raw + pstr->len - p;
790 pstr->len -= offset;
816 pstr->valid_len = pstr->len;
918 if (BE (idx == input->len, 0))