Lines Matching refs:spanLength
197 makeSpanLengthByte(int32_t spanLength) { in makeSpanLengthByte() argument
199 return spanLength<0xfe ? (uint8_t)spanLength : (uint8_t)0xfe; in makeSpanLengthByte()
228 int32_t i, spanLength; in UnicodeSetStringSpan() local
235 spanLength=spanSet.span(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
236 if(spanLength<length16) { // Relevant string. in UnicodeSetStringSpan()
314 spanLength=spanSet.span(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
315 if(spanLength<length16) { // Relevant string. in UnicodeSetStringSpan()
319 spanLengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
322 spanLength=length16-spanSet.spanBack(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
323 spanBackLengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
338 … spanLength=spanSet.spanUTF8((const char *)s8, length8, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
339 spanUTF8Lengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
342 … spanLength=length8-spanSet.spanBackUTF8((const char *)s8, length8, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
343 spanBackUTF8Lengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
638 int32_t spanLength=spanSet.span(s, length, USET_SPAN_CONTAINED); in span() local
639 if(spanLength==length) { in span()
649 int32_t pos=spanLength, rest=length-pos; in span()
668 if(overlap>spanLength) { in span()
669 overlap=spanLength; in span()
707 if(overlap>spanLength) { in span()
708 overlap=spanLength; in span()
736 spanLength=0; // Match strings from after a string match. in span()
742 if(spanLength!=0 || pos==0) { in span()
757 spanLength=spanSet.span(s+pos, rest, USET_SPAN_CONTAINED); in span()
758 if( spanLength==rest || // Reached the end of the string, or in span()
759 spanLength==0 // neither strings nor span progressed. in span()
761 return pos+spanLength; in span()
763 pos+=spanLength; in span()
764 rest-=spanLength; in span()
770 spanLength=spanOne(spanSet, s+pos, rest); in span()
771 if(spanLength>0) { in span()
772 if(spanLength==rest) { in span()
778 pos+=spanLength; in span()
779 rest-=spanLength; in span()
780 offsets.shift(spanLength); in span()
781 spanLength=0; in span()
790 spanLength=0; // Match strings from after a string match. in span()
802 int32_t spanLength=length-pos; in spanBack() local
834 if(overlap>spanLength) { in spanBack()
835 overlap=spanLength; in spanBack()
873 if(overlap>spanLength) { in spanBack()
874 overlap=spanLength; in spanBack()
901 spanLength=0; // Match strings from before a string match. in spanBack()
907 if(spanLength!=0 || pos==length) { in spanBack()
924 spanLength=oldPos-pos; in spanBack()
926 spanLength==0 // neither strings nor span progressed. in spanBack()
935 spanLength=spanOneBack(spanSet, s, pos); in spanBack()
936 if(spanLength>0) { in spanBack()
937 if(spanLength==pos) { in spanBack()
943 pos-=spanLength; in spanBack()
944 offsets.shift(spanLength); in spanBack()
945 spanLength=0; in spanBack()
952 spanLength=0; // Match strings from before a string match. in spanBack()
960 int32_t spanLength=spanSet.spanUTF8((const char *)s, length, USET_SPAN_CONTAINED); in spanUTF8() local
961 if(spanLength==length) { in spanUTF8()
971 int32_t pos=spanLength, rest=length-pos; in spanUTF8()
998 if(overlap>spanLength) { in spanUTF8()
999 overlap=spanLength; in spanUTF8()
1042 if(overlap>spanLength) { in spanUTF8()
1043 overlap=spanLength; in spanUTF8()
1075 spanLength=0; // Match strings from after a string match. in spanUTF8()
1081 if(spanLength!=0 || pos==0) { in spanUTF8()
1096 spanLength=spanSet.spanUTF8((const char *)s+pos, rest, USET_SPAN_CONTAINED); in spanUTF8()
1097 if( spanLength==rest || // Reached the end of the string, or in spanUTF8()
1098 spanLength==0 // neither strings nor span progressed. in spanUTF8()
1100 return pos+spanLength; in spanUTF8()
1102 pos+=spanLength; in spanUTF8()
1103 rest-=spanLength; in spanUTF8()
1109 spanLength=spanOneUTF8(spanSet, s+pos, rest); in spanUTF8()
1110 if(spanLength>0) { in spanUTF8()
1111 if(spanLength==rest) { in spanUTF8()
1117 pos+=spanLength; in spanUTF8()
1118 rest-=spanLength; in spanUTF8()
1119 offsets.shift(spanLength); in spanUTF8()
1120 spanLength=0; in spanUTF8()
1129 spanLength=0; // Match strings from after a string match. in spanUTF8()
1141 int32_t spanLength=length-pos; in spanBackUTF8() local
1177 if(overlap>spanLength) { in spanBackUTF8()
1178 overlap=spanLength; in spanBackUTF8()
1222 if(overlap>spanLength) { in spanBackUTF8()
1223 overlap=spanLength; in spanBackUTF8()
1254 spanLength=0; // Match strings from before a string match. in spanBackUTF8()
1260 if(spanLength!=0 || pos==length) { in spanBackUTF8()
1277 spanLength=oldPos-pos; in spanBackUTF8()
1279 spanLength==0 // neither strings nor span progressed. in spanBackUTF8()
1288 spanLength=spanOneBackUTF8(spanSet, s, pos); in spanBackUTF8()
1289 if(spanLength>0) { in spanBackUTF8()
1290 if(spanLength==pos) { in spanBackUTF8()
1296 pos-=spanLength; in spanBackUTF8()
1297 offsets.shift(spanLength); in spanBackUTF8()
1298 spanLength=0; in spanBackUTF8()
1305 spanLength=0; // Match strings from before a string match. in spanBackUTF8()