Lines Matching defs:limit

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