47#ifndef PCRE2_PCRE2TEST
55#ifndef SUPPORT_UNICODE
101#if PCRE2_CODE_UNIT_WIDTH == 8
134for (
p =
string; length > 0;
p++)
141 if (c < 128)
continue;
155 ab =
PRIV(utf8_table4)[c & 0x3f];
172 if (((d = *(++
p)) & 0xc0) != 0x80)
187 case 1:
if ((c & 0x3e) == 0)
199 if ((*(++
p) & 0xc0) != 0x80)
204 if (c == 0xe0 && (d & 0x20) == 0)
209 if (c == 0xed && d >= 0xa0)
221 if ((*(++
p) & 0xc0) != 0x80)
226 if ((*(++
p) & 0xc0) != 0x80)
231 if (c == 0xf0 && (d & 0x30) == 0)
236 if (c > 0xf4 || (c == 0xf4 && d > 0x8f))
252 if ((*(++
p) & 0xc0) != 0x80)
257 if ((*(++
p) & 0xc0) != 0x80)
262 if ((*(++
p) & 0xc0) != 0x80)
267 if (c == 0xf8 && (d & 0x38) == 0)
278 if ((*(++
p) & 0xc0) != 0x80)
283 if ((*(++
p) & 0xc0) != 0x80)
288 if ((*(++
p) & 0xc0) != 0x80)
293 if ((*(++
p) & 0xc0) != 0x80)
298 if (c == 0xfc && (d & 0x3c) == 0)
321#elif PCRE2_CODE_UNIT_WIDTH == 16
329for (
p =
string; length > 0;
p++)
334 if ((c & 0xf800) != 0xd800)
338 else if ((c & 0x0400) == 0)
348 if ((*
p & 0xfc00) != 0xdc00)
374for (
p =
string; length > 0; length--,
p++)
377 if ((c & 0xfffff800u) != 0xd800u)
#define PCRE2_ERROR_UTF8_ERR10
#define PCRE2_ERROR_UTF8_ERR7
#define PCRE2_ERROR_UTF8_ERR21
#define PCRE2_ERROR_UTF8_ERR9
#define PCRE2_ERROR_UTF32_ERR2
#define PCRE2_ERROR_UTF8_ERR1
#define PCRE2_ERROR_UTF8_ERR12
#define PCRE2_ERROR_UTF8_ERR16
#define PCRE2_ERROR_UTF8_ERR13
#define PCRE2_ERROR_UTF8_ERR18
#define PCRE2_ERROR_UTF16_ERR2
#define PCRE2_ERROR_UTF16_ERR3
#define PCRE2_ERROR_UTF8_ERR2
#define PCRE2_ERROR_UTF8_ERR20
#define PCRE2_ERROR_UTF8_ERR6
#define PCRE2_ERROR_UTF8_ERR19
#define PCRE2_ERROR_UTF8_ERR4
#define PCRE2_ERROR_UTF8_ERR3
#define PCRE2_ERROR_UTF8_ERR17
#define PCRE2_ERROR_UTF8_ERR14
#define PCRE2_ERROR_UTF8_ERR5
#define PCRE2_ERROR_UTF8_ERR8
#define PCRE2_ERROR_UTF32_ERR1
#define PCRE2_ERROR_UTF8_ERR15
#define PCRE2_ERROR_UTF16_ERR1
#define PCRE2_ERROR_UTF8_ERR11
int PRIV valid_utf(PCRE2_SPTR string, PCRE2_SIZE length, PCRE2_SIZE *erroroffset)
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)