Home
last modified time | relevance | path

Searched refs:getCommonPrefixLength (Results 1 – 19 of 19) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Dnumbertest_stringsegment.cpp76 assertEquals("", 11, segment.getCommonPrefixLength(SAMPLE_STRING)); in testCommonPrefixLength()
77 assertEquals("", 4, segment.getCommonPrefixLength(u"�� r")); in testCommonPrefixLength()
78 assertEquals("", 3, segment.getCommonPrefixLength(u"�� x")); in testCommonPrefixLength()
79 assertEquals("", 0, segment.getCommonPrefixLength(u"x")); in testCommonPrefixLength()
81 assertEquals("", 0, segment.getCommonPrefixLength(u"RADiO")); in testCommonPrefixLength()
82 assertEquals("", 5, segment.getCommonPrefixLength(u"radio")); in testCommonPrefixLength()
83 assertEquals("", 2, segment.getCommonPrefixLength(u"rafio")); in testCommonPrefixLength()
84 assertEquals("", 0, segment.getCommonPrefixLength(u"fadio")); in testCommonPrefixLength()
86 assertEquals("", 3, segment.getCommonPrefixLength(u"radio")); in testCommonPrefixLength()
87 assertEquals("", 2, segment.getCommonPrefixLength(u"rafio")); in testCommonPrefixLength()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
DStringSegmentTest.java72 assertEquals(11, segment.getCommonPrefixLength(SAMPLE_STRING)); in testCommonPrefixLength()
73 assertEquals(4, segment.getCommonPrefixLength("�� r")); in testCommonPrefixLength()
74 assertEquals(3, segment.getCommonPrefixLength("�� x")); in testCommonPrefixLength()
75 assertEquals(0, segment.getCommonPrefixLength("x")); in testCommonPrefixLength()
77 assertEquals(5, segment.getCommonPrefixLength("raDio")); in testCommonPrefixLength()
78 assertEquals(5, segment.getCommonPrefixLength("radio")); in testCommonPrefixLength()
79 assertEquals(2, segment.getCommonPrefixLength("rafio")); in testCommonPrefixLength()
80 assertEquals(0, segment.getCommonPrefixLength("fadio")); in testCommonPrefixLength()
84 assertEquals(3, segment.getCommonPrefixLength("radio")); in testCommonPrefixLength()
85 assertEquals(2, segment.getCommonPrefixLength("rafio")); in testCommonPrefixLength()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/impl/
DStringSegmentTest.java75 assertEquals(11, segment.getCommonPrefixLength(SAMPLE_STRING)); in testCommonPrefixLength()
76 assertEquals(4, segment.getCommonPrefixLength("�� r")); in testCommonPrefixLength()
77 assertEquals(3, segment.getCommonPrefixLength("�� x")); in testCommonPrefixLength()
78 assertEquals(0, segment.getCommonPrefixLength("x")); in testCommonPrefixLength()
80 assertEquals(5, segment.getCommonPrefixLength("raDio")); in testCommonPrefixLength()
81 assertEquals(5, segment.getCommonPrefixLength("radio")); in testCommonPrefixLength()
82 assertEquals(2, segment.getCommonPrefixLength("rafio")); in testCommonPrefixLength()
83 assertEquals(0, segment.getCommonPrefixLength("fadio")); in testCommonPrefixLength()
87 assertEquals(3, segment.getCommonPrefixLength("radio")); in testCommonPrefixLength()
88 assertEquals(2, segment.getCommonPrefixLength("rafio")); in testCommonPrefixLength()
[all …]
/external/icu/icu4c/source/i18n/
Dnumparse_currency.cpp66 int32_t overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match()
83 int32_t overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match()
116 overlap2 = segment.getCommonPrefixLength(fCurrency2); in matchCurrency()
159 int32_t overlap = segment.getCommonPrefixLength(name); in matchCurrency()
Dnumparse_scientific.cpp66 int overlap1 = segment.getCommonPrefixLength(fExponentSeparatorString); in match()
85 int32_t overlap2 = segment.getCommonPrefixLength(fCustomMinusSign); in match()
95 int32_t overlap2 = segment.getCommonPrefixLength(fCustomPlusSign); in match()
Dnumparse_decimal.cpp169 int32_t overlap = segment.getCommonPrefixLength(str); in match()
200 int32_t overlap = segment.getCommonPrefixLength(decimalSeparator); in match()
210 int32_t overlap = segment.getCommonPrefixLength(actualGroupingString); in match()
221 int32_t overlap = segment.getCommonPrefixLength(groupingSeparator); in match()
Dnumparse_stringsegment.cpp106 int32_t StringSegment::getCommonPrefixLength(const UnicodeString& other) { in getCommonPrefixLength() function in StringSegment
Dnumparse_types.h258 int32_t getCommonPrefixLength(const UnicodeString& other);
Dnumparse_symbols.cpp43 overlap = segment.getCommonPrefixLength(fString); in match()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/
DCombinedCurrencyMatcher.java103 int overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match()
120 int overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match()
153 overlap2 = segment.getCommonPrefixLength(currency2); in matchCurrency()
189 int overlap = segment.getCommonPrefixLength(name); in matchCurrency()
DScientificMatcher.java66 int overlap1 = segment.getCommonPrefixLength(exponentSeparatorString); in match()
85 int overlap2 = segment.getCommonPrefixLength(customMinusSign); in match()
95 int overlap2 = segment.getCommonPrefixLength(customPlusSign); in match()
DDecimalMatcher.java188 int overlap = segment.getCommonPrefixLength(str); in match()
218 int overlap = segment.getCommonPrefixLength(decimalSeparator); in match()
228 int overlap = segment.getCommonPrefixLength(actualGroupingString); in match()
241 int overlap = segment.getCommonPrefixLength(groupingSeparator); in match()
DSymbolMatcher.java47 overlap = segment.getCommonPrefixLength(string); in match()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DCombinedCurrencyMatcher.java101 int overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match()
118 int overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match()
151 overlap2 = segment.getCommonPrefixLength(currency2); in matchCurrency()
187 int overlap = segment.getCommonPrefixLength(name); in matchCurrency()
DScientificMatcher.java64 int overlap1 = segment.getCommonPrefixLength(exponentSeparatorString); in match()
83 int overlap2 = segment.getCommonPrefixLength(customMinusSign); in match()
93 int overlap2 = segment.getCommonPrefixLength(customPlusSign); in match()
DDecimalMatcher.java186 int overlap = segment.getCommonPrefixLength(str); in match()
216 int overlap = segment.getCommonPrefixLength(decimalSeparator); in match()
226 int overlap = segment.getCommonPrefixLength(actualGroupingString); in match()
239 int overlap = segment.getCommonPrefixLength(groupingSeparator); in match()
DSymbolMatcher.java45 overlap = segment.getCommonPrefixLength(string); in match()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DStringSegment.java163 public int getCommonPrefixLength(CharSequence other) {
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DStringSegment.java165 public int getCommonPrefixLength(CharSequence other) {