Lines Matching refs:overlap

654                 int32_t overlap=spanLengths[i];  in span()  local
655 if(overlap==ALL_CP_CONTAINED) { in span()
663 if(overlap>=LONG_SPAN) { in span()
664 overlap=length16; in span()
666 U16_BACK_1(s16, 0, overlap); // Length of the string minus the last code point. in span()
668 if(overlap>spanLength) { in span()
669 overlap=spanLength; in span()
671 int32_t inc=length16-overlap; // Keep overlap+inc==length16. in span()
677 … if(!offsets.containsOffset(inc) && matches16CPB(s, pos-overlap, length, s16, length16)) { in span()
683 if(overlap==0) { in span()
686 --overlap; in span()
693 int32_t overlap=spanLengths[i]; in span() local
702 if(overlap>=LONG_SPAN) { in span()
703 overlap=length16; in span()
707 if(overlap>spanLength) { in span()
708 overlap=spanLength; in span()
710 int32_t inc=length16-overlap; // Keep overlap+inc==length16. in span()
712 if(inc>rest || overlap<maxOverlap) { in span()
716 if( (overlap>maxOverlap || /* redundant overlap==maxOverlap && */ inc>maxInc) && in span()
717 matches16CPB(s, pos-overlap, length, s16, length16) in span()
720 maxOverlap=overlap; in span()
723 --overlap; in span()
818 int32_t overlap=spanBackLengths[i]; in spanBack() local
819 if(overlap==ALL_CP_CONTAINED) { in spanBack()
827 if(overlap>=LONG_SPAN) { in spanBack()
828 overlap=length16; in spanBack()
831 U16_FWD_1(s16, len1, overlap); in spanBack()
832 overlap-=len1; // Length of the string minus the first code point. in spanBack()
834 if(overlap>spanLength) { in spanBack()
835 overlap=spanLength; in spanBack()
837 int32_t dec=length16-overlap; // Keep dec+overlap==length16. in spanBack()
849 if(overlap==0) { in spanBack()
852 --overlap; in spanBack()
859 int32_t overlap=spanBackLengths[i]; in spanBack() local
868 if(overlap>=LONG_SPAN) { in spanBack()
869 overlap=length16; in spanBack()
873 if(overlap>spanLength) { in spanBack()
874 overlap=spanLength; in spanBack()
876 int32_t dec=length16-overlap; // Keep dec+overlap==length16. in spanBack()
878 if(dec>pos || overlap<maxOverlap) { in spanBack()
882 if( (overlap>maxOverlap || /* redundant overlap==maxOverlap && */ dec>maxDec) && in spanBack()
886 maxOverlap=overlap; in spanBack()
889 --overlap; in spanBack()
986 int32_t overlap=spanUTF8Lengths[i]; in spanUTF8() local
987 if(overlap==ALL_CP_CONTAINED) { in spanUTF8()
993 if(overlap>=LONG_SPAN) { in spanUTF8()
994 overlap=length8; in spanUTF8()
996 U8_BACK_1(s8, 0, overlap); // Length of the string minus the last code point. in spanUTF8()
998 if(overlap>spanLength) { in spanUTF8()
999 overlap=spanLength; in spanUTF8()
1001 int32_t inc=length8-overlap; // Keep overlap+inc==length8. in spanUTF8()
1009 if(!U8_IS_TRAIL(s[pos-overlap]) && in spanUTF8()
1011 matches8(s+pos-overlap, s8, length8)) { in spanUTF8()
1017 if(overlap==0) { in spanUTF8()
1020 --overlap; in spanUTF8()
1032 int32_t overlap=spanUTF8Lengths[i]; in spanUTF8() local
1037 if(overlap>=LONG_SPAN) { in spanUTF8()
1038 overlap=length8; in spanUTF8()
1042 if(overlap>spanLength) { in spanUTF8()
1043 overlap=spanLength; in spanUTF8()
1045 int32_t inc=length8-overlap; // Keep overlap+inc==length8. in spanUTF8()
1047 if(inc>rest || overlap<maxOverlap) { in spanUTF8()
1053 if(!U8_IS_TRAIL(s[pos-overlap]) && in spanUTF8()
1054 (overlap>maxOverlap || in spanUTF8()
1056 matches8(s+pos-overlap, s8, length8)) { in spanUTF8()
1058 maxOverlap=overlap; in spanUTF8()
1061 --overlap; in spanUTF8()
1163 int32_t overlap=spanBackUTF8Lengths[i]; in spanBackUTF8() local
1164 if(overlap==ALL_CP_CONTAINED) { in spanBackUTF8()
1170 if(overlap>=LONG_SPAN) { in spanBackUTF8()
1171 overlap=length8; in spanBackUTF8()
1174 U8_FWD_1(s8, len1, overlap); in spanBackUTF8()
1175 overlap-=len1; // Length of the string minus the first code point. in spanBackUTF8()
1177 if(overlap>spanLength) { in spanBackUTF8()
1178 overlap=spanLength; in spanBackUTF8()
1180 int32_t dec=length8-overlap; // Keep dec+overlap==length8. in spanBackUTF8()
1197 if(overlap==0) { in spanBackUTF8()
1200 --overlap; in spanBackUTF8()
1212 int32_t overlap=spanBackUTF8Lengths[i]; in spanBackUTF8() local
1217 if(overlap>=LONG_SPAN) { in spanBackUTF8()
1218 overlap=length8; in spanBackUTF8()
1222 if(overlap>spanLength) { in spanBackUTF8()
1223 overlap=spanLength; in spanBackUTF8()
1225 int32_t dec=length8-overlap; // Keep dec+overlap==length8. in spanBackUTF8()
1227 if(dec>pos || overlap<maxOverlap) { in spanBackUTF8()
1234 (overlap>maxOverlap || /* redundant overlap==maxOverlap && */ dec>maxDec) && in spanBackUTF8()
1238 maxOverlap=overlap; in spanBackUTF8()
1241 --overlap; in spanBackUTF8()