Home
last modified time | relevance | path

Searched refs:Collator (Results 1 – 25 of 256) sorted by relevance

1234567891011

/third_party/icu/icu4c/source/test/intltest/
Dallcoll.cpp52 const Collator::EComparisonResult CollationDummyTest::results[] = {
53 Collator::LESS,
54 Collator::LESS, /*Collator::GREATER,*/
55 Collator::LESS,
56 Collator::LESS,
57 Collator::LESS,
58 Collator::LESS,
59 Collator::LESS,
60 Collator::GREATER,
61 Collator::GREATER,
[all …]
Dencoll.cpp24 myCollation = Collator::createInstance(Locale::getEnglish(), status); in CollationEnglishTest()
136 static const Collator::EComparisonResult results[] = {
137 Collator::LESS,
138 Collator::LESS, /*Collator::GREATER,*/
139 Collator::LESS,
140 Collator::GREATER,
141 Collator::GREATER,
142 Collator::EQUAL,
143 Collator::LESS,
144 Collator::LESS,
[all …]
Ddecoll.cpp41 myCollation = Collator::createInstance(Locale::getGermany(), status); in CollationGermanTest()
87 const Collator::EComparisonResult CollationGermanTest::results[][2] =
90 { Collator::LESS, Collator::LESS },
91 { Collator::EQUAL, Collator::LESS },
92 { Collator::GREATER, Collator::GREATER },
93 { Collator::GREATER, Collator::GREATER },
94 { Collator::GREATER, Collator::GREATER },
95 { Collator::EQUAL, Collator::LESS },
96 { Collator::EQUAL, Collator::EQUAL },
97 { Collator::LESS, Collator::LESS },
[all …]
Dfrcoll.cpp33 myCollation = Collator::createInstance(Locale::getCanadaFrench(), status); in CollationFrenchTest()
79 const Collator::EComparisonResult CollationFrenchTest::results[] =
81 Collator::LESS,
82 Collator::LESS,
83 Collator::LESS, /*Collator::GREATER,*/
84 Collator::LESS,
85 Collator::GREATER,
86 Collator::GREATER,
87 Collator::LESS,
88 Collator::GREATER,
[all …]
Dsvccoll.cpp44 Collator* frcol = Collator::createInstance(FR, status); in TestRegister()
45 Collator* uscol = Collator::createInstance(US, status); in TestRegister()
54 Collator *clone = frcol->clone(); in TestRegister()
55 URegistryKey key = Collator::registerInstance(frcol, US, status); in TestRegister()
59 Collator* ncol = Collator::createInstance(US_FOO, status); in TestRegister()
82 if (!Collator::unregister(key, status)) { in TestRegister()
86 ncol = Collator::createInstance(US, status); in TestRegister()
94 frcol = Collator::createInstance(FR, status); in TestRegister()
102 Collator* fucol = Collator::createInstance(fu_FU, status); in TestRegister()
103 Collator *clone = frcol->clone(); in TestRegister()
[all …]
Dtrcoll.cpp24 myCollation = Collator::createInstance(Locale("tr", "", ""),status); in CollationTurkishTest()
60 const Collator::EComparisonResult CollationTurkishTest::results[] = {
61 Collator::LESS,
62 Collator::LESS,
63 Collator::LESS,
64 Collator::LESS,
65 Collator::GREATER,
66 Collator::LESS,
67 Collator::LESS,
68 Collator::GREATER,
[all …]
Djacoll.cpp25 myCollation = Collator::createInstance(Locale::getJapan(), status); in CollationKanaTest()
58 const Collator::EComparisonResult CollationKanaTest::results[] = {
59 Collator::LESS,
60Collator::EQUAL, //Collator::LESS, /* Katakanas and Hiraganas are equal on tertiary level(ICU 2.…
61 Collator::LESS,
62Collator::GREATER, // Collator::LESS, /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU 2…
63 Collator::LESS,
64Collator::LESS, //Collator::GREATER /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU …
110 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
124 myCollation->setStrength(Collator::PRIMARY); in TestBase()
[all …]
Descoll.cpp40 myCollation = Collator::createInstance(Locale("es", "ES", ""),status); in CollationSpanishTest()
72 const Collator::EComparisonResult CollationSpanishTest::results[] = {
73 Collator::LESS,
74 Collator::LESS,
75 Collator::GREATER,
76 Collator::LESS,
77 Collator::LESS,
79 Collator::LESS,
80 Collator::EQUAL,
81 Collator::LESS,
[all …]
Dapicoll.cpp67 Collator *col = 0; in TestProperty()
83 col = Collator::createInstance(Locale::getEnglish(), success); in TestProperty()
100 doAssert((col->compare("ab", "abc") == Collator::LESS), "ab < abc comparison failed"); in TestProperty()
101 doAssert((col->compare("ab", "AB") == Collator::LESS), "ab < AB comparison failed"); in TestProperty()
102 …doAssert((col->compare("blackbird", "black-bird") == Collator::GREATER), "black-bird > blackbird c… in TestProperty()
103 …doAssert((col->compare("black bird", "black-bird") == Collator::LESS), "black bird > black-bird co… in TestProperty()
104 …doAssert((col->compare("Hello", "hello") == Collator::GREATER), "Hello > hello comparison failed"); in TestProperty()
120 …doAssert((col->compare("ab", "abc", 2) == Collator::EQUAL), "ab = abc with length 2 comparison fai… in TestProperty()
121 …doAssert((col->compare("ab", "AB", 2) == Collator::LESS), "ab < AB with length 2 comparison faile… in TestProperty()
122 …doAssert((col->compare("ab", "Aa", 1) == Collator::LESS), "ab < Aa with length 1 comparison faile… in TestProperty()
[all …]
Dtscoll.h35 …void doTest(Collator* col, const UChar *source, const UChar *target, Collator::EComparisonResult r…
37 …void doTest(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::ECo…
38 …void doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &target, Collat…
41 Collator::EComparisonResult compareResult,
42 Collator::EComparisonResult keyResult,
43 Collator::EComparisonResult incResult,
44 Collator::EComparisonResult expectedResult );
47 …static UnicodeString &appendCompareResult(Collator::EComparisonResult result, UnicodeString &targe…
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DCollatorICU.java13 import com.ibm.icu.text.Collator;
19 public class CollatorICU extends java.text.Collator {
21 private Collator fIcuCollator;
23 private CollatorICU(Collator icuCollator) { in CollatorICU()
27 public static java.text.Collator wrap(Collator icuCollator) { in wrap()
31 public Collator unwrap() { in unwrap()
39 other.fIcuCollator = (Collator)fIcuCollator.clone(); in clone()
80 int mode = java.text.Collator.NO_DECOMPOSITION; in getDecomposition()
82 if (fIcuCollator.getStrength() == Collator.IDENTICAL) { in getDecomposition()
83 return java.text.Collator.FULL_DECOMPOSITION; in getDecomposition()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/
DCollationServiceTest.java28 import ohos.global.icu.text.Collator;
29 import ohos.global.icu.text.Collator.CollatorFactory;
39 Collator frcol = Collator.getInstance(ULocale.FRANCE); in TestRegister()
40 Collator uscol = Collator.getInstance(ULocale.US); in TestRegister()
43 Object key = Collator.registerInstance(frcol, ULocale.US); in TestRegister()
44 Collator ncol = Collator.getInstance(ULocale.US); in TestRegister()
50 Collator test = Collator.getInstance(ULocale.GERMANY); // CollatorFactory.handleCreate in TestRegister()
55 if (!Collator.unregister(key)) { in TestRegister()
58 ncol = Collator.getInstance(ULocale.US); in TestRegister()
67 Collator fucol = Collator.getInstance(fu_FU); in TestRegister()
[all …]
DCollationAPITest.java35 import ohos.global.icu.text.Collator;
36 import ohos.global.icu.text.Collator.CollatorFactory;
59 Collator col = Collator.getInstance(); in TestCollationKey()
60 col.setStrength(Collator.TERTIARY); in TestCollationKey()
99 col = Collator.getInstance(); in TestCollationKey()
103 if (col.getStrength() != Collator.TERTIARY){ in TestCollationKey()
108 col.setStrength(Collator.IDENTICAL); in TestCollationKey()
124 col.setStrength(Collator.SECONDARY); in TestCollationKey()
202 Collator col = Collator.getInstance(Locale.ENGLISH); in TestCompare()
211 col.setStrength(Collator.SECONDARY); in TestCompare()
[all …]
DCollationRegressionTest.java30 import ohos.global.icu.text.Collator;
45 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446()
124 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636()
139 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238()
143 c.setDecomposition(Collator.NO_DECOMPOSITION); in Test4054238()
164 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734()
165 c.setStrength(Collator.IDENTICAL); in Test4054734()
166 c.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in Test4054734()
170 void compareArray(Collator c, String[] tests) { in compareArray()
283 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736()
[all …]
DCollationDummyTest.java29 import ohos.global.icu.text.Collator;
194 myCollation.setStrength(Collator.TERTIARY); in TestTertiary()
204 myCollation.setStrength(Collator.PRIMARY); in TestPrimary()
214 myCollation.setStrength(Collator.SECONDARY); in TestSecondary()
224 myCollation.setStrength(Collator.TERTIARY); in TestExtra()
235 myCollation.setStrength(Collator.IDENTICAL); in TestIdentical()
245 Collator coll = null; in TestJB581()
247 coll = Collator.getInstance(Locale.ENGLISH); in TestJB581()
261 coll.setStrength(Collator.PRIMARY); in TestJB581()
303 Collator enCollation; in TestSurrogates()
[all …]
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationServiceTest.java27 import com.ibm.icu.text.Collator;
28 import com.ibm.icu.text.Collator.CollatorFactory;
36 Collator frcol = Collator.getInstance(ULocale.FRANCE); in TestRegister()
37 Collator uscol = Collator.getInstance(ULocale.US); in TestRegister()
40 Object key = Collator.registerInstance(frcol, ULocale.US); in TestRegister()
41 Collator ncol = Collator.getInstance(ULocale.US); in TestRegister()
47 Collator test = Collator.getInstance(ULocale.GERMANY); // CollatorFactory.handleCreate in TestRegister()
52 if (!Collator.unregister(key)) { in TestRegister()
55 ncol = Collator.getInstance(ULocale.US); in TestRegister()
64 Collator fucol = Collator.getInstance(fu_FU); in TestRegister()
[all …]
DCollationAPITest.java34 import com.ibm.icu.text.Collator;
35 import com.ibm.icu.text.Collator.CollatorFactory;
56 Collator col = Collator.getInstance(); in TestCollationKey()
57 col.setStrength(Collator.TERTIARY); in TestCollationKey()
96 col = Collator.getInstance(); in TestCollationKey()
100 if (col.getStrength() != Collator.TERTIARY){ in TestCollationKey()
105 col.setStrength(Collator.IDENTICAL); in TestCollationKey()
121 col.setStrength(Collator.SECONDARY); in TestCollationKey()
199 Collator col = Collator.getInstance(Locale.ENGLISH); in TestCompare()
208 col.setStrength(Collator.SECONDARY); in TestCompare()
[all …]
DCollationRegressionTest.java29 import com.ibm.icu.text.Collator;
42 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446()
121 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636()
136 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238()
140 c.setDecomposition(Collator.NO_DECOMPOSITION); in Test4054238()
161 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734()
162 c.setStrength(Collator.IDENTICAL); in Test4054734()
163 c.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in Test4054734()
167 void compareArray(Collator c, String[] tests) { in compareArray()
280 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736()
[all …]
DCollationDummyTest.java28 import com.ibm.icu.text.Collator;
191 myCollation.setStrength(Collator.TERTIARY); in TestTertiary()
201 myCollation.setStrength(Collator.PRIMARY); in TestPrimary()
211 myCollation.setStrength(Collator.SECONDARY); in TestSecondary()
221 myCollation.setStrength(Collator.TERTIARY); in TestExtra()
232 myCollation.setStrength(Collator.IDENTICAL); in TestIdentical()
242 Collator coll = null; in TestJB581()
244 coll = Collator.getInstance(Locale.ENGLISH); in TestJB581()
258 coll.setStrength(Collator.PRIMARY); in TestJB581()
300 Collator enCollation; in TestSurrogates()
[all …]
/third_party/icu/tools/multi/proj/provider/glue/
Dcoll_fe.cpp49 #define GLUE_VER(x) class GLUE_SYM_V( Collator, x ) : public Collator { \
51 public: static Collator *create(const Locale &loc, const char *ver); \
52 private: UCollator *_this; GLUE_SYM_V( Collator, x ) ( UCollator* tn ) : _this(tn){} \
53 virtual ~ GLUE_SYM_V ( Collator, x) (); \
57 virtual Collator* clone() const; \
74 virtual Collator* safeClone() CONST_AFTER_50_0_2 ; \
87 static Collator::ECollationStrength _getECollationStrength( in _getECollationStrength()
93 return Collator::PRIMARY; in _getECollationStrength()
95 return Collator::SECONDARY; in _getECollationStrength()
97 return Collator::TERTIARY; in _getECollationStrength()
[all …]
/third_party/icu/icu4c/source/i18n/
Dcoll.cpp147 return Collator::makeInstance(loc, status); in create()
166 return ((Collator*)instance)->clone(); in cloneInstance()
179 return Collator::makeInstance(loc, status); in handleDefault()
187 return (Collator*)ICULocaleService::getKey(key, actualReturn, status); in getKey()
318 void setAttributesFromKeywords(const Locale &loc, Collator &coll, UErrorCode &errorCode) { in setAttributesFromKeywords()
424 Collator* U_EXPORT2 Collator::createInstance(UErrorCode& success) in createInstance()
429 Collator* U_EXPORT2 Collator::createInstance(const Locale& desiredLocale, in createInstance()
440 Collator* coll; in createInstance()
444 coll = (Collator*)gService->get(desiredLocale, &actualLoc, status); in createInstance()
466 Collator* Collator::makeInstance(const Locale& desiredLocale, UErrorCode& status) { in makeInstance()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dcoll.cpp147 return Collator::makeInstance(loc, status); in create()
166 return ((Collator*)instance)->clone(); in cloneInstance()
180 return Collator::makeInstance(loc, status); in handleDefault()
188 return (Collator*)ICULocaleService::getKey(key, actualReturn, status); in getKey()
319 void setAttributesFromKeywords(const Locale &loc, Collator &coll, UErrorCode &errorCode) { in setAttributesFromKeywords()
425 Collator* U_EXPORT2 Collator::createInstance(UErrorCode& success) in createInstance()
430 Collator* U_EXPORT2 Collator::createInstance(const Locale& desiredLocale, in createInstance()
441 Collator* coll; in createInstance()
445 coll = (Collator*)gService->get(desiredLocale, &actualLoc, status); in createInstance()
467 Collator* Collator::makeInstance(const Locale& desiredLocale, UErrorCode& status) { in makeInstance()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dcoll.cpp147 return Collator::makeInstance(loc, status); in create()
166 return ((Collator*)instance)->clone(); in cloneInstance()
179 return Collator::makeInstance(loc, status); in handleDefault()
187 return (Collator*)ICULocaleService::getKey(key, actualReturn, status); in getKey()
318 void setAttributesFromKeywords(const Locale &loc, Collator &coll, UErrorCode &errorCode) { in setAttributesFromKeywords()
424 Collator* U_EXPORT2 Collator::createInstance(UErrorCode& success) in createInstance()
429 Collator* U_EXPORT2 Collator::createInstance(const Locale& desiredLocale, in createInstance()
440 Collator* coll; in createInstance()
444 coll = (Collator*)gService->get(desiredLocale, &actualLoc, status); in createInstance()
466 Collator* Collator::makeInstance(const Locale& desiredLocale, UErrorCode& status) { in makeInstance()
[all …]
/third_party/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DCollatorTest.java12 import java.text.Collator;
30 for (Locale loc : Collator.getAvailableLocales()) { in TestGetInstance()
36 Collator coll = Collator.getInstance(loc); in TestGetInstance()
49 Collator collIcu = Collator.getInstance(iculoc); in TestGetInstance()
91 Collator jdkColl = Collator.getInstance(iculoc); in TestICUEquivalent()
92 com.ibm.icu.text.Collator icuColl = com.ibm.icu.text.Collator.getInstance(loc); in TestICUEquivalent()
98 jdkColl.setStrength(Collator.PRIMARY); in TestICUEquivalent()
99 icuColl.setStrength(com.ibm.icu.text.Collator.PRIMARY); in TestICUEquivalent()
103 jdkColl.setStrength(Collator.SECONDARY); in TestICUEquivalent()
104 icuColl.setStrength(com.ibm.icu.text.Collator.SECONDARY); in TestICUEquivalent()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dcoll.h167 class U_I18N_API Collator : public UObject {
234 virtual ~Collator();
256 virtual UBool operator==(const Collator& other) const;
265 virtual UBool operator!=(const Collator& other) const;
272 virtual Collator* clone() const = 0;
293 static Collator* U_EXPORT2 createInstance(UErrorCode& err);
328 static Collator* U_EXPORT2 createInstance(const Locale& loc, UErrorCode& err);
820 …static URegistryKey U_EXPORT2 registerInstance(Collator* toAdopt, const Locale& locale, UErrorCode…
909 virtual Collator &setMaxVariable(UColReorderCode group, UErrorCode &errorCode);
999 virtual Collator* safeClone() const;
[all …]

1234567891011