• Home
  • Raw
  • Download

Lines Matching refs:spanLength

193 makeSpanLengthByte(int32_t spanLength) {  in makeSpanLengthByte()  argument
195 return spanLength<0xfe ? (uint8_t)spanLength : (uint8_t)0xfe; in makeSpanLengthByte()
224 int32_t i, spanLength; in UnicodeSetStringSpan() local
231 spanLength=spanSet.span(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
232 if(spanLength<length16) { // Relevant string. in UnicodeSetStringSpan()
310 spanLength=spanSet.span(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
311 if(spanLength<length16) { // Relevant string. in UnicodeSetStringSpan()
315 spanLengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
318 spanLength=length16-spanSet.spanBack(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
319 spanBackLengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
334spanLength=spanSet.spanUTF8((const char *)s8, length8, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
335 spanUTF8Lengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
338spanLength=length8-spanSet.spanBackUTF8((const char *)s8, length8, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
339 spanBackUTF8Lengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
634 int32_t spanLength=spanSet.span(s, length, USET_SPAN_CONTAINED); in span() local
635 if(spanLength==length) { in span()
645 int32_t pos=spanLength, rest=length-pos; in span()
664 if(overlap>spanLength) { in span()
665 overlap=spanLength; in span()
703 if(overlap>spanLength) { in span()
704 overlap=spanLength; in span()
732 spanLength=0; // Match strings from after a string match. in span()
738 if(spanLength!=0 || pos==0) { in span()
753 spanLength=spanSet.span(s+pos, rest, USET_SPAN_CONTAINED); in span()
754 if( spanLength==rest || // Reached the end of the string, or in span()
755 spanLength==0 // neither strings nor span progressed. in span()
757 return pos+spanLength; in span()
759 pos+=spanLength; in span()
760 rest-=spanLength; in span()
766 spanLength=spanOne(spanSet, s+pos, rest); in span()
767 if(spanLength>0) { in span()
768 if(spanLength==rest) { in span()
774 pos+=spanLength; in span()
775 rest-=spanLength; in span()
776 offsets.shift(spanLength); in span()
777 spanLength=0; in span()
786 spanLength=0; // Match strings from after a string match. in span()
798 int32_t spanLength=length-pos; in spanBack() local
830 if(overlap>spanLength) { in spanBack()
831 overlap=spanLength; in spanBack()
869 if(overlap>spanLength) { in spanBack()
870 overlap=spanLength; in spanBack()
897 spanLength=0; // Match strings from before a string match. in spanBack()
903 if(spanLength!=0 || pos==length) { in spanBack()
920 spanLength=oldPos-pos; in spanBack()
922 spanLength==0 // neither strings nor span progressed. in spanBack()
931 spanLength=spanOneBack(spanSet, s, pos); in spanBack()
932 if(spanLength>0) { in spanBack()
933 if(spanLength==pos) { in spanBack()
939 pos-=spanLength; in spanBack()
940 offsets.shift(spanLength); in spanBack()
941 spanLength=0; in spanBack()
948 spanLength=0; // Match strings from before a string match. in spanBack()
956 int32_t spanLength=spanSet.spanUTF8((const char *)s, length, USET_SPAN_CONTAINED); in spanUTF8() local
957 if(spanLength==length) { in spanUTF8()
967 int32_t pos=spanLength, rest=length-pos; in spanUTF8()
994 if(overlap>spanLength) { in spanUTF8()
995 overlap=spanLength; in spanUTF8()
1040 if(overlap>spanLength) { in spanUTF8()
1041 overlap=spanLength; in spanUTF8()
1074 spanLength=0; // Match strings from after a string match. in spanUTF8()
1080 if(spanLength!=0 || pos==0) { in spanUTF8()
1095 spanLength=spanSet.spanUTF8((const char *)s+pos, rest, USET_SPAN_CONTAINED); in spanUTF8()
1096 if( spanLength==rest || // Reached the end of the string, or in spanUTF8()
1097 spanLength==0 // neither strings nor span progressed. in spanUTF8()
1099 return pos+spanLength; in spanUTF8()
1101 pos+=spanLength; in spanUTF8()
1102 rest-=spanLength; in spanUTF8()
1108 spanLength=spanOneUTF8(spanSet, s+pos, rest); in spanUTF8()
1109 if(spanLength>0) { in spanUTF8()
1110 if(spanLength==rest) { in spanUTF8()
1116 pos+=spanLength; in spanUTF8()
1117 rest-=spanLength; in spanUTF8()
1118 offsets.shift(spanLength); in spanUTF8()
1119 spanLength=0; in spanUTF8()
1128 spanLength=0; // Match strings from after a string match. in spanUTF8()
1140 int32_t spanLength=length-pos; in spanBackUTF8() local
1176 if(overlap>spanLength) { in spanBackUTF8()
1177 overlap=spanLength; in spanBackUTF8()
1221 if(overlap>spanLength) { in spanBackUTF8()
1222 overlap=spanLength; in spanBackUTF8()
1253 spanLength=0; // Match strings from before a string match. in spanBackUTF8()
1259 if(spanLength!=0 || pos==length) { in spanBackUTF8()
1276 spanLength=oldPos-pos; in spanBackUTF8()
1278 spanLength==0 // neither strings nor span progressed. in spanBackUTF8()
1287 spanLength=spanOneBackUTF8(spanSet, s, pos); in spanBackUTF8()
1288 if(spanLength>0) { in spanBackUTF8()
1289 if(spanLength==pos) { in spanBackUTF8()
1295 pos-=spanLength; in spanBackUTF8()
1296 offsets.shift(spanLength); in spanBackUTF8()
1297 spanLength=0; in spanBackUTF8()
1304 spanLength=0; // Match strings from before a string match. in spanBackUTF8()