• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:limit

68 static void set32x64Bits(uint32_t table[64], int32_t start, int32_t limit) {  in set32x64Bits()  argument
69 U_ASSERT(start<limit); in set32x64Bits()
70 U_ASSERT(limit<=0x800); in set32x64Bits()
77 if((start+1)==limit) { // Single-character shortcut. in set32x64Bits()
82 int32_t limitLead=limit>>6; in set32x64Bits()
83 int32_t limitTrail=limit&0x3f; in set32x64Bits()
120 UChar32 start, limit; in initBits() local
127 limit=list[listIndex++]; in initBits()
129 limit=0x110000; in initBits()
136 } while(start<limit && start<0x80); in initBits()
137 } while(limit<=0x80); in initBits()
141 set32x64Bits(table7FF, start, limit<=0x800 ? limit : 0x800); in initBits()
142 if(limit>0x800) { in initBits()
149 limit=list[listIndex++]; in initBits()
151 limit=0x110000; in initBits()
158 if(limit>0x10000) { in initBits()
159 limit=0x10000; in initBits()
165 if(start<limit) { // Else: Another range entirely in a known mixed-value block. in initBits()
173 if(start<limit) { in initBits()
174 if(start<(limit&~0x3f)) { in initBits()
176 set32x64Bits(bmpBlockBits, start>>6, limit>>6); in initBits()
179 if(limit&0x3f) { in initBits()
181 limit>>=6; in initBits()
182 bmpBlockBits[limit&0x3f]|=0x10001<<(limit>>6); in initBits()
183 limit=(limit+1)<<6; // Round up to the next block boundary. in initBits()
184 minStart=limit; // Ignore further ranges in this block. in initBits()
189 if(limit==0x10000) { in initBits()
195 limit=list[listIndex++]; in initBits()
197 limit=0x110000; in initBits()
310 BMPSet::span(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const { in span() argument
340 } else if(c>=0xdc00 || (s+1)==limit || (c2=s[1])<0xdc00 || c2>=0xe000) { in span()
352 } while(++s<limit); in span()
380 } else if(c>=0xdc00 || (s+1)==limit || (c2=s[1])<0xdc00 || c2>=0xe000) { in span()
392 } while(++s<limit); in span()
399 BMPSet::spanBack(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const { in spanBack() argument
405 c=*(--limit); in spanBack()
429 } else if(c<0xdc00 || s==limit || (c2=*(limit-1))<0xd800 || c2>=0xdc00) { in spanBack()
439 --limit; in spanBack()
441 if(s==limit) { in spanBack()
448 c=*(--limit); in spanBack()
472 } else if(c<0xdc00 || s==limit || (c2=*(limit-1))<0xd800 || c2>=0xdc00) { in spanBack()
482 --limit; in spanBack()
484 if(s==limit) { in spanBack()
489 return limit+1; in spanBack()
498 const uint8_t *limit=s+length; in spanUTF8() local
504 if(!asciiBytes[b] || ++s==limit) { in spanUTF8()
511 if(asciiBytes[b] || ++s==limit) { in spanUTF8()
517 length=(int32_t)(limit-s); in spanUTF8()
524 const uint8_t *limit0=limit; in spanUTF8()
536 b=*(limit-1); in spanUTF8()
541 if(length>=2 && (b=*(limit-2))>=0xe0) { in spanUTF8()
542 limit-=2; in spanUTF8()
544 limit0=limit; in spanUTF8()
546 } else if(b<0xc0 && b>=0x80 && length>=3 && (b=*(limit-3))>=0xf0) { in spanUTF8()
548 limit-=3; in spanUTF8()
550 limit0=limit; in spanUTF8()
555 --limit; in spanUTF8()
557 limit0=limit; in spanUTF8()
564 while(s<limit) { in spanUTF8()
572 } else if(++s==limit) { in spanUTF8()
581 } else if(++s==limit) { in spanUTF8()