Home
last modified time | relevance | path

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

1234567

/external/icu/icu4c/source/test/intltest/
Dallcoll.cpp49 const Collator::EComparisonResult CollationDummyTest::results[] = {
50 Collator::LESS,
51 Collator::LESS, /*Collator::GREATER,*/
52 Collator::LESS,
53 Collator::LESS,
54 Collator::LESS,
55 Collator::LESS,
56 Collator::LESS,
57 Collator::GREATER,
58 Collator::GREATER,
[all …]
Ddecoll.cpp39 myCollation = Collator::createInstance(Locale::getGermany(), status); in CollationGermanTest()
85 const Collator::EComparisonResult CollationGermanTest::results[][2] =
88 { Collator::LESS, Collator::LESS },
89 { Collator::EQUAL, Collator::LESS },
90 { Collator::GREATER, Collator::GREATER },
91 { Collator::GREATER, Collator::GREATER },
92 { Collator::GREATER, Collator::GREATER },
93 { Collator::EQUAL, Collator::LESS },
94 { Collator::EQUAL, Collator::EQUAL },
95 { Collator::LESS, Collator::LESS },
[all …]
Dencoll.cpp21 myCollation = Collator::createInstance(Locale::getEnglish(), status); in CollationEnglishTest()
133 static const Collator::EComparisonResult results[] = {
134 Collator::LESS,
135 Collator::LESS, /*Collator::GREATER,*/
136 Collator::LESS,
137 Collator::GREATER,
138 Collator::GREATER,
139 Collator::EQUAL,
140 Collator::LESS,
141 Collator::LESS,
[all …]
Dfrcoll.cpp30 myCollation = Collator::createInstance(Locale::getCanadaFrench(), status); in CollationFrenchTest()
76 const Collator::EComparisonResult CollationFrenchTest::results[] =
78 Collator::LESS,
79 Collator::LESS,
80 Collator::LESS, /*Collator::GREATER,*/
81 Collator::LESS,
82 Collator::GREATER,
83 Collator::GREATER,
84 Collator::LESS,
85 Collator::GREATER,
[all …]
Dtrcoll.cpp22 myCollation = Collator::createInstance(Locale("tr", "", ""),status); in CollationTurkishTest()
58 const Collator::EComparisonResult CollationTurkishTest::results[] = {
59 Collator::LESS,
60 Collator::LESS,
61 Collator::LESS,
62 Collator::LESS,
63 Collator::GREATER,
64 Collator::LESS,
65 Collator::LESS,
66 Collator::GREATER,
[all …]
Dsvccoll.cpp41 Collator* frcol = Collator::createInstance(FR, status); in TestRegister()
42 Collator* uscol = Collator::createInstance(US, status); in TestRegister()
51 Collator *clone = frcol->clone(); in TestRegister()
52 URegistryKey key = Collator::registerInstance(frcol, US, status); in TestRegister()
56 Collator* ncol = Collator::createInstance(US_FOO, status); in TestRegister()
78 if (!Collator::unregister(key, status)) { in TestRegister()
82 ncol = Collator::createInstance(US, status); in TestRegister()
90 frcol = Collator::createInstance(FR, status); in TestRegister()
98 Collator* fucol = Collator::createInstance(fu_FU, status); in TestRegister()
99 Collator *clone = frcol->clone(); in TestRegister()
[all …]
Djacoll.cpp23 myCollation = Collator::createInstance(Locale::getJapan(), status); in CollationKanaTest()
56 const Collator::EComparisonResult CollationKanaTest::results[] = {
57 Collator::LESS,
58Collator::EQUAL, //Collator::LESS, /* Katakanas and Hiraganas are equal on tertiary level(ICU 2.…
59 Collator::LESS,
60Collator::GREATER, // Collator::LESS, /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU 2…
61 Collator::LESS,
62Collator::LESS, //Collator::GREATER /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU …
108 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
122 myCollation->setStrength(Collator::PRIMARY); in TestBase()
[all …]
Descoll.cpp38 myCollation = Collator::createInstance(Locale("es", "ES", ""),status); in CollationSpanishTest()
70 const Collator::EComparisonResult CollationSpanishTest::results[] = {
71 Collator::LESS,
72 Collator::LESS,
73 Collator::GREATER,
74 Collator::LESS,
75 Collator::LESS,
77 Collator::LESS,
78 Collator::EQUAL,
79 Collator::LESS,
[all …]
Dtscoll.h33 …void doTest(Collator* col, const UChar *source, const UChar *target, Collator::EComparisonResult r…
35 …void doTest(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::ECo…
36 …void doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &target, Collat…
39 Collator::EComparisonResult compareResult,
40 Collator::EComparisonResult keyResult,
41 Collator::EComparisonResult incResult,
42 Collator::EComparisonResult expectedResult );
45 …static UnicodeString &appendCompareResult(Collator::EComparisonResult result, UnicodeString &targe…
Dapicoll.cpp66 Collator *col = 0; in TestProperty()
82 col = Collator::createInstance(Locale::getEnglish(), success); in TestProperty()
106 doAssert((col->compare("ab", "abc") == Collator::LESS), "ab < abc comparison failed"); in TestProperty()
107 doAssert((col->compare("ab", "AB") == Collator::LESS), "ab < AB comparison failed"); in TestProperty()
108 …doAssert((col->compare("blackbird", "black-bird") == Collator::GREATER), "black-bird > blackbird c… in TestProperty()
109 …doAssert((col->compare("black bird", "black-bird") == Collator::LESS), "black bird > black-bird co… in TestProperty()
110 …doAssert((col->compare("Hello", "hello") == Collator::GREATER), "Hello > hello comparison failed"); in TestProperty()
126 …doAssert((col->compare("ab", "abc", 2) == Collator::EQUAL), "ab = abc with length 2 comparison fai… in TestProperty()
127 …doAssert((col->compare("ab", "AB", 2) == Collator::LESS), "ab < AB with length 2 comparison faile… in TestProperty()
128 …doAssert((col->compare("ab", "Aa", 1) == Collator::LESS), "ab < Aa with length 1 comparison faile… in TestProperty()
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Dallcoll.cpp49 const Collator::EComparisonResult CollationDummyTest::results[] = {
50 Collator::LESS,
51 Collator::LESS, /*Collator::GREATER,*/
52 Collator::LESS,
53 Collator::LESS,
54 Collator::LESS,
55 Collator::LESS,
56 Collator::LESS,
57 Collator::GREATER,
58 Collator::GREATER,
[all …]
Ddecoll.cpp39 myCollation = Collator::createInstance(Locale::getGermany(), status); in CollationGermanTest()
85 const Collator::EComparisonResult CollationGermanTest::results[][2] =
88 { Collator::LESS, Collator::LESS },
89 { Collator::EQUAL, Collator::LESS },
90 { Collator::GREATER, Collator::GREATER },
91 { Collator::GREATER, Collator::GREATER },
92 { Collator::GREATER, Collator::GREATER },
93 { Collator::EQUAL, Collator::LESS },
94 { Collator::EQUAL, Collator::EQUAL },
95 { Collator::LESS, Collator::LESS },
[all …]
Dencoll.cpp21 myCollation = Collator::createInstance(Locale::getEnglish(), status); in CollationEnglishTest()
133 static const Collator::EComparisonResult results[] = {
134 Collator::LESS,
135 Collator::LESS, /*Collator::GREATER,*/
136 Collator::LESS,
137 Collator::GREATER,
138 Collator::GREATER,
139 Collator::EQUAL,
140 Collator::LESS,
141 Collator::LESS,
[all …]
Dfrcoll.cpp30 myCollation = Collator::createInstance(Locale::getCanadaFrench(), status); in CollationFrenchTest()
76 const Collator::EComparisonResult CollationFrenchTest::results[] =
78 Collator::LESS,
79 Collator::LESS,
80 Collator::LESS, /*Collator::GREATER,*/
81 Collator::LESS,
82 Collator::GREATER,
83 Collator::GREATER,
84 Collator::LESS,
85 Collator::GREATER,
[all …]
Dtrcoll.cpp22 myCollation = Collator::createInstance(Locale("tr", "", ""),status); in CollationTurkishTest()
58 const Collator::EComparisonResult CollationTurkishTest::results[] = {
59 Collator::LESS,
60 Collator::LESS,
61 Collator::LESS,
62 Collator::LESS,
63 Collator::GREATER,
64 Collator::LESS,
65 Collator::LESS,
66 Collator::GREATER,
[all …]
Djacoll.cpp23 myCollation = Collator::createInstance(Locale::getJapan(), status); in CollationKanaTest()
56 const Collator::EComparisonResult CollationKanaTest::results[] = {
57 Collator::LESS,
58Collator::EQUAL, //Collator::LESS, /* Katakanas and Hiraganas are equal on tertiary level(ICU 2.…
59 Collator::LESS,
60Collator::GREATER, // Collator::LESS, /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU 2…
61 Collator::LESS,
62Collator::LESS, //Collator::GREATER /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU …
108 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
122 myCollation->setStrength(Collator::PRIMARY); in TestBase()
[all …]
Descoll.cpp38 myCollation = Collator::createInstance(Locale("es", "ES", ""),status); in CollationSpanishTest()
70 const Collator::EComparisonResult CollationSpanishTest::results[] = {
71 Collator::LESS,
72 Collator::LESS,
73 Collator::GREATER,
74 Collator::LESS,
75 Collator::LESS,
77 Collator::LESS,
78 Collator::EQUAL,
79 Collator::LESS,
[all …]
Dsvccoll.cpp42 Collator* frcol = Collator::createInstance(FR, status); in TestRegister()
43 Collator* uscol = Collator::createInstance(US, status); in TestRegister()
52 URegistryKey key = Collator::registerInstance(frcol, US, status); in TestRegister()
54 Collator* ncol = Collator::createInstance(US_FOO, status); in TestRegister()
82 if (!Collator::unregister(key, status)) { in TestRegister()
87 ncol = Collator::createInstance(US, status); in TestRegister()
95 frcol = Collator::createInstance(FR, status); in TestRegister()
103 Collator* fucol = Collator::createInstance(fu_FU, status); in TestRegister()
104 URegistryKey key = Collator::registerInstance(frcol, fu_FU, status); in TestRegister()
105 Collator* ncol = Collator::createInstance(fu_FU_FOO, status); in TestRegister()
[all …]
Dtscoll.h33 …void doTest(Collator* col, const UChar *source, const UChar *target, Collator::EComparisonResult r…
35 …void doTest(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::ECo…
36 …void doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &target, Collat…
39 Collator::EComparisonResult compareResult,
40 Collator::EComparisonResult keyResult,
41 Collator::EComparisonResult incResult,
42 Collator::EComparisonResult expectedResult );
45 …static UnicodeString &appendCompareResult(Collator::EComparisonResult result, UnicodeString &targe…
Dapicoll.cpp66 Collator *collator1, *collator2; in TestOpenVersion()
70 collator1=Collator::createInstance(locale, errorCode); in TestOpenVersion()
77 collator2=Collator::createInstance(locale, version1, errorCode); in TestOpenVersion()
98 Collator *col = 0; in TestProperty()
114 col = Collator::createInstance(Locale::getEnglish(), success); in TestProperty()
138 doAssert((col->compare("ab", "abc") == Collator::LESS), "ab < abc comparison failed"); in TestProperty()
139 doAssert((col->compare("ab", "AB") == Collator::LESS), "ab < AB comparison failed"); in TestProperty()
140 …doAssert((col->compare("blackbird", "black-bird") == Collator::GREATER), "black-bird > blackbird c… in TestProperty()
141 …doAssert((col->compare("black bird", "black-bird") == Collator::LESS), "black bird > black-bird co… in TestProperty()
142 …doAssert((col->compare("Hello", "hello") == Collator::GREATER), "Hello > hello comparison failed"); in TestProperty()
[all …]
Dficoll.cpp36 myCollation = Collator::createInstance(Locale("fi", "FI", "", "collation=standard"),status); in CollationFinnishTest()
60 const Collator::EComparisonResult CollationFinnishTest::results[] = {
61 Collator::GREATER,
62 Collator::LESS,
63 Collator::GREATER,
64 Collator::LESS,
66 Collator::EQUAL,
72 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
80 myCollation->setStrength(Collator::PRIMARY); in TestPrimary()
/external/chromium_org/third_party/icu/source/i18n/
Dcoll.cpp139 return Collator::makeInstance(loc, status); in create()
158 return ((Collator*)instance)->clone(); in cloneInstance()
171 return Collator::makeInstance(loc, status); in handleDefault()
179 Collator* result = (Collator*)ICULocaleService::getKey(key, actualReturn, status); in getKey()
231 Collator::createUCollator(const char *loc, in createUCollator()
237 Collator *col = (Collator*)gService->get(desiredLocale, *status); in createUCollator()
304 Collator* U_EXPORT2 Collator::createInstance(UErrorCode& success) in createInstance()
309 Collator* U_EXPORT2 Collator::createInstance(const Locale& desiredLocale, in createInstance()
318 Collator *result = in createInstance()
319 (Collator*)gService->get(desiredLocale, &actualLoc, status); in createInstance()
[all …]
/external/icu/icu4c/source/i18n/
Dcoll.cpp145 return Collator::makeInstance(loc, status); in create()
164 return ((Collator*)instance)->clone(); in cloneInstance()
177 return Collator::makeInstance(loc, status); in handleDefault()
185 return (Collator*)ICULocaleService::getKey(key, actualReturn, status); in getKey()
315 void setAttributesFromKeywords(const Locale &loc, Collator &coll, UErrorCode &errorCode) { in setAttributesFromKeywords()
421 Collator* U_EXPORT2 Collator::createInstance(UErrorCode& success) in createInstance()
426 Collator* U_EXPORT2 Collator::createInstance(const Locale& desiredLocale, in createInstance()
437 Collator* coll; in createInstance()
441 coll = (Collator*)gService->get(desiredLocale, &actualLoc, status); in createInstance()
456 Collator* Collator::makeInstance(const Locale& desiredLocale, in makeInstance()
[all …]
/external/chromium_org/third_party/WebKit/Source/wtf/unicode/icu/
DCollatorICU.cpp54 Collator::Collator(const char* locale) in Collator() function in WTF::Collator
61 PassOwnPtr<Collator> Collator::userDefault() in userDefault()
69 return adoptPtr(new Collator("")); in userDefault()
71 return adoptPtr(new Collator(buf)); in userDefault()
73 return adoptPtr(new Collator(0)); in userDefault()
77 Collator::~Collator() in ~Collator()
83 void Collator::setOrderLowerFirst(bool lowerFirst) in setOrderLowerFirst()
88 Collator::Result Collator::collate(const UChar* lhs, size_t lhsLength, const UChar* rhs, size_t rhs… in collate()
96 void Collator::createCollator() const in createCollator()
135 void Collator::releaseCollator() in releaseCollator()
/external/icu/icu4c/source/i18n/unicode/
Dcoll.h171 class U_I18N_API Collator : public UObject {
233 virtual ~Collator();
255 virtual UBool operator==(const Collator& other) const;
264 virtual UBool operator!=(const Collator& other) const;
271 virtual Collator* clone(void) const = 0;
292 static Collator* U_EXPORT2 createInstance(UErrorCode& err);
327 static Collator* U_EXPORT2 createInstance(const Locale& loc, UErrorCode& err);
800 …static URegistryKey U_EXPORT2 registerInstance(Collator* toAdopt, const Locale& locale, UErrorCode…
890 virtual Collator &setMaxVariable(UColReorderCode group, UErrorCode &errorCode);
977 virtual Collator* safeClone(void) const;
[all …]

1234567