Lines Matching defs:ix
10391 int ix;
10398 for (ix = 0; ix < len;) { /* string is 0-terminated */
10399 c = utf[ix];
10402 ix++;
10404 ix++;
10406 return(-ix);
10408 if (ix + 2 > len) return(ix);
10409 if ((utf[ix+1] & 0xc0 ) != 0x80)
10410 return(-ix);
10411 codepoint = (utf[ix] & 0x1f) << 6;
10412 codepoint |= utf[ix+1] & 0x3f;
10414 return(-ix);
10415 ix += 2;
10417 if (ix + 3 > len) return(ix);
10418 if (((utf[ix+1] & 0xc0) != 0x80) ||
10419 ((utf[ix+2] & 0xc0) != 0x80))
10420 return(-ix);
10421 codepoint = (utf[ix] & 0xf) << 12;
10422 codepoint |= (utf[ix+1] & 0x3f) << 6;
10423 codepoint |= utf[ix+2] & 0x3f;
10425 return(-ix);
10426 ix += 3;
10428 if (ix + 4 > len) return(ix);
10429 if (((utf[ix+1] & 0xc0) != 0x80) ||
10430 ((utf[ix+2] & 0xc0) != 0x80) ||
10431 ((utf[ix+3] & 0xc0) != 0x80))
10432 return(-ix);
10433 codepoint = (utf[ix] & 0x7) << 18;
10434 codepoint |= (utf[ix+1] & 0x3f) << 12;
10435 codepoint |= (utf[ix+2] & 0x3f) << 6;
10436 codepoint |= utf[ix+3] & 0x3f;
10438 return(-ix);
10439 ix += 4;
10441 return(-ix);
10443 return(ix);