Go to the documentation of this file.Go to the SVN repository for this file.
114 for (p =
string; *p != 0; p++);
115 length = (
int)(p -
string);
118 for (p =
string; length-- > 0; p++)
123 if (c < 128)
continue;
127 *erroroffset = (
int)(p -
string);
133 *erroroffset = (
int)(p -
string);
140 *erroroffset = (
int)(p -
string);
147 if (((d = *(++p)) & 0xc0) != 0x80)
149 *erroroffset = (
int)(p -
string) - 1;
162 case 1:
if ((c & 0x3e) == 0)
164 *erroroffset = (
int)(p -
string) - 1;
174 if ((*(++p) & 0xc0) != 0x80)
176 *erroroffset = (
int)(p -
string) - 2;
179 if (c == 0xe0 && (d & 0x20) == 0)
181 *erroroffset = (
int)(p -
string) - 2;
184 if (c == 0xed && d >= 0xa0)
186 *erroroffset = (
int)(p -
string) - 2;
196 if ((*(++p) & 0xc0) != 0x80)
198 *erroroffset = (
int)(p -
string) - 2;
201 if ((*(++p) & 0xc0) != 0x80)
203 *erroroffset = (
int)(p -
string) - 3;
206 if (c == 0xf0 && (d & 0x30) == 0)
208 *erroroffset = (
int)(p -
string) - 3;
211 if (c > 0xf4 || (c == 0xf4 && d > 0x8f))
213 *erroroffset = (
int)(p -
string) - 3;
227 if ((*(++p) & 0xc0) != 0x80)
229 *erroroffset = (
int)(p -
string) - 2;
232 if ((*(++p) & 0xc0) != 0x80)
234 *erroroffset = (
int)(p -
string) - 3;
237 if ((*(++p) & 0xc0) != 0x80)
239 *erroroffset = (
int)(p -
string) - 4;
242 if (c == 0xf8 && (d & 0x38) == 0)
244 *erroroffset = (
int)(p -
string) - 4;
253 if ((*(++p) & 0xc0) != 0x80)
255 *erroroffset = (
int)(p -
string) - 2;
258 if ((*(++p) & 0xc0) != 0x80)
260 *erroroffset = (
int)(p -
string) - 3;
263 if ((*(++p) & 0xc0) != 0x80)
265 *erroroffset = (
int)(p -
string) - 4;
268 if ((*(++p) & 0xc0) != 0x80)
270 *erroroffset = (
int)(p -
string) - 5;
273 if (c == 0xfc && (d & 0x3c) == 0)
275 *erroroffset = (
int)(p -
string) - 5;
287 *erroroffset = (
int)(p -
string) - ab;
unsigned int
A callback function used to compare two keys in a database.