Searched refs:CountMethod (Results 1 - 2 of 2) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DUnicodeSetSpanner.java104 public enum CountMethod { enum in class:UnicodeSetSpanner
133 * counting by CountMethod.MIN_ELEMENTS using SpanCondition.SIMPLE.
143 return countIn(sequence, CountMethod.MIN_ELEMENTS, SpanCondition.SIMPLE);
158 public int countIn(CharSequence sequence, CountMethod countMethod) {
178 public int countIn(CharSequence sequence, CountMethod countMethod, SpanCondition spanCondition) {
190 if (countMethod == CountMethod.WHOLE_SPAN) {
215 return replaceFrom(sequence, "", CountMethod.WHOLE_SPAN, SpanCondition.SIMPLE);
231 return replaceFrom(sequence, "", CountMethod.WHOLE_SPAN, spanCondition);
236 * counting by CountMethod.MIN_ELEMENTS using SpanCondition.SIMPLE.
248 return replaceFrom(sequence, replacement, CountMethod
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
H A DUnicodeSetTest.java41 import com.ibm.icu.text.UnicodeSetSpanner.CountMethod;
2454 assertEquals("", "a??b??c", m.replaceFrom("a_._b_._c", "??", CountMethod.WHOLE_SPAN));
2455 assertEquals("", "a??b??c", m.replaceFrom(m.trim("_._a_._b_._c_._"), "??", CountMethod.WHOLE_SPAN));
2457 assertEquals("", "XYaXYbXYcXY", m.replaceFrom("_._a_._b_._c_._", "XY", CountMethod.WHOLE_SPAN));
2467 assertEquals("", "Xc acb", m.replaceFrom("ababc acb", "X", CountMethod.WHOLE_SPAN));
2468 assertEquals("", "ababX", m.replaceFrom("ababc acb", "X", CountMethod.WHOLE_SPAN, SpanCondition.NOT_CONTAINED));
2473 checkCodePoints("x\u0308", "z\u0308", CountMethod.MIN_ELEMENTS, SpanCondition.SIMPLE, null, 1);
2474 checkCodePoints("𣿡", "𣿢", CountMethod.MIN_ELEMENTS, SpanCondition.SIMPLE, null, 1);
2475 checkCodePoints("👦", "👧", CountMethod.MIN_ELEMENTS, SpanCondition.SIMPLE, null, 1);
2478 private void checkCodePoints(String a, String b, CountMethod quantifie
[all...]

Completed in 172 milliseconds