Home | History | Annotate | Download | only in intltest

Lines Matching refs:spanBack

713     // span(UnicodeString) and spanBack(UnicodeString) convenience methods
730 if( ac.spanBack(longString, -5, USET_SPAN_CONTAINED)!=0 ||
731 ac.spanBack(longString, 0, USET_SPAN_CONTAINED)!=0 ||
732 ac.spanBack(longString, 5, USET_SPAN_CONTAINED)!=0 ||
733 ac.spanBack(longString, 10, USET_SPAN_CONTAINED)!=0 ||
734 ac.spanBack(longString, 15, USET_SPAN_CONTAINED)!=15 ||
735 ac.spanBack(longString, 20, USET_SPAN_CONTAINED)!=20 ||
736 ac.spanBack(longString, 25, USET_SPAN_CONTAINED)!=20 ||
737 ac.spanBack(longString, 30, USET_SPAN_CONTAINED)!=20 ||
738 ac.spanBack(longString, 35, USET_SPAN_CONTAINED)!=20 ||
739 ac.spanBack(longString, INT32_MAX, USET_SPAN_CONTAINED)!=20
741 errln("UnicodeSet.spanBack(UnicodeString, ...) returns incorrect start indexes");
2849 * When using spanBack() and comparing with span(), use a span condition for the first spanBack()
2874 "spanBack", "spanBack(LM)"
2920 // First span condition for span(), used to terminate the spanBack() iteration.
2923 // spanBack(): Its initial span condition is span()'s last span condition,
3002 // Note: Length<0 is tested only for the first spanBack().
3003 // If we wanted to keep length<0 for all spanBack()s, we would have to
3004 // temporarily modify the string by placing a NUL where the previous spanBack() stopped.
3005 length= isUTF16 ? realSet.spanBack((const UChar *)s, length, spanCondition) :
3042 * span() or spanBack(), using unfrozen or frozen versions of the set,
3463 // b -- span() and spanBack() boundaries may differ.
3464 // Cause: Strings in the set overlap, and spanBack(USET_SPAN_CONTAINED)
3465 // and spanBack(USET_SPAN_SIMPLE) are defined to
3470 // while spanBack() yields boundaries { 0, 1, 3 }
3529 "byayaxya", // span() -> { 4, 7, 8 } spanBack() -> { 5, 8 }
3548 // spanBack(longest match) will not span the whole string.
3581 // On complement sets, span() and spanBack() get different results
3810 if( set.spanBack(s16, 12, USET_SPAN_CONTAINED)!=0 ||
3811 set.spanBack(s16, 12, USET_SPAN_SIMPLE)!=6 ||
3812 set.spanBack(s16, 5, USET_SPAN_SIMPLE)!=0
3814 errln("FAIL: UnicodeSet(%s).spanBack(while longest match) returns the wrong value", pattern);