Lines Matching defs:string

53 *         Validate a UTF-8 string                *
57 check that a supposed UTF-8 string is actually valid. The early check means
58 that subsequent code can assume it is dealing with a valid string. The check
60 invalid string are then undefined.
74 PCRE_UTF8_ERR1 Missing 1 byte at the end of the string
75 PCRE_UTF8_ERR2 Missing 2 bytes at the end of the string
76 PCRE_UTF8_ERR3 Missing 3 bytes at the end of the string
77 PCRE_UTF8_ERR4 Missing 4 bytes at the end of the string
78 PCRE_UTF8_ERR5 Missing 5 bytes at the end of the string
98 string points to the string
99 length length of string, or -1 if the string is zero-terminated
102 Returns: = 0 if the string is a valid UTF-8 string
107 PRIV(valid_utf)(PCRE_PUCHAR string, int length, int *erroroffset)
114 for (p = string; *p != 0; p++);
115 length = (int)(p - string);
118 for (p = string; length-- > 0; p++)
127 *erroroffset = (int)(p - string);
133 *erroroffset = (int)(p - string);
140 *erroroffset = (int)(p - string); /* Missing bytes */
149 *erroroffset = (int)(p - string) - 1;
164 *erroroffset = (int)(p - string) - 1;
176 *erroroffset = (int)(p - string) - 2;
181 *erroroffset = (int)(p - string) - 2;
186 *erroroffset = (int)(p - string) - 2;
198 *erroroffset = (int)(p - string) - 2;
203 *erroroffset = (int)(p - string) - 3;
208 *erroroffset = (int)(p - string) - 3;
213 *erroroffset = (int)(p - string) - 3;
229 *erroroffset = (int)(p - string) - 2;
234 *erroroffset = (int)(p - string) - 3;
239 *erroroffset = (int)(p - string) - 4;
244 *erroroffset = (int)(p - string) - 4;
255 *erroroffset = (int)(p - string) - 2;
260 *erroroffset = (int)(p - string) - 3;
265 *erroroffset = (int)(p - string) - 4;
270 *erroroffset = (int)(p - string) - 5;
275 *erroroffset = (int)(p - string) - 5;
287 *erroroffset = (int)(p - string) - ab;
293 (void)(string); /* Keep picky compilers happy */