Home | History | Annotate | Download | only in src

Lines Matching refs:string

63 PRIV(valid_utf)(PCRE2_SPTR string, PCRE2_SIZE length, PCRE2_SIZE *erroroffset)
65 (void)string;
75 * Validate a UTF string *
79 check that a supposed UTF string is actually valid. The early check means
80 that subsequent code can assume it is dealing with a valid string. The check
82 invalid string are then undefined.
85 string points to the string
86 length length of string
89 Returns: == 0 if the string is a valid UTF string
94 PRIV(valid_utf)(PCRE2_SPTR string, PCRE2_SIZE length, PCRE2_SIZE *erroroffset)
99 /* ----------------- Check a UTF-8 string ----------------- */
111 PCRE2_ERROR_UTF8_ERR1 Missing 1 byte at the end of the string
112 PCRE2_ERROR_UTF8_ERR2 Missing 2 bytes at the end of the string
113 PCRE2_ERROR_UTF8_ERR3 Missing 3 bytes at the end of the string
114 PCRE2_ERROR_UTF8_ERR4 Missing 4 bytes at the end of the string
115 PCRE2_ERROR_UTF8_ERR5 Missing 5 bytes at the end of the string
134 for (p = string; length > 0; p++)
145 *erroroffset = (int)(p - string);
151 *erroroffset = (int)(p - string);
158 *erroroffset = (int)(p - string);
174 *erroroffset = (int)(p - string) - 1;
189 *erroroffset = (int)(p - string) - 1;
201 *erroroffset = (int)(p - string) - 2;
206 *erroroffset = (int)(p - string) - 2;
211 *erroroffset = (int)(p - string) - 2;
223 *erroroffset = (int)(p - string) - 2;
228 *erroroffset = (int)(p - string) - 3;
233 *erroroffset = (int)(p - string) - 3;
238 *erroroffset = (int)(p - string) - 3;
254 *erroroffset = (int)(p - string) - 2;
259 *erroroffset = (int)(p - string) - 3;
264 *erroroffset = (int)(p - string) - 4;
269 *erroroffset = (int)(p - string) - 4;
280 *erroroffset = (int)(p - string) - 2;
285 *erroroffset = (int)(p - string) - 3;
290 *erroroffset = (int)(p - string) - 4;
295 *erroroffset = (int)(p - string) - 5;
300 *erroroffset = (int)(p - string) - 5;
312 *erroroffset = (int)(p - string) - ab;
319 /* ----------------- Check a UTF-16 string ----------------- */
324 PCRE2_ERROR_UTF16_ERR1 Missing low surrogate at the end of the string
329 for (p = string; length > 0; p++)
343 *erroroffset = p - string;
350 *erroroffset = p - string;
357 *erroroffset = p - string;
365 /* ----------------- Check a UTF-32 string ----------------- */
369 /* There is very little to do for a UTF-32 string.
374 for (p = string; length > 0; length--, p++)
382 *erroroffset = p - string;
389 *erroroffset = p - string;