Lines Matching refs:utf
81 /* In UTF mode the character may occupy more than one code unit.
86 utf TRUE if string is UTF (will be FALSE if UTF is not supported)
92 print_char(FILE *f, PCRE2_SPTR ptr, BOOL utf)
95 BOOL one_code_unit = !utf;
97 /* If UTF is supported and requested, check for a valid single code unit. */
100 if (utf)
122 /* Code for invalid UTF code units and multi-unit UTF characters is different
123 for each width. If UTF is not supported, control should never get here, but we
130 /* Malformed UTF-8 should occur only if the sanity check has been turned off.
161 /* UTF-16: rather than swallow a low surrogate, just stop if we hit a bad one.
175 /* For UTF-32 we get here only for a malformed code unit, which should only
192 /* These take no account of UTF as they always print each individual code unit.
230 /* When there is no UTF/UCP support, the table of names does not exist. This
245 #else /* No UTF support */
312 BOOL utf = (re->overall_options & PCRE2_UTF) != 0;
356 code += 1 + print_char(f, code, utf);
367 code += 1 + print_char(f, code, utf);
487 else extra = print_char(f, code+1, utf);
502 extra = print_char(f, code + 1 + IMM2_SIZE, utf);
532 extra = print_char(f, code + 1, utf);
558 extra = print_char(f, code + 1, utf);
574 extra = print_char(f, code + 1 + IMM2_SIZE, utf);
635 /* OP_XCLASS cannot occur in 8-bit, non-UTF mode. However, there's no harm
748 ccode += 1 + print_char(f, ccode, utf);
752 ccode += 1 + print_char(f, ccode, utf);
759 /* Indicate a non-UTF class which was created by negation */