/external/icu/icu4c/source/i18n/ |
D | ucol.cpp | 47 RuleBasedCollator *coll = new RuleBasedCollator( in ucol_openBinary() local 51 if(coll == NULL) { in ucol_openBinary() 56 delete coll; in ucol_openBinary() 59 return coll->toUCollator(); in ucol_openBinary() 63 ucol_cloneBinary(const UCollator *coll, in ucol_cloneBinary() argument 70 const RuleBasedCollator *rbc = RuleBasedCollator::rbcFromUCollator(coll); in ucol_cloneBinary() 71 if(rbc == NULL && coll != NULL) { in ucol_cloneBinary() 79 ucol_safeClone(const UCollator *coll, void * /*stackBuffer*/, int32_t * pBufferSize, UErrorCode *st… in ucol_safeClone() argument 84 if (coll == NULL) { in ucol_safeClone() 95 Collator *newColl = Collator::fromUCollator(coll)->clone(); in ucol_safeClone() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationMiscTest.java | 80 RuleBasedCollator coll; in TestComposeDecompose() local 82 coll = (RuleBasedCollator)Collator.getInstance(Locale.ENGLISH); in TestComposeDecompose() 111 if (!coll.equals(t[u].NFC, t[u].NFD)) { in TestComposeDecompose() 114 CollationTest.doTest(this, coll, t[u].NFC, t[u].NFD, 0); in TestComposeDecompose() 123 coll = (RuleBasedCollator)Collator.getInstance(loc[i]); in TestComposeDecompose() 124 coll.setStrength(Collator.IDENTICAL); in TestComposeDecompose() 127 if (!coll.equals(t[u].NFC, t[u].NFD)) { in TestComposeDecompose() 133 CollationTest.doTest(this, coll, t[u].NFC, t[u].NFD, in TestComposeDecompose() 258 RuleBasedCollator coll = null; in genericRulesStarterWithResult() local 260 coll = new RuleBasedCollator(rules); in genericRulesStarterWithResult() [all …]
|
D | UCAConformanceTest.java | 118 private void setCollNonIgnorable(RuleBasedCollator coll) { in setCollNonIgnorable() argument 119 if (coll != null) { in setCollNonIgnorable() 120 coll.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in setCollNonIgnorable() 121 coll.setLowerCaseFirst(false); in setCollNonIgnorable() 122 coll.setCaseLevel(false); in setCollNonIgnorable() 123 coll.setStrength(isAtLeastUCA62 ? Collator.IDENTICAL : Collator.TERTIARY); in setCollNonIgnorable() 124 coll.setAlternateHandlingShifted(false); in setCollNonIgnorable() 128 private void setCollShifted(RuleBasedCollator coll) { in setCollShifted() argument 129 if (coll != null) { in setCollShifted() 130 coll.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in setCollShifted() [all …]
|
D | CollationAPITest.java | 660 … RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance(new Locale("","","")); //root 664 String rules = coll.getRules(); 721 RuleBasedCollator coll; 727 coll = new RuleBasedCollator(rules[i]); 728 set = coll.getTailoredSet(); 1008 RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance(ULocale.ROOT); 1010 int oldVarTop = coll.getVariableTop(); 1015 coll.setVariableTop("A"); 1021 int newVarTop = coll.setVariableTop("$"); 1023 if(newVarTop != coll.getVariableTop()) { [all …]
|
D | CollationThaiTest.java | 86 RuleBasedCollator coll = null; in TestCornerCases() local 88 coll = getThaiCollator(); in TestCornerCases() 93 compareArray(coll, TESTS); in TestCornerCases() 129 RuleBasedCollator coll = null; in TestDictionary() local 131 coll = getThaiCollator(); in TestDictionary() 173 int result = coll.compare(lastWord, word); in TestDictionary() 181 k1 = coll.getCollationKey(lastWord); in TestDictionary() 182 k2 = coll.getCollationKey(word); in TestDictionary()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationMiscTest.java | 77 RuleBasedCollator coll; in TestComposeDecompose() local 79 coll = (RuleBasedCollator)Collator.getInstance(Locale.ENGLISH); in TestComposeDecompose() 108 if (!coll.equals(t[u].NFC, t[u].NFD)) { in TestComposeDecompose() 111 CollationTest.doTest(this, coll, t[u].NFC, t[u].NFD, 0); in TestComposeDecompose() 120 coll = (RuleBasedCollator)Collator.getInstance(loc[i]); in TestComposeDecompose() 121 coll.setStrength(Collator.IDENTICAL); in TestComposeDecompose() 124 if (!coll.equals(t[u].NFC, t[u].NFD)) { in TestComposeDecompose() 130 CollationTest.doTest(this, coll, t[u].NFC, t[u].NFD, in TestComposeDecompose() 255 RuleBasedCollator coll = null; in genericRulesStarterWithResult() local 257 coll = new RuleBasedCollator(rules); in genericRulesStarterWithResult() [all …]
|
D | UCAConformanceTest.java | 115 private void setCollNonIgnorable(RuleBasedCollator coll) { in setCollNonIgnorable() argument 116 if (coll != null) { in setCollNonIgnorable() 117 coll.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in setCollNonIgnorable() 118 coll.setLowerCaseFirst(false); in setCollNonIgnorable() 119 coll.setCaseLevel(false); in setCollNonIgnorable() 120 coll.setStrength(isAtLeastUCA62 ? Collator.IDENTICAL : Collator.TERTIARY); in setCollNonIgnorable() 121 coll.setAlternateHandlingShifted(false); in setCollNonIgnorable() 125 private void setCollShifted(RuleBasedCollator coll) { in setCollShifted() argument 126 if (coll != null) { in setCollShifted() 127 coll.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in setCollShifted() [all …]
|
D | CollationAPITest.java | 657 … RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance(new Locale("","","")); //root 661 String rules = coll.getRules(); 718 RuleBasedCollator coll; 724 coll = new RuleBasedCollator(rules[i]); 725 set = coll.getTailoredSet(); 1005 RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance(ULocale.ROOT); 1007 int oldVarTop = coll.getVariableTop(); 1012 coll.setVariableTop("A"); 1018 int newVarTop = coll.setVariableTop("$"); 1020 if(newVarTop != coll.getVariableTop()) { [all …]
|
D | CollationThaiTest.java | 83 RuleBasedCollator coll = null; in TestCornerCases() local 85 coll = getThaiCollator(); in TestCornerCases() 90 compareArray(coll, TESTS); in TestCornerCases() 126 RuleBasedCollator coll = null; in TestDictionary() local 128 coll = getThaiCollator(); in TestDictionary() 170 int result = coll.compare(lastWord, word); in TestDictionary() 178 k1 = coll.getCollationKey(lastWord); in TestDictionary() 179 k2 = coll.getCollationKey(word); in TestDictionary()
|
/external/icu/icu4c/source/test/perf/collperf2/ |
D | collperf2.cpp | 61 Strcoll(const UCollator* coll, const CA_uchar* source, UBool useLen); 67 const UCollator *coll; member in Strcoll 73 Strcoll::Strcoll(const UCollator* coll, const CA_uchar* source, UBool useLen) in Strcoll() argument 74 : coll(coll), in Strcoll() 101 cmp += ucol_strcoll(coll, source->dataOf(i), srcLen, source->dataOf(j), tgtLen); in call() 121 Strcoll_2(const UCollator* coll, const CA_uchar* source, const CA_uchar* target, UBool useLen); 127 const UCollator *coll; member in Strcoll_2 133 Strcoll_2::Strcoll_2(const UCollator* coll, const CA_uchar* source, const CA_uchar* target, UBool u… in Strcoll_2() argument 134 : coll(coll), in Strcoll_2() 156 ucol_strcoll(coll, source->dataOf(i), srcLen, target->dataOf(i), tgtLen); in call() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | ucol.h | 493 ucol_getContractions( const UCollator *coll, 510 ucol_getContractionsAndExpansions( const UCollator *coll, 525 ucol_close(UCollator *coll); 562 ucol_strcoll( const UCollator *coll, 588 const UCollator *coll, 610 ucol_greater(const UCollator *coll, 629 ucol_greaterOrEqual(const UCollator *coll, 648 ucol_equal(const UCollator *coll, 665 ucol_strcollIter( const UCollator *coll, 680 ucol_getStrength(const UCollator *coll); [all …]
|
/external/icu/libandroidicu/include/unicode/ |
D | ucol.h | 493 ucol_getContractions( const UCollator *coll, 510 ucol_getContractionsAndExpansions( const UCollator *coll, 525 ucol_close(UCollator *coll); 562 ucol_strcoll( const UCollator *coll, 588 const UCollator *coll, 610 ucol_greater(const UCollator *coll, 629 ucol_greaterOrEqual(const UCollator *coll, 648 ucol_equal(const UCollator *coll, 665 ucol_strcollIter( const UCollator *coll, 680 ucol_getStrength(const UCollator *coll); [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | cmsccoll.c | 87 UCollator *coll = NULL; in IncompleteCntTest() local 93 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL,&status); in IncompleteCntTest() 102 doTest(coll, t1, t2, UCOL_LESS); in IncompleteCntTest() 104 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); in IncompleteCntTest() 115 ucol_close(coll); in IncompleteCntTest() 119 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status); in IncompleteCntTest() 128 doTest(coll, t1, t2, UCOL_LESS); in IncompleteCntTest() 131 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); in IncompleteCntTest() 142 ucol_close(coll); in IncompleteCntTest() 190 UCollator *coll = ucol_open("en_US", &status); in BlackBirdTest() local [all …]
|
D | capitst.c | 44 static char* U_EXPORT2 ucol_sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *bu… in ucol_sortKeyToString() argument 45 (void)coll; // suppress compiler warnings about unused variable in ucol_sortKeyToString() 97 UCollator *coll = ucol_open(NULL, &status); in TestGetSetAttr() local 117 if (coll == NULL) { in TestGetSetAttr() 123 ucol_setAttribute(coll, currAttr, UCOL_DEFAULT, &status); in TestGetSetAttr() 128 value = ucol_getAttribute(coll, currAttr, &status); in TestGetSetAttr() 134 ucol_setAttribute(coll, currAttr, attrs[i].val[j], &status); in TestGetSetAttr() 141 ucol_setAttribute(coll, currAttr, attrs[i].nonValue, &status); in TestGetSetAttr() 148 ucol_setAttribute(coll, currAttr, value, &status); in TestGetSetAttr() 155 value = ucol_getAttribute(coll, UCOL_ATTRIBUTE_COUNT, &status); in TestGetSetAttr() [all …]
|
D | citertst.c | 78 UCollator *coll = ucol_open(LOCALES[i], &status); in TestBug672() local 79 UCollationElements *pitr = ucol_openElements(coll, pattern, -1, in TestBug672() 81 UCollationElements *titer = ucol_openElements(coll, text, -1, in TestBug672() 127 ucol_close(coll); in TestBug672() 151 UCollator *coll = ucol_open(LOCALES[i], &status); in TestBug672Normalize() local 155 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestBug672Normalize() 157 pitr = ucol_openElements(coll, pattern, -1, &status); in TestBug672Normalize() 158 titer = ucol_openElements(coll, text, -1, &status); in TestBug672Normalize() 203 ucol_close(coll); in TestBug672Normalize() 354 UCollator *coll; in TestNormalization() local [all …]
|
D | callcoll.c | 150 static char* U_EXPORT2 sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer,… in sortKeyToString() argument 161 while(strength <= UCOL_QUATERNARY && strength <= ucol_getStrength(coll)) { in sortKeyToString() 169 …if(ucol_getAttribute(coll, UCOL_CASE_LEVEL, &errorCode) == UCOL_ON && strength == UCOL_SECONDARY &… in sortKeyToString() 171 …} else if(ucol_getAttribute(coll, UCOL_CASE_LEVEL, &errorCode) == UCOL_OFF || doneCase == TRUE || … in sortKeyToString() 177 …if(strength == UCOL_QUATERNARY && ucol_getAttribute(coll, UCOL_ALTERNATE_HANDLING, &errorCode) == … in sortKeyToString() 182 if(ucol_getStrength(coll) == UCOL_IDENTICAL) { in sortKeyToString() 235 static UCollationResult compareUsingPartials(UCollator *coll, const UChar source[], int32_t sLen, c… in compareUsingPartials() argument 253 sSize = ucol_nextSortKeyPart(coll, &sIter, sState, sBuf, pieceSize, status); in compareUsingPartials() 254 tSize = ucol_nextSortKeyPart(coll, &tIter, tState, tBuf, pieceSize, status); in compareUsingPartials() 599 void genericOrderingTestWithResult(UCollator *coll, const char * const s[], uint32_t size, UCollati… in genericOrderingTestWithResult() argument [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | ucaconf.cpp | 91 void UCAConformanceTest::setCollNonIgnorable(Collator *coll) in setCollNonIgnorable() argument 93 coll->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in setCollNonIgnorable() 94 coll->setAttribute(UCOL_CASE_FIRST, UCOL_OFF, status); in setCollNonIgnorable() 95 coll->setAttribute(UCOL_CASE_LEVEL, UCOL_OFF, status); in setCollNonIgnorable() 96 coll->setAttribute(UCOL_STRENGTH, isAtLeastUCA62 ? UCOL_IDENTICAL : UCOL_TERTIARY, status); in setCollNonIgnorable() 97 coll->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_NON_IGNORABLE, status); in setCollNonIgnorable() 100 void UCAConformanceTest::setCollShifted(Collator *coll) in setCollShifted() argument 102 coll->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in setCollShifted() 103 coll->setAttribute(UCOL_CASE_FIRST, UCOL_OFF, status); in setCollShifted() 104 coll->setAttribute(UCOL_CASE_LEVEL, UCOL_OFF, status); in setCollShifted() [all …]
|
D | apicoll.cpp | 337 RuleBasedCollator *coll; in TestRules() local 341 coll = (RuleBasedCollator *)Collator::createInstance(Locale::getEnglish(), status); in TestRules() 350 coll->getRules(UCOL_TAILORING_ONLY, rules); in TestRules() 355 coll->getRules(UCOL_FULL_RULES, rules); in TestRules() 359 delete coll; in TestRules() 1296 RuleBasedCollator coll(rule, status); in TestMaxExpansion() local 1303 coll.createCollationElementIterator(str); in TestMaxExpansion() 1324 size = coll.getMaxExpansion(order); in TestMaxExpansion() 1339 size = coll.getMaxExpansion(order); in TestMaxExpansion() 1351 size = coll.getMaxExpansion(temporder); in TestMaxExpansion() [all …]
|
D | thcoll.cpp | 43 coll = Collator::createInstance(Locale("th", "TH", ""), status); in CollationThaiTest() 44 if (coll && U_SUCCESS(status)) { in CollationThaiTest() 47 delete coll; in CollationThaiTest() 48 coll = 0; in CollationThaiTest() 53 delete coll; in ~CollationThaiTest() 59 if((!coll) && exec) { in runIndexedTest() 81 if (coll == 0) { in TestNamesList() 111 Collator::EComparisonResult result = coll->compare(lastWord, word); in TestNamesList() 112 doTest(coll, lastWord, word, result); in TestNamesList() 128 if (coll == 0) { in TestDictionary() [all …]
|
D | itercoll.cpp | 353 RuleBasedCollator *coll = new RuleBasedCollator(rule, status); in TestMaxExpansion() local 357 CollationElementIterator *iter = coll->createCollationElementIterator(str); in TestMaxExpansion() 384 delete coll; in TestMaxExpansion() 461 RuleBasedCollator *coll = in TestAssignment() local 464 if (coll == NULL || U_FAILURE(status)) in TestAssignment() 472 coll->createCollationElementIterator(source); in TestAssignment() 487 coll->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in TestAssignment() 489 = coll->createCollationElementIterator(source); in TestAssignment() 532 delete coll; in TestAssignment() 541 RuleBasedCollator *coll = in TestConstructors() local [all …]
|
D | ssearch.cpp | 345 OrderList(UCollator *coll, const UnicodeString &string, int32_t stringOffset = 0); 370 OrderList::OrderList(UCollator *coll, const UnicodeString &string, int32_t stringOffset) in OrderList() argument 374 … UCollationElements *elems = ucol_openElements(coll, string.getBuffer(), string.length(), &status); in OrderList() 378 switch (ucol_getStrength(coll)) in OrderList() 734 UCollator *coll = NULL; in sharpSTest() local 742 coll = ucol_openFromShortString("LEN_S1", FALSE, NULL, &status); in sharpSTest() 750 coll, in sharpSTest() 756 coll, in sharpSTest() 785 ucol_close(coll); in sharpSTest() 791 UCollator *coll = NULL; in goodSuffixTest() local [all …]
|
D | colldata.cpp | 41 CEList::CEList(UCollator *coll, const UnicodeString &string, UErrorCode &status) in CEList() argument 44 … UCollationElements *elems = ucol_openElements(coll, string.getBuffer(), string.length(), &status); in CEList() 45 UCollationStrength strength = ucol_getStrength(coll); in CEList() 46 UBool toShift = ucol_getAttribute(coll, UCOL_ALTERNATE_HANDLING, &status) == UCOL_SHIFTED; in CEList() 47 uint32_t variableTop = ucol_getVariableTop(coll, &status); in CEList() 314 : coll(NULL), ceToCharsStartingWith(NULL) in CollData() 343 coll = ucol_safeClone(collator, NULL, NULL, &status); in CollData() 349 coll = collator; in CollData() 352 ucol_getContractionsAndExpansions(coll, contractions, expansions, FALSE, &status); in CollData() 374 CEList *ceList = new CEList(coll, *st, status); in CollData() [all …]
|
/external/icu/icu4c/source/samples/coll/ |
D | readme.txt | 5 coll: a sample program which compares 2 strings with a user-defined collator. 12 coll.c Main source file 13 coll.sln Windows MSVC workspace. Double-click this to get started. 14 coll.vcproj Windows MSVC project file 16 To Build coll on Windows 18 2. In MSVC, open the workspace file icu\samples\coll\coll.sln 27 3. cd into the coll directory, e.g. 28 cd c:\icu\source\samples\coll\debug 30 coll [options*] -source source_string -target target_string 33 1. Build ICU. coll is built automatically by default unless samples are turned off. [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | CollatorServiceShim.java | 22 import com.ibm.icu.impl.coll.CollationLoader; 23 import com.ibm.icu.impl.coll.CollationTailoring; 39 Collator coll = (Collator)service.get(locale, actualLoc); in getInstance() local 40 if (coll == null) { in getInstance() 46 return (Collator) coll.clone(); in getInstance() 76 Object coll = delegate.createCollator(loc); in registerFactory() local 77 return coll; in registerFactory()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | CollatorServiceShim.java | 23 import android.icu.impl.coll.CollationLoader; 24 import android.icu.impl.coll.CollationTailoring; 40 Collator coll = (Collator)service.get(locale, actualLoc); in getInstance() local 41 if (coll == null) { in getInstance() 47 return (Collator) coll.clone(); in getInstance() 77 Object coll = delegate.createCollator(loc); in registerFactory() local 78 return coll; in registerFactory()
|