Lines Matching refs:utf

1009 BOOL utf = (options & PCRE_UTF8) != 0;  in check_escape()  local
1080 if (c > (utf ? 0x10ffffU : 0xffU)) in check_escape()
1082 if (c > (utf ? 0x10ffffU : 0xffffU)) in check_escape()
1084 if (utf && c > 0x10ffffU) in check_escape()
1089 else if (utf && c >= 0xd800 && c <= 0xdfff) *errorcodeptr = ERR73; in check_escape()
1264 if (!utf && c > 0xff) *errorcodeptr = ERR51; in check_escape()
1287 if (c > (utf ? 0x10ffffU : 0xffU)) { overflow = TRUE; break; } in check_escape()
1289 if (c > (utf ? 0x10ffffU : 0xffffU)) { overflow = TRUE; break; } in check_escape()
1291 if (utf && c > 0x10ffffU) { overflow = TRUE; break; } in check_escape()
1301 if (utf && c >= 0xd800 && c <= 0xdfff) *errorcodeptr = ERR73; in check_escape()
1368 if (c > (utf ? 0x10ffffU : 0xffU)) { overflow = TRUE; break; } in check_escape()
1370 if (c > (utf ? 0x10ffffU : 0xffffU)) { overflow = TRUE; break; } in check_escape()
1372 if (utf && c > 0x10ffffU) { overflow = TRUE; break; } in check_escape()
1384 if (utf && c >= 0xd800 && c <= 0xdfff) *errorcodeptr = ERR73; in check_escape()
1736 find_fixedlength(pcre_uchar *code, BOOL utf, BOOL atend, compile_data *cd, in find_fixedlength() argument
1765 d = find_fixedlength(cc + ((op == OP_CBRA)? IMM2_SIZE : 0), utf, atend, cd, in find_fixedlength()
1808 d = find_fixedlength(cs + IMM2_SIZE, utf, atend, cd, &this_recurse); in find_fixedlength()
1869 if (utf && HAS_EXTRALEN(cc[-1])) cc += GET_EXTRALEN(cc[-1]); in find_fixedlength()
1883 if (utf && HAS_EXTRALEN(cc[-1])) cc += GET_EXTRALEN(cc[-1]); in find_fixedlength()
2080 PRIV(find_bracket)(const pcre_uchar *code, BOOL utf, int number) in PRIV()
2158 if (utf) switch(c) in PRIV()
2220 (void)(utf); /* Keep compiler happy by referencing function argument */ in PRIV()
2243 find_recurse(const pcre_uchar *code, BOOL utf) in find_recurse() argument
2303 if (utf) switch(c) in find_recurse()
2365 (void)(utf); /* Keep compiler happy by referencing function argument */ in find_recurse()
2397 BOOL utf, compile_data *cd, recurse_check *recurses) in could_be_empty_branch() argument
2469 if (could_be_empty_branch(scode, endcode, utf, cd, &this_recurse)) in could_be_empty_branch()
2525 if (!empty_branch && could_be_empty_branch(code, endcode, utf, cd, in could_be_empty_branch()
2705 if (utf && HAS_EXTRALEN(code[1])) code += GET_EXTRALEN(code[1]); in could_be_empty_branch()
2723 if (utf && HAS_EXTRALEN(code[1 + IMM2_SIZE])) code += GET_EXTRALEN(code[1 + IMM2_SIZE]); in could_be_empty_branch()
2772 branch_chain *bcptr, BOOL utf, compile_data *cd) in could_be_empty() argument
2776 if (!could_be_empty_branch(bcptr->current_branch, endcode, utf, cd, NULL)) in could_be_empty()
2915 get_chr_property_list(const pcre_uchar *code, BOOL utf, in get_chr_property_list() argument
2927 utf = utf; /* Suppress "unused parameter" compiler warning */ in get_chr_property_list()
3006 if (chr < 128 || (chr < 256 && !utf)) in get_chr_property_list()
3120 compare_opcodes(const pcre_uchar *code, BOOL utf, const compile_data *cd, in compare_opcodes() argument
3211 if (!compare_opcodes(code, utf, cd, base_list, base_end, rec_limit)) in compare_opcodes()
3232 if (!compare_opcodes(next_code, utf, cd, base_list, base_end, rec_limit)) in compare_opcodes()
3244 code = get_chr_property_list(code, utf, cd->fcc, list); in compare_opcodes()
3266 || (!utf && (base_list[0] == OP_NCLASS || list[0] == OP_NCLASS)) in compare_opcodes()
3271 if (base_list[0] == OP_CLASS || (!utf && base_list[0] == OP_NCLASS)) in compare_opcodes()
3619 list_ptr[2] + LINK_SIZE, utf)) return FALSE; in compare_opcodes()
3659 auto_possessify(pcre_uchar *code, BOOL utf, const compile_data *cd) in auto_possessify() argument
3683 get_chr_property_list(code, utf, cd->fcc, list) : NULL; in auto_possessify()
3687 if (end != NULL && compare_opcodes(end, utf, cd, list, end, &rec_limit)) in auto_possessify()
3739 end = get_chr_property_list(code, utf, cd->fcc, list); in auto_possessify()
3744 if (compare_opcodes(end, utf, cd, list, end, &rec_limit)) in auto_possessify()
3821 if (utf) switch(c) in auto_possessify()
3883 (void)(utf); /* Keep compiler happy by referencing function argument */ in auto_possessify()
4020 adjust_recurse(pcre_uchar *group, int adjust, BOOL utf, compile_data *cd, in adjust_recurse() argument
4027 while ((ptr = (pcre_uchar *)find_recurse(ptr, utf)) != NULL) in adjust_recurse()
4406 BOOL utf = (options & PCRE_UTF8) != 0; in add_not_list_to_class() local
4414 (p[1] == NOTACHAR) ? (utf ? 0x10ffffu : 0xffffffffu) : p[1] - 1); in add_not_list_to_class()
4493 BOOL utf = (options & PCRE_UTF8) != 0; in compile_branch() local
4498 BOOL utf = FALSE; in compile_branch() local
4695 if (utf) FORWARDCHAR(ptr); in compile_branch()
4930 if (utf && HAS_EXTRALEN(c)) in compile_branch()
5325 if (utf) in compile_branch()
5440 if (utf && (options & PCRE_CASELESS) != 0 && in compile_branch()
5454 if (utf && c > MAX_VALUE_FOR_SINGLE_CHAR) in compile_branch()
5470 if (utf && c > MAX_VALUE_FOR_SINGLE_CHAR) in compile_branch()
5668 if (utf) FORWARDCHAR(p); in compile_branch()
5747 if (utf && NOT_FIRSTCHAR(code[-1])) in compile_branch()
5855 if (utf && (c & UTF_LENGTH) != 0) in compile_branch()
5880 if (utf && (c & UTF_LENGTH) != 0) in compile_branch()
5910 if (utf && (c & UTF_LENGTH) != 0) in compile_branch()
6030 adjust_recurse(previous, 1, utf, cd, item_hwm_offset); in compile_branch()
6054 adjust_recurse(previous, 2 + LINK_SIZE, utf, cd, item_hwm_offset); in compile_branch()
6289 if (could_be_empty_branch(scode, ketcode, utf, cd, NULL)) in compile_branch()
6318 adjust_recurse(bracode, 1 + LINK_SIZE, utf, cd, item_hwm_offset); in compile_branch()
6407 if (utf && HAS_EXTRALEN(tempcode[-1])) in compile_branch()
6452 adjust_recurse(tempcode, 1 + LINK_SIZE, utf, cd, item_hwm_offset); in compile_branch()
6501 adjust_recurse(tempcode, 1 + LINK_SIZE, utf, cd, item_hwm_offset); in compile_branch()
7499 called = PRIV(find_bracket)(cd->start_code, utf, recno); in compile_branch()
7535 could_be_empty(called, code, bcptr, utf, cd)) in compile_branch()
8079 *code++ = (!utf && escape == ESC_C)? OP_ALLANY : escape; in compile_branch()
8090 if (utf && c > MAX_VALUE_FOR_SINGLE_CHAR) in compile_branch()
8113 if (utf && HAS_EXTRALEN(c)) in compile_branch()
8129 if (utf && (options & PCRE_CASELESS) != 0) in compile_branch()
9010 BOOL utf; in pcre_compile2() local
9179 utf = (options & PCRE_UTF8) != 0; in pcre_compile2()
9180 if (utf && never_utf) in pcre_compile2()
9192 if (utf && (options & PCRE_NO_UTF8_CHECK) == 0 && in pcre_compile2()
9205 if (utf) in pcre_compile2()
9484 groupptr = PRIV(find_bracket)(codestart, utf, recno); in pcre_compile2()
9514 auto_possessify(temp, utf, cd); in pcre_compile2()
9534 for (cc = (pcre_uchar *)PRIV(find_bracket)(codestart, utf, -1); in pcre_compile2()
9536 cc = (pcre_uchar *)PRIV(find_bracket)(cc, utf, -1)) in pcre_compile2()
9605 if (utf) in pcre_compile2()
9647 if (utf) in pcre_compile2()
9719 if (could_be_empty_branch(codestart, code, utf, cd, NULL)) in pcre_compile2()