Lines Matching defs:ix
9528 int ix;
9535 for (ix = 0; ix < len;) { /* string is 0-terminated */
9536 c = utf[ix];
9539 ix++;
9541 ix++;
9543 return(-ix);
9545 if (ix + 2 > len) return(ix);
9546 if ((utf[ix+1] & 0xc0 ) != 0x80)
9547 return(-ix);
9548 codepoint = (utf[ix] & 0x1f) << 6;
9549 codepoint |= utf[ix+1] & 0x3f;
9551 return(-ix);
9552 ix += 2;
9554 if (ix + 3 > len) return(ix);
9555 if (((utf[ix+1] & 0xc0) != 0x80) ||
9556 ((utf[ix+2] & 0xc0) != 0x80))
9557 return(-ix);
9558 codepoint = (utf[ix] & 0xf) << 12;
9559 codepoint |= (utf[ix+1] & 0x3f) << 6;
9560 codepoint |= utf[ix+2] & 0x3f;
9562 return(-ix);
9563 ix += 3;
9565 if (ix + 4 > len) return(ix);
9566 if (((utf[ix+1] & 0xc0) != 0x80) ||
9567 ((utf[ix+2] & 0xc0) != 0x80) ||
9568 ((utf[ix+3] & 0xc0) != 0x80))
9569 return(-ix);
9570 codepoint = (utf[ix] & 0x7) << 18;
9571 codepoint |= (utf[ix+1] & 0x3f) << 12;
9572 codepoint |= (utf[ix+2] & 0x3f) << 6;
9573 codepoint |= utf[ix+3] & 0x3f;
9575 return(-ix);
9576 ix += 4;
9578 return(-ix);
9580 return(ix);