Lines Matching refs:limit
86 * The caller must not modify start and limit because they are used internally.
93 * limit UTF-8 length of the string
120 int32_t i, limit, index;
124 limit=iter->start; /* count up to the UTF-8 index */
125 while(i<limit) {
126 L8_NEXT(s, i, limit, c);
135 if(i==iter->limit) {
149 int32_t i, limit, length;
158 limit=iter->start;
161 while(i<limit) {
162 L8_NEXT(s, i, limit, c);
170 /* assume i==limit==iter->start, set the UTF-16 index */
182 limit=iter->limit;
183 while(i<limit) {
184 L8_NEXT(s, i, limit, c);
235 iter->start=iter->limit;
257 iter->start=iter->limit;
273 iter->start=iter->limit;
289 } else if(delta>=(iter->limit-iter->start)) {
292 iter->start=iter->limit;
306 int32_t limit=iter->limit;
312 while(delta>0 && i<limit) {
313 L8_NEXT(s, i, limit, c);
327 if(i==limit) {
376 return iter->reservedField!=0 || iter->start<iter->limit;
388 } else if(iter->start<iter->limit) {
393 L8_NEXT(s, i, iter->limit, c);
417 } else if(iter->start<iter->limit) {
421 L8_NEXT(s, iter->start, iter->limit, c);
424 if(iter->length<0 && iter->start==iter->limit) {
427 } else if(iter->start==iter->limit && iter->length>=0) {
500 if((state==0 ? index<0 : index<4) || iter->limit<index) {
546 iter->limit=length;
548 iter->limit=strlen(s);
550 iter->length= iter->limit<=1 ? iter->limit : -1;