Lines Matching refs:overlap
652 int32_t overlap=spanLengths[i]; in span() local
653 if(overlap==ALL_CP_CONTAINED) { in span()
661 if(overlap>=LONG_SPAN) { in span()
662 overlap=length16; in span()
664 U16_BACK_1(s16, 0, overlap); // Length of the string minus the last code point. in span()
666 if(overlap>spanLength) { in span()
667 overlap=spanLength; in span()
669 int32_t inc=length16-overlap; // Keep overlap+inc==length16. in span()
675 … if(!offsets.containsOffset(inc) && matches16CPB(s, pos-overlap, length, s16, length16)) { in span()
681 if(overlap==0) { in span()
684 --overlap; in span()
691 int32_t overlap=spanLengths[i]; in span() local
700 if(overlap>=LONG_SPAN) { in span()
701 overlap=length16; in span()
705 if(overlap>spanLength) { in span()
706 overlap=spanLength; in span()
708 int32_t inc=length16-overlap; // Keep overlap+inc==length16. in span()
710 if(inc>rest || overlap<maxOverlap) { in span()
714 if( (overlap>maxOverlap || /* redundant overlap==maxOverlap && */ inc>maxInc) && in span()
715 matches16CPB(s, pos-overlap, length, s16, length16) in span()
718 maxOverlap=overlap; in span()
721 --overlap; in span()
816 int32_t overlap=spanBackLengths[i]; in spanBack() local
817 if(overlap==ALL_CP_CONTAINED) { in spanBack()
825 if(overlap>=LONG_SPAN) { in spanBack()
826 overlap=length16; in spanBack()
829 U16_FWD_1(s16, len1, overlap); in spanBack()
830 overlap-=len1; // Length of the string minus the first code point. in spanBack()
832 if(overlap>spanLength) { in spanBack()
833 overlap=spanLength; in spanBack()
835 int32_t dec=length16-overlap; // Keep dec+overlap==length16. in spanBack()
847 if(overlap==0) { in spanBack()
850 --overlap; in spanBack()
857 int32_t overlap=spanBackLengths[i]; in spanBack() local
866 if(overlap>=LONG_SPAN) { in spanBack()
867 overlap=length16; in spanBack()
871 if(overlap>spanLength) { in spanBack()
872 overlap=spanLength; in spanBack()
874 int32_t dec=length16-overlap; // Keep dec+overlap==length16. in spanBack()
876 if(dec>pos || overlap<maxOverlap) { in spanBack()
880 if( (overlap>maxOverlap || /* redundant overlap==maxOverlap && */ dec>maxDec) && in spanBack()
884 maxOverlap=overlap; in spanBack()
887 --overlap; in spanBack()
984 int32_t overlap=spanUTF8Lengths[i]; in spanUTF8() local
985 if(overlap==ALL_CP_CONTAINED) { in spanUTF8()
991 if(overlap>=LONG_SPAN) { in spanUTF8()
992 overlap=length8; in spanUTF8()
994 U8_BACK_1(s8, 0, overlap); // Length of the string minus the last code point. in spanUTF8()
996 if(overlap>spanLength) { in spanUTF8()
997 overlap=spanLength; in spanUTF8()
999 int32_t inc=length8-overlap; // Keep overlap+inc==length8. in spanUTF8()
1007 if( !U8_IS_TRAIL(s[pos-overlap]) && in spanUTF8()
1009 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 || /* redundant overlap==maxOverlap && */ inc>maxInc) && in spanUTF8()
1055 matches8(s+pos-overlap, s8, length8) in spanUTF8()
1059 maxOverlap=overlap; in spanUTF8()
1062 --overlap; in spanUTF8()
1164 int32_t overlap=spanBackUTF8Lengths[i]; in spanBackUTF8() local
1165 if(overlap==ALL_CP_CONTAINED) { in spanBackUTF8()
1171 if(overlap>=LONG_SPAN) { in spanBackUTF8()
1172 overlap=length8; in spanBackUTF8()
1175 U8_FWD_1(s8, len1, overlap); in spanBackUTF8()
1176 overlap-=len1; // Length of the string minus the first code point. in spanBackUTF8()
1178 if(overlap>spanLength) { in spanBackUTF8()
1179 overlap=spanLength; in spanBackUTF8()
1181 int32_t dec=length8-overlap; // Keep dec+overlap==length8. in spanBackUTF8()
1198 if(overlap==0) { in spanBackUTF8()
1201 --overlap; in spanBackUTF8()
1213 int32_t overlap=spanBackUTF8Lengths[i]; in spanBackUTF8() local
1218 if(overlap>=LONG_SPAN) { in spanBackUTF8()
1219 overlap=length8; in spanBackUTF8()
1223 if(overlap>spanLength) { in spanBackUTF8()
1224 overlap=spanLength; in spanBackUTF8()
1226 int32_t dec=length8-overlap; // Keep dec+overlap==length8. in spanBackUTF8()
1228 if(dec>pos || overlap<maxOverlap) { in spanBackUTF8()
1235 (overlap>maxOverlap || /* redundant overlap==maxOverlap && */ dec>maxDec) && in spanBackUTF8()
1239 maxOverlap=overlap; in spanBackUTF8()
1242 --overlap; in spanBackUTF8()