• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/ICU-511.35/icuSources/common/

Lines Matching refs:pos

647     int32_t pos=spanLength, rest=length-pos;
660 // Try to match this string at pos-overlap..pos.
675 if(!offsets.containsOffset(inc) && matches16CPB(s, pos-overlap, length, s16, length16)) {
699 // Try to match this string at pos-overlap..pos.
715 matches16CPB(s, pos-overlap, length, s16, length16)
729 pos+=maxInc;
738 // Finished trying to match all strings at pos.
740 if(spanLength!=0 || pos==0) {
743 // The only position where spanLength==0 after a span is pos==0.
747 return pos; // No strings matched after a span.
755 spanLength=spanSet.span(s+pos, rest, USET_SPAN_CONTAINED);
759 return pos+spanLength;
761 pos+=spanLength;
768 spanLength=spanOne(spanSet, s+pos, rest);
776 pos+=spanLength;
786 pos+=minOffset;
796 int32_t pos=spanSet.spanBack(s, length, USET_SPAN_CONTAINED);
797 if(pos==0) {
800 int32_t spanLength=length-pos;
824 // Try to match this string at pos-(length16-overlap)..pos-length16.
837 if(dec>pos) {
841 if(!offsets.containsOffset(dec) && matches16CPB(s, pos-dec, length, s16, length16)) {
842 if(dec==pos) {
865 // Try to match this string at pos-(length16-overlap)..pos-length16.
876 if(dec>pos || overlap<maxOverlap) {
881 matches16CPB(s, pos-dec, length, s16, length16)
895 pos-=maxDec;
896 if(pos==0) {
903 // Finished trying to match all strings at pos.
905 if(spanLength!=0 || pos==length) {
908 // The only position where spanLength==0 before a span is pos==length.
912 return pos; // No strings matched before a span.
920 int32_t oldPos=pos;
921 pos=spanSet.spanBack(s, oldPos, USET_SPAN_CONTAINED);
922 spanLength=oldPos-pos;
923 if( pos==0 || // Reached the start of the string, or
926 return pos;
933 spanLength=spanOneBack(spanSet, s, pos);
935 if(spanLength==pos) {
941 pos-=spanLength;
949 pos-=offsets.popMinimum();
969 int32_t pos=spanLength, rest=length-pos;
990 // Try to match this string at pos-overlap..pos.
1007 if( !U8_IS_TRAIL(s[pos-overlap]) &&
1009 matches8(s+pos-overlap, s8, length8)
1036 // Try to match this string at pos-overlap..pos.
1053 if( !U8_IS_TRAIL(s[pos-overlap]) &&
1055 matches8(s+pos-overlap, s8, length8)
1071 pos+=maxInc;
1080 // Finished trying to match all strings at pos.
1082 if(spanLength!=0 || pos==0) {
1085 // The only position where spanLength==0 after a span is pos==0.
1089 return pos; // No strings matched after a span.
1097 spanLength=spanSet.spanUTF8((const char *)s+pos, rest, USET_SPAN_CONTAINED);
1101 return pos+spanLength;
1103 pos+=spanLength;
1110 spanLength=spanOneUTF8(spanSet, s+pos, rest);
1118 pos+=spanLength;
1128 pos+=minOffset;
1138 int32_t pos=spanSet.spanBackUTF8((const char *)s, length, USET_SPAN_CONTAINED);
1139 if(pos==0) {
1142 int32_t spanLength=length-pos;
1170 // Try to match this string at pos-(length8-overlap)..pos-length8.
1183 if(dec>pos) {
1189 if( !U8_IS_TRAIL(s[pos-dec]) &&
1191 matches8(s+pos-dec, s8, length8)
1193 if(dec==pos) {
1217 // Try to match this string at pos-(length8-overlap)..pos-length8.
1228 if(dec>pos || overlap<maxOverlap) {
1234 if( !U8_IS_TRAIL(s[pos-dec]) &&
1236 matches8(s+pos-dec, s8, length8)
1251 pos-=maxDec;
1252 if(pos==0) {
1259 // Finished trying to match all strings at pos.
1261 if(spanLength!=0 || pos==length) {
1264 // The only position where spanLength==0 before a span is pos==length.
1268 return pos; // No strings matched before a span.
1276 int32_t oldPos=pos;
1277 pos=spanSet.spanBackUTF8((const char *)s, oldPos, USET_SPAN_CONTAINED);
1278 spanLength=oldPos-pos;
1279 if( pos==0 || // Reached the start of the string, or
1282 return pos;
1289 spanLength=spanOneBackUTF8(spanSet, s, pos);
1291 if(spanLength==pos) {
1297 pos-=spanLength;
1305 pos-=offsets.popMinimum();
1340 int32_t pos=0, rest=length;
1345 i=pSpanNotSet->span(s+pos, rest, USET_SPAN_NOT_CONTAINED);
1349 pos+=i;
1354 int32_t cpLength=spanOne(spanSet, s+pos, rest);
1356 return pos; // There is a set element at pos.
1359 // Try to match the strings at pos.
1367 if(length16<=rest && matches16CPB(s, pos, length, s16, length16)) {
1368 return pos; // There is a set element at pos.
1375 pos-=cpLength;
1382 int32_t pos=length;
1387 pos=pSpanNotSet->spanBack(s, pos, USET_SPAN_NOT_CONTAINED);
1388 if(pos==0) {
1394 int32_t cpLength=spanOneBack(spanSet, s, pos);
1396 return pos; // There is a set element at pos.
1399 // Try to match the strings at pos.
1410 if(length16<=pos && matches16CPB(s, pos-length16, length, s16, length16)) {
1411 return pos; // There is a set element at pos.
1418 pos+=cpLength;
1419 } while(pos!=0);
1424 int32_t pos=0, rest=length;
1433 i=pSpanNotSet->spanUTF8((const char *)s+pos, rest, USET_SPAN_NOT_CONTAINED);
1437 pos+=i;
1442 int32_t cpLength=spanOneUTF8(spanSet, s+pos, rest);
1444 return pos; // There is a set element at pos.
1447 // Try to match the strings at pos.
1453 if(length8!=0 && spanUTF8Lengths[i]!=ALL_CP_CONTAINED && length8<=rest && matches8(s+pos, s8, length8)) {
1454 return pos; // There is a set element at pos.
1462 pos-=cpLength;
1469 int32_t pos=length;
1478 pos=pSpanNotSet->spanBackUTF8((const char *)s, pos, USET_SPAN_NOT_CONTAINED);
1479 if(pos==0) {
1485 int32_t cpLength=spanOneBackUTF8(spanSet, s, pos);
1487 return pos; // There is a set element at pos.
1490 // Try to match the strings at pos.
1496 if(length8!=0 && spanBackUTF8Lengths[i]!=ALL_CP_CONTAINED && length8<=pos && matches8(s+pos-length8, s8, length8)) {
1497 return pos; // There is a set element at pos.
1505 pos+=cpLength;
1506 } while(pos!=0);