/external/icu4c/test/intltest/ |
D | allcoll.cpp | 49 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 …]
|
D | encoll.cpp | 21 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 …]
|
D | decoll.cpp | 39 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 …]
|
D | frcoll.cpp | 30 myCollation = Collator::createInstance(Locale::getFrance(), 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 …]
|
D | trcoll.cpp | 22 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 …]
|
D | svccoll.cpp | 42 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 …]
|
D | jacoll.cpp | 23 myCollation = Collator::createInstance(Locale::getJapan(), status); in CollationKanaTest() 56 const Collator::EComparisonResult CollationKanaTest::results[] = { 57 Collator::LESS, 58 …Collator::EQUAL, //Collator::LESS, /* Katakanas and Hiraganas are equal on tertiary level(ICU 2.… 59 Collator::LESS, 60 …Collator::GREATER, // Collator::LESS, /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU 2… 61 Collator::LESS, 62 …Collator::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 …]
|
D | apicoll.cpp | 63 Collator *collator1, *collator2; in TestOpenVersion() 67 collator1=Collator::createInstance(locale, errorCode); in TestOpenVersion() 74 collator2=Collator::createInstance(locale, version1, errorCode); in TestOpenVersion() 95 Collator *col = 0; in TestProperty() 113 col = Collator::createInstance(Locale::getEnglish(), success); in TestProperty() 130 doAssert((col->compare("ab", "abc") == Collator::LESS), "ab < abc comparison failed"); in TestProperty() 131 doAssert((col->compare("ab", "AB") == Collator::LESS), "ab < AB comparison failed"); in TestProperty() 132 …doAssert((col->compare("blackbird", "black-bird") == Collator::GREATER), "black-bird > blackbird c… in TestProperty() 133 …doAssert((col->compare("black bird", "black-bird") == Collator::LESS), "black bird > black-bird co… in TestProperty() 134 …doAssert((col->compare("Hello", "hello") == Collator::GREATER), "Hello > hello comparison failed"); in TestProperty() [all …]
|
D | escoll.cpp | 38 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 …]
|
D | tscoll.h | 27 …void doTest(Collator* col, const UChar *source, const UChar *target, Collator::EComparisonResult r… 29 …void doTest(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::ECo… 30 …void doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &target, Collat… 33 Collator::EComparisonResult compareResult, 34 Collator::EComparisonResult keyResult, 35 Collator::EComparisonResult incResult, 36 Collator::EComparisonResult expectedResult ); 39 …static UnicodeString &appendCompareResult(Collator::EComparisonResult result, UnicodeString &targe…
|
D | regcoll.cpp | 24 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); in CollationRegressionTest() 190 c->setStrength(Collator::IDENTICAL); in Test4054734() 207 c->setStrength(Collator::SECONDARY); in Test4054736() 240 Collator *c = NULL; in Test4058613() 242 c = Collator::createInstance("en_US", status); in Test4058613() 343 c->setStrength(Collator::TERTIARY); in Test4060154() 358 c->setStrength(Collator::PRIMARY); in Test4060154() 374 c = (RuleBasedCollator *) Collator::createInstance(Locale::getFrance(), status); in Test4062418() 383 c->setStrength(Collator::SECONDARY); in Test4062418() 454 c = (RuleBasedCollator *)Collator::createInstance(Locale::getFrance(), status); in Test4066696() [all …]
|
D | g7coll.cpp | 97 Collator *myCollation= 0; in TestG7Locales() 102 myCollation = Collator::createInstance(locales[i], status); in TestG7Locales() 108 myCollation->setStrength(Collator::QUATERNARY); in TestG7Locales() 149 … doTest(tblColl1, testCases[results[i][j]], testCases[results[i][n]], Collator::LESS); in TestG7Locales() 162 Collator *col = Collator::createInstance("en_US", status); in TestDemo1() 184 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS); in TestDemo1() 196 Collator *col = Collator::createInstance("en_US", status); in TestDemo2() 218 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], Collator::LESS); in TestDemo2() 230 Collator *col = Collator::createInstance("en_US", status); in TestDemo3() 252 … doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], Collator::LESS); in TestDemo3() [all …]
|
D | ficoll.cpp | 36 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()
|
D | currcoll.cpp | 83 Collator::EComparisonResult expectedResult = Collator::EQUAL; in currencyTest() 84 RuleBasedCollator *c = (RuleBasedCollator *)Collator::createInstance("en_US", status); in currencyTest() 103 expectedResult = Collator::LESS; in currencyTest() 107 expectedResult = Collator::EQUAL; in currencyTest() 111 expectedResult = Collator::GREATER; in currencyTest() 114 Collator::EComparisonResult compareResult = c->compare(source, target); in currencyTest() 135 Collator::EComparisonResult keyResult = sourceKey.compareTo(targetKey); in currencyTest()
|
D | tscoll.cpp | 132 IntlTestCollator::doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &ta… in doTestVariant() 138 Collator::EComparisonResult compareResult = col->compare(source, target); in doTestVariant() 146 Collator::EComparisonResult keyResult = srckey.compareTo(tgtkey); in doTestVariant() 245 IntlTestCollator::doTest(Collator* col, const UChar *source, const UChar *target, Collator::ECompar… in doTest() 250 IntlTestCollator::doTest(Collator* col, const UnicodeString &source, const UnicodeString &target, C… in doTest() 254 if(result == Collator::LESS) { in doTest() 255 doTestVariant(col, target, source, Collator::GREATER); in doTest() 256 } else if (result == Collator::GREATER) { in doTest() 257 doTestVariant(col, target, source, Collator::LESS); in doTest() 277 Collator::EComparisonResult compareResult, in reportCResult() [all …]
|
D | dadrcoll.cpp | 42 UCA = (RuleBasedCollator*)Collator::createInstance("root", status); in DataDrivenCollatorTest() 107 el.relation = Collator::LESS; in getNextInSequence() 111 el.relation = Collator::EQUAL; in getNextInSequence() 115 el.relation = Collator::GREATER; in getNextInSequence() 149 DataDrivenCollatorTest::processArguments(Collator *col, const UChar *start, int32_t optLen) { in processArguments() 169 Collator *col = NULL; in processTest() 183 col = Collator::createInstance(localeName, status); in processTest() 260 DataDrivenCollatorTest::processSequence(Collator* col, const UnicodeString &sequence) { in processSequence() 261 Collator::EComparisonResult relation = Collator::EQUAL; in processSequence() 275 relation = Collator::EQUAL; in processSequence() [all …]
|
D | mnkytst.cpp | 35 myCollator = Collator::createInstance("en_US", status); in CollationMonkeyTest() 92 myCollator->setStrength(Collator::TERTIARY); in TestCollationKey() 99 myCollator->setStrength(Collator::SECONDARY); in TestCollationKey() 106 myCollator->setStrength(Collator::PRIMARY); in TestCollationKey() 164 myCollator->setStrength(Collator::TERTIARY); in TestCompare() 169 myCollator->setStrength(Collator::SECONDARY); in TestCompare() 174 myCollator->setStrength(Collator::PRIMARY); in TestCompare() 220 Collator *col = Collator::createInstance("en_US", status); in TestRules() 231 doTest(myCollation, testSourceCases[i], testTargetCases[i], Collator::LESS); in TestRules() 246 doTest(myCollation, testSourceCases[i], testTargetCases[i], Collator::LESS); in TestRules()
|
D | lcukocol.cpp | 35 myCollation = Collator::createInstance("ko_kr", status); in LotusCollationKoreanTest() 60 const Collator::EComparisonResult LotusCollationKoreanTest::results[] = { 61 Collator::LESS 67 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
|
/external/icu4c/i18n/ |
D | coll.cpp | 129 return Collator::makeInstance(loc, status); in create() 146 return ((Collator*)instance)->clone(); in cloneInstance() 159 return Collator::makeInstance(loc, status); in handleDefault() 167 Collator* result = (Collator*)ICULocaleService::getKey(key, actualReturn, status); in getKey() 230 Collator::createUCollator(const char *loc, in createUCollator() 236 Collator *col = (Collator*)gService->get(desiredLocale, *status); in createUCollator() 305 Collator* U_EXPORT2 Collator::createInstance(UErrorCode& success) in createInstance() 310 Collator* U_EXPORT2 Collator::createInstance(const Locale& desiredLocale, in createInstance() 319 Collator *result = in createInstance() 320 (Collator*)gService->get(desiredLocale, &actualLoc, status); in createInstance() [all …]
|
D | sortkey.cpp | 180 Collator::EComparisonResult 188 return Collator::EQUAL; in compareTo() 211 Collator::EComparisonResult result; in compareTo() 217 result = Collator::LESS; in compareTo() 221 result = Collator::GREATER; in compareTo() 226 result = Collator::EQUAL; in compareTo() 232 return Collator::GREATER; in compareTo() 236 return Collator::LESS; in compareTo()
|
/external/webkit/JavaScriptCore/wtf/unicode/icu/ |
D | CollatorICU.cpp | 53 Collator::Collator(const char* locale) in Collator() function in WTF::Collator 60 std::auto_ptr<Collator> Collator::userDefault() in userDefault() 74 return std::auto_ptr<Collator>(new Collator(buf)); in userDefault() 76 return std::auto_ptr<Collator>(new Collator("")); in userDefault() 78 return std::auto_ptr<Collator>(new Collator(0)); in userDefault() 82 Collator::~Collator() in ~Collator() 88 void Collator::setOrderLowerFirst(bool lowerFirst) in setOrderLowerFirst() 93 Collator::Result Collator::collate(const UChar* lhs, size_t lhsLength, const UChar* rhs, size_t rhs… in collate() 101 void Collator::createCollator() const in createCollator() 137 void Collator::releaseCollator() in releaseCollator()
|
/external/webkit/JavaScriptCore/wtf/unicode/ |
D | CollatorDefault.cpp | 36 Collator::Collator(const char*) in Collator() function in WTF::Collator 40 Collator::~Collator() in ~Collator() 44 void Collator::setOrderLowerFirst(bool) in setOrderLowerFirst() 48 std::auto_ptr<Collator> Collator::userDefault() in userDefault() 50 return std::auto_ptr<Collator>(new Collator(0)); in userDefault() 54 Collator::Result Collator::collate(const UChar* lhs, size_t lhsLength, const UChar* rhs, size_t rhs… in collate()
|
D | Collator.h | 42 class Collator : public Noncopyable { 46 …Collator(const char* locale); // Parsing is lenient; e.g. language identifiers (such as "en-US") a… 47 ~Collator(); 50 static std::auto_ptr<Collator> userDefault(); 65 using WTF::Collator;
|
/external/icu4c/i18n/unicode/ |
D | tblcoll.h | 110 class U_I18N_API RuleBasedCollator : public Collator 223 virtual UBool operator==(const Collator& other) const; 231 virtual UBool operator!=(const Collator& other) const; 239 virtual Collator* clone(void) const; 603 virtual Collator* safeClone(void); 728 friend class Collator; variable 824 Collator::EComparisonResult getEComparisonResult( 832 Collator::ECollationStrength getECollationStrength( 841 const Collator::ECollationStrength &strength) const; 870 inline Collator::EComparisonResult RuleBasedCollator::getEComparisonResult( in getEComparisonResult() [all …]
|
D | coll.h | 175 class U_I18N_API Collator : public UObject { 237 virtual ~Collator(); 247 virtual UBool operator==(const Collator& other) const; 255 virtual UBool operator!=(const Collator& other) const; 262 virtual Collator* clone(void) const = 0; 283 static Collator* U_EXPORT2 createInstance(UErrorCode& err); 308 static Collator* U_EXPORT2 createInstance(const Locale& loc, UErrorCode& err); 334 static Collator *createInstance(const Locale &loc, UVersionInfo version, UErrorCode &err); 676 …static URegistryKey U_EXPORT2 registerInstance(Collator* toAdopt, const Locale& locale, UErrorCode… 798 virtual Collator* safeClone(void) = 0; [all …]
|