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");
2869 * When using spanBack() and comparing with span(), use a span condition for the first spanBack()
2894 "spanBack", "spanBack(LM)"
2940 // First span condition for span(), used to terminate the spanBack() iteration.
2943 // spanBack(): Its initial span condition is span()'s last span condition,
3022 // Note: Length<0 is tested only for the first spanBack().
3023 // If we wanted to keep length<0 for all spanBack()s, we would have to
3024 // temporarily modify the string by placing a NUL where the previous spanBack() stopped.
3025 length= isUTF16 ? realSet.spanBack((const UChar *)s, length, spanCondition) :
3062 * span() or spanBack(), using unfrozen or frozen versions of the set,
3483 // b -- span() and spanBack() boundaries may differ.
3484 // Cause: Strings in the set overlap, and spanBack(USET_SPAN_CONTAINED)
3485 // and spanBack(USET_SPAN_SIMPLE) are defined to
3490 // while spanBack() yields boundaries { 0, 1, 3 }
3549 "byayaxya", // span() -> { 4, 7, 8 } spanBack() -> { 5, 8 }
3568 // spanBack(longest match) will not span the whole string.
3601 // On complement sets, span() and spanBack() get different results
3829 if( set.spanBack(s16, 12, USET_SPAN_CONTAINED)!=0 ||
3830 set.spanBack(s16, 12, USET_SPAN_SIMPLE)!=6 ||
3831 set.spanBack(s16, 5, USET_SPAN_SIMPLE)!=0
3833 errln("FAIL: UnicodeSet(%s).spanBack(while longest match) returns the wrong value", pattern);