Lines Matching refs:trans
25 RE_TRANSLATE_TYPE trans, bool icase,
43 RE_TRANSLATE_TYPE trans, bool icase, const re_dfa_t *dfa) in re_string_allocate() argument
52 re_string_construct_common (str, len, pstr, trans, icase, dfa); in re_string_allocate()
71 RE_TRANSLATE_TYPE trans, bool icase, const re_dfa_t *dfa) in re_string_construct() argument
75 re_string_construct_common (str, len, pstr, trans, icase, dfa); in re_string_construct()
116 if (trans != NULL) in re_string_construct()
174 RE_TRANSLATE_TYPE trans, bool icase, in re_string_construct_common() argument
180 pstr->trans = trans; in re_string_construct_common()
182 pstr->mbs_allocated = (trans != NULL || icase); in re_string_construct_common()
228 if (BE (pstr->trans != NULL, 0)) in build_wcs_buffer()
235 buf[i] = pstr->mbs[byte_idx + i] = pstr->trans[ch]; in build_wcs_buffer()
253 if (BE (pstr->trans != NULL, 0)) in build_wcs_buffer()
254 wc = pstr->trans[wc]; in build_wcs_buffer()
290 if (! pstr->map_notascii && pstr->trans == NULL && !pstr->offsets_needed) in build_wcs_upper_buffer()
368 if (BE (pstr->trans != NULL, 0)) in build_wcs_upper_buffer()
375 buf[i] = pstr->trans[ch]; in build_wcs_upper_buffer()
459 if (BE (pstr->trans != NULL, 0)) in build_wcs_upper_buffer()
460 ch = pstr->trans [ch]; in build_wcs_upper_buffer()
539 if (BE (pstr->trans != NULL, 0)) in build_upper_buffer()
540 ch = pstr->trans[ch]; in build_upper_buffer()
562 pstr->mbs[buf_idx] = pstr->trans[ch]; in re_string_translate_buffer()
724 if (isascii (*p) && BE (pstr->trans == NULL, 1)) in re_string_reconstruct()
741 if (BE (pstr->trans != NULL, 0)) in re_string_reconstruct()
745 buf[i] = pstr->trans[p[i]]; in re_string_reconstruct()
790 if (pstr->trans) in re_string_reconstruct()
791 c = pstr->trans[c]; in re_string_reconstruct()
824 else if (pstr->trans != NULL) in re_string_reconstruct()