• Home
  • Raw
  • Download

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
238 spanLength=spanSet.span(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
239 if(spanLength<length16) { // Relevant string. in UnicodeSetStringSpan()
317 spanLength=spanSet.span(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
318 if(spanLength<length16 && length16>0) { // Relevant string. in UnicodeSetStringSpan()
322 spanLengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
325 spanLength=length16-spanSet.spanBack(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
326 spanBackLengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
341spanLength=spanSet.spanUTF8((const char *)s8, length8, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
342 spanUTF8Lengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
345spanLength=length8-spanSet.spanBackUTF8((const char *)s8, length8, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
346 spanBackUTF8Lengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
641 int32_t spanLength=spanSet.span(s, length, USET_SPAN_CONTAINED); in span() local
642 if(spanLength==length) { in span()
652 int32_t pos=spanLength, rest=length-pos; in span()
672 if(overlap>spanLength) { in span()
673 overlap=spanLength; in span()
714 if(overlap>spanLength) { in span()
715 overlap=spanLength; in span()
743 spanLength=0; // Match strings from after a string match. in span()
749 if(spanLength!=0 || pos==0) { in span()
764 spanLength=spanSet.span(s+pos, rest, USET_SPAN_CONTAINED); in span()
765 if( spanLength==rest || // Reached the end of the string, or in span()
766 spanLength==0 // neither strings nor span progressed. in span()
768 return pos+spanLength; in span()
770 pos+=spanLength; in span()
771 rest-=spanLength; in span()
777 spanLength=spanOne(spanSet, s+pos, rest); in span()
778 if(spanLength>0) { in span()
779 if(spanLength==rest) { in span()
785 pos+=spanLength; in span()
786 rest-=spanLength; in span()
787 offsets.shift(spanLength); in span()
788 spanLength=0; in span()
797 spanLength=0; // Match strings from after a string match. in span()
809 int32_t spanLength=length-pos; in spanBack() local
842 if(overlap>spanLength) { in spanBack()
843 overlap=spanLength; in spanBack()
884 if(overlap>spanLength) { in spanBack()
885 overlap=spanLength; in spanBack()
912 spanLength=0; // Match strings from before a string match. in spanBack()
918 if(spanLength!=0 || pos==length) { in spanBack()
935 spanLength=oldPos-pos; in spanBack()
937 spanLength==0 // neither strings nor span progressed. in spanBack()
946 spanLength=spanOneBack(spanSet, s, pos); in spanBack()
947 if(spanLength>0) { in spanBack()
948 if(spanLength==pos) { in spanBack()
954 pos-=spanLength; in spanBack()
955 offsets.shift(spanLength); in spanBack()
956 spanLength=0; in spanBack()
963 spanLength=0; // Match strings from before a string match. in spanBack()
971 int32_t spanLength=spanSet.spanUTF8((const char *)s, length, USET_SPAN_CONTAINED); in spanUTF8() local
972 if(spanLength==length) { in spanUTF8()
982 int32_t pos=spanLength, rest=length-pos; in spanUTF8()
1009 if(overlap>spanLength) { in spanUTF8()
1010 overlap=spanLength; in spanUTF8()
1053 if(overlap>spanLength) { in spanUTF8()
1054 overlap=spanLength; in spanUTF8()
1086 spanLength=0; // Match strings from after a string match. in spanUTF8()
1092 if(spanLength!=0 || pos==0) { in spanUTF8()
1107 spanLength=spanSet.spanUTF8((const char *)s+pos, rest, USET_SPAN_CONTAINED); in spanUTF8()
1108 if( spanLength==rest || // Reached the end of the string, or in spanUTF8()
1109 spanLength==0 // neither strings nor span progressed. in spanUTF8()
1111 return pos+spanLength; in spanUTF8()
1113 pos+=spanLength; in spanUTF8()
1114 rest-=spanLength; in spanUTF8()
1120 spanLength=spanOneUTF8(spanSet, s+pos, rest); in spanUTF8()
1121 if(spanLength>0) { in spanUTF8()
1122 if(spanLength==rest) { in spanUTF8()
1128 pos+=spanLength; in spanUTF8()
1129 rest-=spanLength; in spanUTF8()
1130 offsets.shift(spanLength); in spanUTF8()
1131 spanLength=0; in spanUTF8()
1140 spanLength=0; // Match strings from after a string match. in spanUTF8()
1152 int32_t spanLength=length-pos; in spanBackUTF8() local
1188 if(overlap>spanLength) { in spanBackUTF8()
1189 overlap=spanLength; in spanBackUTF8()
1233 if(overlap>spanLength) { in spanBackUTF8()
1234 overlap=spanLength; in spanBackUTF8()
1265 spanLength=0; // Match strings from before a string match. in spanBackUTF8()
1271 if(spanLength!=0 || pos==length) { in spanBackUTF8()
1288 spanLength=oldPos-pos; in spanBackUTF8()
1290 spanLength==0 // neither strings nor span progressed. in spanBackUTF8()
1299 spanLength=spanOneBackUTF8(spanSet, s, pos); in spanBackUTF8()
1300 if(spanLength>0) { in spanBackUTF8()
1301 if(spanLength==pos) { in spanBackUTF8()
1307 pos-=spanLength; in spanBackUTF8()
1308 offsets.shift(spanLength); in spanBackUTF8()
1309 spanLength=0; in spanBackUTF8()
1316 spanLength=0; // Match strings from before a string match. in spanBackUTF8()