Lines Matching refs:rest

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