Lines Matching refs:rest

645     int32_t pos=spanLength, rest=length-pos;
669 if(inc>rest) {
674 if(inc==rest) {
708 if(inc>rest || overlap<maxOverlap) {
728 rest-=maxInc;
729 if(rest==0) {
753 spanLength=spanSet.span(s+pos, rest, USET_SPAN_CONTAINED);
754 if( spanLength==rest || // Reached the end of the string, or
760 rest-=spanLength;
766 spanLength=spanOne(spanSet, s+pos, rest);
768 if(spanLength==rest) {
775 rest-=spanLength;
785 rest-=minOffset;
967 int32_t pos=spanLength, rest=length-pos;
999 if(inc>rest) {
1010 if(inc==rest) {
1045 if(inc>rest || overlap<maxOverlap) {
1070 rest-=maxInc;
1071 if(rest==0) {
1095 spanLength=spanSet.spanUTF8((const char *)s+pos, rest, USET_SPAN_CONTAINED);
1096 if( spanLength==rest || // Reached the end of the string, or
1102 rest-=spanLength;
1108 spanLength=spanOneUTF8(spanSet, s+pos, rest);
1110 if(spanLength==rest) {
1117 rest-=spanLength;
1127 rest-=minOffset;
1338 int32_t pos=0, rest=length;
1343 i=pSpanNotSet->span(s+pos, rest, USET_SPAN_NOT_CONTAINED);
1344 if(i==rest) {
1348 rest-=i;
1352 int32_t cpLength=spanOne(spanSet, s+pos, rest);
1365 if(length16<=rest && matches16CPB(s, pos, length, s16, length16)) {
1374 rest+=cpLength;
1375 } while(rest!=0);
1422 int32_t pos=0, rest=length;
1431 i=pSpanNotSet->spanUTF8((const char *)s+pos, rest, USET_SPAN_NOT_CONTAINED);
1432 if(i==rest) {
1436 rest-=i;
1440 int32_t cpLength=spanOneUTF8(spanSet, s+pos, rest);
1451 if(length8!=0 && spanUTF8Lengths[i]!=ALL_CP_CONTAINED && length8<=rest && matches8(s+pos, s8, length8)) {
1461 rest+=cpLength;
1462 } while(rest!=0);