Home
last modified time | relevance | path

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

12

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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 …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
DStringSegmentTest.java79 assertEquals(11, segment.getCommonPrefixLength(SAMPLE_STRING)); in testCommonPrefixLength()
80 assertEquals(4, segment.getCommonPrefixLength("�� r")); in testCommonPrefixLength()
81 assertEquals(3, segment.getCommonPrefixLength("�� x")); in testCommonPrefixLength()
82 assertEquals(0, segment.getCommonPrefixLength("x")); in testCommonPrefixLength()
84 assertEquals(5, segment.getCommonPrefixLength("raDio")); in testCommonPrefixLength()
85 assertEquals(5, segment.getCommonPrefixLength("radio")); in testCommonPrefixLength()
86 assertEquals(2, segment.getCommonPrefixLength("rafio")); in testCommonPrefixLength()
87 assertEquals(0, segment.getCommonPrefixLength("fadio")); in testCommonPrefixLength()
91 assertEquals(3, segment.getCommonPrefixLength("radio")); in testCommonPrefixLength()
92 assertEquals(2, segment.getCommonPrefixLength("rafio")); in testCommonPrefixLength()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dstring_segment_test.cpp97 assertEquals("", 11, segment.getCommonPrefixLength(SAMPLE_STRING)); in testCommonPrefixLength()
98 assertEquals("", 4, segment.getCommonPrefixLength(u"�� r")); in testCommonPrefixLength()
99 assertEquals("", 3, segment.getCommonPrefixLength(u"�� x")); in testCommonPrefixLength()
100 assertEquals("", 0, segment.getCommonPrefixLength(u"x")); in testCommonPrefixLength()
102 assertEquals("", 0, segment.getCommonPrefixLength(u"RADiO")); in testCommonPrefixLength()
103 assertEquals("", 5, segment.getCommonPrefixLength(u"radio")); in testCommonPrefixLength()
104 assertEquals("", 2, segment.getCommonPrefixLength(u"rafio")); in testCommonPrefixLength()
105 assertEquals("", 0, segment.getCommonPrefixLength(u"fadio")); in testCommonPrefixLength()
107 assertEquals("", 3, segment.getCommonPrefixLength(u"radio")); in testCommonPrefixLength()
108 assertEquals("", 2, segment.getCommonPrefixLength(u"rafio")); in testCommonPrefixLength()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dnumparse_currency.cpp67 int32_t overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match()
84 int32_t overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match()
117 overlap2 = segment.getCommonPrefixLength(fCurrency2); in matchCurrency()
160 int32_t overlap = segment.getCommonPrefixLength(name); in matchCurrency()
Dnumparse_scientific.cpp69 int32_t overlap = segment.getCommonPrefixLength(fExponentSeparatorString); in match()
96 overlap = segment.getCommonPrefixLength(fCustomMinusSign); in match()
105 overlap = segment.getCommonPrefixLength(fCustomPlusSign); in match()
Dnumparse_decimal.cpp170 int32_t overlap = segment.getCommonPrefixLength(str); in match()
201 int32_t overlap = segment.getCommonPrefixLength(decimalSeparator); in match()
211 int32_t overlap = segment.getCommonPrefixLength(actualGroupingString); in match()
222 int32_t overlap = segment.getCommonPrefixLength(groupingSeparator); in match()
Dstring_segment.h109 int32_t getCommonPrefixLength(const UnicodeString& other);
/third_party/node/deps/icu-small/source/i18n/
Dnumparse_currency.cpp67 int32_t overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match()
84 int32_t overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match()
117 overlap2 = segment.getCommonPrefixLength(fCurrency2); in matchCurrency()
160 int32_t overlap = segment.getCommonPrefixLength(name); in matchCurrency()
Dnumparse_scientific.cpp69 int32_t overlap = segment.getCommonPrefixLength(fExponentSeparatorString); in match()
96 overlap = segment.getCommonPrefixLength(fCustomMinusSign); in match()
105 overlap = segment.getCommonPrefixLength(fCustomPlusSign); in match()
Dnumparse_decimal.cpp170 int32_t overlap = segment.getCommonPrefixLength(str); in match()
201 int32_t overlap = segment.getCommonPrefixLength(decimalSeparator); in match()
211 int32_t overlap = segment.getCommonPrefixLength(actualGroupingString); in match()
222 int32_t overlap = segment.getCommonPrefixLength(groupingSeparator); in match()
Dstring_segment.h109 int32_t getCommonPrefixLength(const UnicodeString& other);
/third_party/icu/icu4c/source/i18n/
Dnumparse_currency.cpp67 int32_t overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match()
84 int32_t overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match()
117 overlap2 = segment.getCommonPrefixLength(fCurrency2); in matchCurrency()
160 int32_t overlap = segment.getCommonPrefixLength(name); in matchCurrency()
Dnumparse_scientific.cpp69 int32_t overlap = segment.getCommonPrefixLength(fExponentSeparatorString); in match()
96 overlap = segment.getCommonPrefixLength(fCustomMinusSign); in match()
105 overlap = segment.getCommonPrefixLength(fCustomPlusSign); in match()
Dnumparse_decimal.cpp170 int32_t overlap = segment.getCommonPrefixLength(str); in match()
201 int32_t overlap = segment.getCommonPrefixLength(decimalSeparator); in match()
211 int32_t overlap = segment.getCommonPrefixLength(actualGroupingString); in match()
222 int32_t overlap = segment.getCommonPrefixLength(groupingSeparator); in match()
Dstring_segment.h109 int32_t getCommonPrefixLength(const UnicodeString& other);
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/
DRbPathTest.java94 assertThat(RbPath.getCommonPrefixLength(p, q)).isEqualTo(2); in testCommonPrefixLength()
95 assertThat(RbPath.getCommonPrefixLength(p, p)).isEqualTo(3); in testCommonPrefixLength()
96 assertThat(RbPath.getCommonPrefixLength(p, RbPath.of())).isEqualTo(0); in testCommonPrefixLength()
98 assertThat(RbPath.getCommonPrefixLength(p, RbPath.of("bar", "baz"))).isEqualTo(0); in testCommonPrefixLength()
/third_party/flutter/skia/third_party/externals/icu/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()
/third_party/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.java65 int overlap = segment.getCommonPrefixLength(exponentSeparatorString); in match()
91 overlap = segment.getCommonPrefixLength(customMinusSign); in match()
100 overlap = 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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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.java69 int overlap = segment.getCommonPrefixLength(exponentSeparatorString); in match()
95 overlap = segment.getCommonPrefixLength(customMinusSign); in match()
104 overlap = 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()

12