Lines Matching refs:do_utf8

107 #define CHR_SVLEN(sv) (do_utf8 ? sv_len_utf8(sv) : SvCUR(sv))
397 int do_utf8 = sv ? SvUTF8(sv) : 0; /* if no sv we have to assume bytes */
405 RX_MATCH_UTF8_set(prog,do_utf8);
445 if (do_utf8) {
567 (check == (do_utf8 ? prog->anchored_utf8 : prog->anchored_substr) ? "anchored" : "floating"),
590 if (do_utf8 ? (prog->float_utf8 && prog->anchored_utf8) : (prog->float_substr && prog->anchored_substr)) {
595 if (check == (do_utf8 ? prog->float_utf8 : prog->float_substr)) {
604 && (!do_utf8
618 must = do_utf8 ? prog->anchored_utf8 : prog->anchored_substr;
678 must = do_utf8 ? prog->float_utf8 : prog->float_substr;
724 && (!do_utf8
741 if (do_utf8 ? prog->anchored_utf8 : prog->anchored_substr) {
781 ++BmUSEFUL(do_utf8 ? prog->check_utf8 : prog->check_substr); /* hooray/5 */
805 && (do_utf8 ? (
817 SvREFCNT_dec(do_utf8 ? prog->check_utf8 : prog->check_substr);
818 if (do_utf8 ? prog->check_substr : prog->check_utf8)
819 SvREFCNT_dec(do_utf8 ? prog->check_substr : prog->check_utf8);
874 if ((do_utf8 ? prog->anchored_utf8 : prog->anchored_substr) == check) {
914 if (!(do_utf8 ? prog->float_utf8 : prog->float_substr)) /* Could have been deleted */
942 BmUSEFUL(do_utf8 ? prog->check_utf8 : prog->check_substr) += 5; /* hooray */
962 register bool do_utf8 = PL_reg_match_utf8;
967 if (do_utf8) {
971 reginclass(c, (U8*)s, 0, do_utf8) :
1063 if (do_utf8) {
1078 ibcmp_utf8(s, (char **)0, 0, do_utf8,
1089 (char **)0, foldlen, do_utf8,
1117 ibcmp_utf8(s, (char **)0, 0, do_utf8,
1128 (char **)0, foldlen, do_utf8,
1165 if (do_utf8) {
1178 swash_fetch(PL_utf8_alnum, (U8*)s, do_utf8) :
1208 if (do_utf8) {
1221 swash_fetch(PL_utf8_alnum, (U8*)s, do_utf8) :
1246 if (do_utf8) {
1249 if (swash_fetch(PL_utf8_alnum, (U8*)s, do_utf8)) {
1276 if (do_utf8) {
1304 if (do_utf8) {
1307 if (!swash_fetch(PL_utf8_alnum, (U8*)s, do_utf8)) {
1334 if (do_utf8) {
1362 if (do_utf8) {
1365 if (*s == ' ' || swash_fetch(PL_utf8_space,(U8*)s, do_utf8)) {
1392 if (do_utf8) {
1420 if (do_utf8) {
1423 if (!(*s == ' ' || swash_fetch(PL_utf8_space,(U8*)s, do_utf8))) {
1450 if (do_utf8) {
1478 if (do_utf8) {
1481 if (swash_fetch(PL_utf8_digit,(U8*)s, do_utf8)) {
1508 if (do_utf8) {
1536 if (do_utf8) {
1539 if (!swash_fetch(PL_utf8_digit,(U8*)s, do_utf8)) {
1566 if (do_utf8) {
1625 bool do_utf8 = DO_UTF8(sv);
1630 RX_MATCH_UTF8_set(prog,do_utf8);
1719 char *s1 = do_utf8 ? sv_uni_display(dsv1, sv, 60,
1721 int len1 = do_utf8 ? SvCUR(dsv1) : strend - startpos;
1794 if (!(do_utf8 ? prog->anchored_utf8 : prog->anchored_substr))
1795 do_utf8 ? to_utf8_substr(prog) : to_byte_substr(prog);
1796 ch = SvPVX(do_utf8 ? prog->anchored_utf8 : prog->anchored_substr)[0];
1798 if (do_utf8) {
1841 if (!(do_utf8 ? prog->anchored_utf8 : prog->anchored_substr))
1842 do_utf8 ? to_utf8_substr(prog) : to_byte_substr(prog);
1843 must = do_utf8 ? prog->anchored_utf8 : prog->anchored_substr;
1846 if (!(do_utf8 ? prog->float_utf8 : prog->float_substr))
1847 do_utf8 ? to_utf8_substr(prog) : to_byte_substr(prog);
1848 must = do_utf8 ? prog->float_utf8 : prog->float_substr;
1891 if (do_utf8) {
1957 if (!(do_utf8 ? prog->float_utf8 : prog->float_substr))
1958 do_utf8 ? to_utf8_substr(prog) : to_byte_substr(prog);
1959 float_real = do_utf8 ? prog->float_utf8 : prog->float_substr;
2002 if (do_utf8) {
2267 register bool do_utf8 = PL_reg_match_utf8;
2298 while (do_utf8 && UTF8_IS_CONTINUATION(*(U8*)(locinput - pref_len)))
2304 while (do_utf8 && UTF8_IS_CONTINUATION(*(U8*)(locinput + l)))
2313 do_utf8 && OP(scan) != CANY ?
2317 int len0 = do_utf8 ? strlen(s0) : pref0_len;
2318 char *s1 = do_utf8 && OP(scan) != CANY ?
2322 int len1 = do_utf8 ? strlen(s1) : pref_len - pref0_len;
2323 char *s2 = do_utf8 && OP(scan) != CANY ?
2327 int len2 = do_utf8 ? strlen(s2) : l;
2400 if (do_utf8) {
2417 if (do_utf8) {
2429 if (do_utf8 != UTF) {
2435 if (do_utf8) {
2485 if (do_utf8 || UTF) {
2491 l, &e, 0, do_utf8)) {
2496 if (!(do_utf8 &&
2527 if (do_utf8) {
2530 if (!reginclass(scan, (U8*)locinput, &inclasslen, do_utf8))
2565 if (do_utf8) {
2568 ? swash_fetch(PL_utf8_alnum, (U8*)locinput, do_utf8)
2588 if (do_utf8) {
2591 ? swash_fetch(PL_utf8_alnum, (U8*)locinput, do_utf8)
2612 if (do_utf8) {
2623 n = swash_fetch(PL_utf8_alnum, (U8*)locinput, do_utf8);
2652 if (do_utf8) {
2656 ? swash_fetch(PL_utf8_space, (U8*)locinput, do_utf8)
2683 if (do_utf8) {
2686 ? swash_fetch(PL_utf8_space, (U8*)locinput, do_utf8)
2706 if (do_utf8) {
2709 ? swash_fetch(PL_utf8_digit, (U8*)locinput, do_utf8)
2729 if (do_utf8) {
2732 ? swash_fetch(PL_utf8_digit, (U8*)locinput, do_utf8)
2749 if (do_utf8) {
2751 if (swash_fetch(PL_utf8_mark,(U8*)locinput, do_utf8))
2755 swash_fetch(PL_utf8_mark,(U8*)locinput, do_utf8))
2778 if (do_utf8 && OP(scan) != REF) { /* REF can do byte comparison */
3618 if (do_utf8)
3622 else if (do_utf8) {
3635 if (!do_utf8) {
3690 if (do_utf8)
3701 if (do_utf8)
3751 if (do_utf8)
3774 if (do_utf8)
4021 register bool do_utf8 = PL_reg_match_utf8;
4030 if (do_utf8) {
4042 if (do_utf8) {
4074 if (do_utf8) {
4077 reginclass(p, (U8*)scan, 0, do_utf8)) {
4087 if (do_utf8) {
4091 swash_fetch(PL_utf8_alnum, (U8*)scan, do_utf8)) {
4102 if (do_utf8) {
4115 if (do_utf8) {
4119 !swash_fetch(PL_utf8_alnum, (U8*)scan, do_utf8)) {
4130 if (do_utf8) {
4143 if (do_utf8) {
4148 swash_fetch(PL_utf8_space,(U8*)scan, do_utf8))) {
4159 if (do_utf8) {
4172 if (do_utf8) {
4177 swash_fetch(PL_utf8_space,(U8*)scan, do_utf8))) {
4188 if (do_utf8) {
4201 if (do_utf8) {
4205 swash_fetch(PL_utf8_digit, (U8*)scan, do_utf8)) {
4215 if (do_utf8) {
4219 !swash_fetch(PL_utf8_digit, (U8*)scan, do_utf8)) {
4355 do_utf8 tells whether the target string is in UTF-8.
4360 S_reginclass(pTHX_ register regnode *n, register U8* p, STRLEN* lenp, register bool do_utf8)
4368 if (do_utf8 && !UTF8_IS_INVARIANT(c))
4373 if (do_utf8 || (flags & ANYOF_UNICODE)) {
4376 if (do_utf8 && !ANYOF_RUNTIME(n)) {
4380 if (!match && do_utf8 && (flags & ANYOF_UNICODE_ALL) && c >= 256)
4387 if (swash_fetch(sw, p, do_utf8))
4410 if (swash_fetch(sw, tmpbuf, do_utf8))