Lines Matching refs:limit
66 static void set32x64Bits(uint32_t table[64], int32_t start, int32_t limit) { in set32x64Bits() argument
67 U_ASSERT(start<limit); in set32x64Bits()
68 U_ASSERT(limit<=0x800); in set32x64Bits()
75 if((start+1)==limit) { // Single-character shortcut. in set32x64Bits()
80 int32_t limitLead=limit>>6; in set32x64Bits()
81 int32_t limitTrail=limit&0x3f; in set32x64Bits()
118 UChar32 start, limit; in initBits() local
125 limit=list[listIndex++]; in initBits()
127 limit=0x110000; in initBits()
134 } while(start<limit && start<0x80); in initBits()
135 } while(limit<=0x80); in initBits()
139 set32x64Bits(table7FF, start, limit<=0x800 ? limit : 0x800); in initBits()
140 if(limit>0x800) { in initBits()
147 limit=list[listIndex++]; in initBits()
149 limit=0x110000; in initBits()
156 if(limit>0x10000) { in initBits()
157 limit=0x10000; in initBits()
163 if(start<limit) { // Else: Another range entirely in a known mixed-value block. in initBits()
171 if(start<limit) { in initBits()
172 if(start<(limit&~0x3f)) { in initBits()
174 set32x64Bits(bmpBlockBits, start>>6, limit>>6); in initBits()
177 if(limit&0x3f) { in initBits()
179 limit>>=6; in initBits()
180 bmpBlockBits[limit&0x3f]|=0x10001<<(limit>>6); in initBits()
181 limit=(limit+1)<<6; // Round up to the next block boundary. in initBits()
182 minStart=limit; // Ignore further ranges in this block. in initBits()
187 if(limit==0x10000) { in initBits()
193 limit=list[listIndex++]; in initBits()
195 limit=0x110000; in initBits()
308 BMPSet::span(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const { in span() argument
338 } else if(c>=0xdc00 || (s+1)==limit || (c2=s[1])<0xdc00 || c2>=0xe000) { in span()
350 } while(++s<limit); in span()
378 } else if(c>=0xdc00 || (s+1)==limit || (c2=s[1])<0xdc00 || c2>=0xe000) { in span()
390 } while(++s<limit); in span()
397 BMPSet::spanBack(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const { in spanBack() argument
403 c=*(--limit); in spanBack()
427 } else if(c<0xdc00 || s==limit || (c2=*(limit-1))<0xd800 || c2>=0xdc00) { in spanBack()
437 --limit; in spanBack()
439 if(s==limit) { in spanBack()
446 c=*(--limit); in spanBack()
470 } else if(c<0xdc00 || s==limit || (c2=*(limit-1))<0xd800 || c2>=0xdc00) { in spanBack()
480 --limit; in spanBack()
482 if(s==limit) { in spanBack()
487 return limit+1; in spanBack()
496 const uint8_t *limit=s+length; in spanUTF8() local
502 if(!asciiBytes[b] || ++s==limit) { in spanUTF8()
509 if(asciiBytes[b] || ++s==limit) { in spanUTF8()
515 length=(int32_t)(limit-s); in spanUTF8()
522 const uint8_t *limit0=limit; in spanUTF8()
534 b=*(limit-1); in spanUTF8()
539 if(length>=2 && (b=*(limit-2))>=0xe0) { in spanUTF8()
540 limit-=2; in spanUTF8()
542 limit0=limit; in spanUTF8()
544 } else if(b<0xc0 && b>=0x80 && length>=3 && (b=*(limit-3))>=0xf0) { in spanUTF8()
546 limit-=3; in spanUTF8()
548 limit0=limit; in spanUTF8()
553 --limit; in spanUTF8()
555 limit0=limit; in spanUTF8()
562 while(s<limit) { in spanUTF8()
570 } else if(++s==limit) { in spanUTF8()
579 } else if(++s==limit) { in spanUTF8()