Lines Matching refs:rest
647 int32_t pos=spanLength, rest=length-pos; in span() local
671 if(inc>rest) { in span()
676 if(inc==rest) { in span()
710 if(inc>rest || overlap<maxOverlap) { in span()
730 rest-=maxInc; in span()
731 if(rest==0) { in span()
755 spanLength=spanSet.span(s+pos, rest, USET_SPAN_CONTAINED); in span()
756 if( spanLength==rest || // Reached the end of the string, or in span()
762 rest-=spanLength; in span()
768 spanLength=spanOne(spanSet, s+pos, rest); in span()
770 if(spanLength==rest) { in span()
777 rest-=spanLength; in span()
787 rest-=minOffset; in span()
969 int32_t pos=spanLength, rest=length-pos; in spanUTF8() local
1001 if(inc>rest) { in spanUTF8()
1012 if(inc==rest) { in spanUTF8()
1047 if(inc>rest || overlap<maxOverlap) { in spanUTF8()
1072 rest-=maxInc; in spanUTF8()
1073 if(rest==0) { in spanUTF8()
1097 spanLength=spanSet.spanUTF8((const char *)s+pos, rest, USET_SPAN_CONTAINED); in spanUTF8()
1098 if( spanLength==rest || // Reached the end of the string, or in spanUTF8()
1104 rest-=spanLength; in spanUTF8()
1110 spanLength=spanOneUTF8(spanSet, s+pos, rest); in spanUTF8()
1112 if(spanLength==rest) { in spanUTF8()
1119 rest-=spanLength; in spanUTF8()
1129 rest-=minOffset; in spanUTF8()
1340 int32_t pos=0, rest=length; in spanNot() local
1345 i=pSpanNotSet->span(s+pos, rest, USET_SPAN_NOT_CONTAINED); in spanNot()
1346 if(i==rest) { in spanNot()
1350 rest-=i; in spanNot()
1354 int32_t cpLength=spanOne(spanSet, s+pos, rest); in spanNot()
1367 if(length16<=rest && matches16CPB(s, pos, length, s16, length16)) { in spanNot()
1376 rest+=cpLength; in spanNot()
1377 } while(rest!=0); in spanNot()
1424 int32_t pos=0, rest=length; in spanNotUTF8() local
1433 i=pSpanNotSet->spanUTF8((const char *)s+pos, rest, USET_SPAN_NOT_CONTAINED); in spanNotUTF8()
1434 if(i==rest) { in spanNotUTF8()
1438 rest-=i; in spanNotUTF8()
1442 int32_t cpLength=spanOneUTF8(spanSet, s+pos, rest); in spanNotUTF8()
1453 …if(length8!=0 && spanUTF8Lengths[i]!=ALL_CP_CONTAINED && length8<=rest && matches8(s+pos, s8, leng… in spanNotUTF8()
1463 rest+=cpLength; in spanNotUTF8()
1464 } while(rest!=0); in spanNotUTF8()