(p =
string; length > 0; p++)
141 if(c < 128)
continue;
172 if(((d = *(++p)) & 0xc0) != 0x80)
174*erroroffset = (
PCRE2_SIZE)(p -
string) - 1;
187 case1:
if((c & 0x3e) == 0)
189*erroroffset = (
PCRE2_SIZE)(p -
string) - 1;
199 if((*(++p) & 0xc0) != 0x80)
201*erroroffset = (
PCRE2_SIZE)(p -
string) - 2;
204 if(c == 0xe0 && (d & 0x20) == 0)
206*erroroffset = (
PCRE2_SIZE)(p -
string) - 2;
209 if(c == 0xed && d >= 0xa0)
211*erroroffset = (
PCRE2_SIZE)(p -
string) - 2;
221 if((*(++p) & 0xc0) != 0x80)
223*erroroffset = (
PCRE2_SIZE)(p -
string) - 2;
226 if((*(++p) & 0xc0) != 0x80)
228*erroroffset = (
PCRE2_SIZE)(p -
string) - 3;
231 if(c == 0xf0 && (d & 0x30) == 0)
233*erroroffset = (
PCRE2_SIZE)(p -
string) - 3;
236 if(c > 0xf4 || (c == 0xf4 && d > 0x8f))
238*erroroffset = (
PCRE2_SIZE)(p -
string) - 3;
252 if((*(++p) & 0xc0) != 0x80)
254*erroroffset = (
PCRE2_SIZE)(p -
string) - 2;
257 if((*(++p) & 0xc0) != 0x80)
259*erroroffset = (
PCRE2_SIZE)(p -
string) - 3;
262 if((*(++p) & 0xc0) != 0x80)
264*erroroffset = (
PCRE2_SIZE)(p -
string) - 4;
267 if(c == 0xf8 && (d & 0x38) == 0)
269*erroroffset = (
PCRE2_SIZE)(p -
string) - 4;
278 if((*(++p) & 0xc0) != 0x80)
280*erroroffset = (
PCRE2_SIZE)(p -
string) - 2;
283 if((*(++p) & 0xc0) != 0x80)
285*erroroffset = (
PCRE2_SIZE)(p -
string) - 3;
288 if((*(++p) & 0xc0) != 0x80)
290*erroroffset = (
PCRE2_SIZE)(p -
string) - 4;
293 if((*(++p) & 0xc0) != 0x80)
295*erroroffset = (
PCRE2_SIZE)(p -
string) - 5;
298 if(c == 0xfc && (d & 0x3c) == 0)
300*erroroffset = (
PCRE2_SIZE)(p -
string) - 5;
312*erroroffset = (
PCRE2_SIZE)(p -
string) - ab;
321 #elif PCRE2_CODE_UNIT_WIDTH == 16 329 for(p =
string; length > 0; p++)
334 if((c & 0xf800) != 0xd800)
338 else if((c & 0x0400) == 0)
348 if((*p & 0xfc00) != 0xdc00)
350*erroroffset = (
PCRE2_SIZE)(p -
string) - 1;
374 for(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 valid_utf(PCRE2_SPTR8, PCRE2_SIZE, PCRE2_SIZE *)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4