/external/icu4c/samples/coll/ |
Makefile | 12 TARGET=coll 15 OBJECTS=coll.o
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
RuleBasedCollatorTest.java | 50 RuleBasedCollator coll = new RuleBasedCollator(rule); local 51 assertEquals(rule.hashCode(), coll.hashCode()); 56 RuleBasedCollator coll = new RuleBasedCollator(rule); local 57 assertEquals(rule.hashCode(), coll.hashCode()); 63 RuleBasedCollator coll = (RuleBasedCollator) Collator local 65 RuleBasedCollator clone = (RuleBasedCollator) coll.clone(); 66 assertNotSame(coll, clone); 67 assertEquals(coll.getRules(), clone.getRules()); 68 assertEquals(coll.getDecomposition(), clone.getDecomposition()); 69 assertEquals(coll.getStrength(), clone.getStrength()) 77 RuleBasedCollator coll = new RuleBasedCollator(rule); local 97 RuleBasedCollator coll = new RuleBasedCollator(rule); local 102 RuleBasedCollator coll = (RuleBasedCollator) Collator local 117 RuleBasedCollator coll = new RuleBasedCollator(rule); local 128 RuleBasedCollator coll = (RuleBasedCollator) Collator local 146 RuleBasedCollator coll = (RuleBasedCollator) Collator local 177 RuleBasedCollator coll = (RuleBasedCollator) Collator local 197 RuleBasedCollator coll = (RuleBasedCollator) Collator local 223 RuleBasedCollator coll = (RuleBasedCollator) Collator local 233 RuleBasedCollator coll = (RuleBasedCollator) Collator local 242 Collator coll = Collator.getInstance(); local 260 Collator coll = Collator.getInstance(Locale.US); local [all...] |
/external/icu4c/test/intltest/ |
ucaconf.h | 38 void setCollNonIgnorable(Collator *coll); 39 void setCollShifted(Collator *coll); 40 void testConformance(const Collator *coll);
|
ucaconf.cpp | 87 void UCAConformanceTest::setCollNonIgnorable(Collator *coll) 89 coll->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); 90 coll->setAttribute(UCOL_CASE_FIRST, UCOL_OFF, status); 91 coll->setAttribute(UCOL_CASE_LEVEL, UCOL_OFF, status); 92 coll->setAttribute(UCOL_STRENGTH, isAtLeastUCA62 ? UCOL_IDENTICAL : UCOL_TERTIARY, status); 93 coll->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_NON_IGNORABLE, status); 96 void UCAConformanceTest::setCollShifted(Collator *coll) 98 coll->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); 99 coll->setAttribute(UCOL_CASE_FIRST, UCOL_OFF, status); 100 coll->setAttribute(UCOL_CASE_LEVEL, UCOL_OFF, status) [all...] |
thcoll.cpp | 17 #include "unicode/coll.h" 39 coll = Collator::createInstance(Locale("th", "TH", ""), status); 40 if (coll && U_SUCCESS(status)) { 41 //coll->setStrength(Collator::TERTIARY); 43 delete coll; 44 coll = 0; 49 delete coll; 55 if((!coll) && exec) { 77 if (coll == 0) { 107 Collator::EComparisonResult result = coll->compare(lastWord, word) [all...] |
itercoll.cpp | 11 #include "unicode/coll.h" 298 RuleBasedCollator *coll = new RuleBasedCollator(rule, status); local 302 CollationElementIterator *iter = coll->createCollationElementIterator(str); 329 delete coll; 406 RuleBasedCollator *coll = local 409 if (coll == NULL || U_FAILURE(status)) 417 coll->createCollationElementIterator(source); 432 coll->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); 434 = coll->createCollationElementIterator(source); 477 delete coll; 486 RuleBasedCollator *coll = local 543 RuleBasedCollator *coll = local [all...] |
ssearch.h | 51 virtual int32_t monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern, 54 virtual int32_t bmMonkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
|
thcoll.h | 21 Collator* coll; // Thai collator member in class:CollationThaiTest
|
allcoll.cpp | 11 #include "unicode/coll.h" 160 Collator *coll = Collator::createInstance("en_US", status); local 166 Collator::EComparisonResult result = coll->compare(source, target); 173 coll->setStrength(Collator::PRIMARY); 174 result = coll->compare(source, target); 183 coll->getCollationKey(source, sourceKeyOut, status); 184 coll->getCollationKey(target, targetKeyOut, status); 190 delete coll;
|
apicoll.cpp | 35 #include "unicode/coll.h" 380 RuleBasedCollator *coll; local 384 coll = (RuleBasedCollator *)Collator::createInstance(Locale::getEnglish(), status); 393 coll->getRules(UCOL_TAILORING_ONLY, rules); 398 coll->getRules(UCOL_FULL_RULES, rules); 402 delete coll; 1426 Collator *coll = Collator::createInstance("en_US", error); local 1450 Collator *coll = Collator::createInstance(error); local 1555 Collator *coll = Collator::createInstance(status); local 1589 Collator *coll = NULL; local 1695 Collator *coll = Collator::createInstance(Locale("sh"), status); local 1839 RuleBasedCollator *coll = NULL; local 1872 RuleBasedCollator *coll local 2221 RuleBasedCollator *coll = new RuleBasedCollator(UnicodeString(buf, len), status); local [all...] |
/external/icu4c/i18n/unicode/ |
ucol.h | 452 * @param coll collator 461 ucol_getContractions( const UCollator *coll, 469 * @param coll collator 478 ucol_getContractionsAndExpansions( const UCollator *coll, 486 * @param coll The UCollator to close. 493 ucol_close(UCollator *coll); 517 * @param coll The UCollator containing the comparison rules. 530 ucol_strcoll( const UCollator *coll, 541 * @param coll The UCollator containing the comparison rules. 556 const UCollator *coll, [all...] |
stsearch.h | 103 * from <tt>getCollator</tt> and using the APIs in <tt>coll.h</tt>. 176 * @param coll A <tt>RuleBasedCollator</tt> object which defines 193 RuleBasedCollator *coll, 237 * @param coll A <tt>RuleBasedCollator</tt> object which defines 253 RuleBasedCollator *coll, 378 * @param coll collator 382 void setCollator(RuleBasedCollator *coll, UErrorCode &status);
|
/external/icu4c/i18n/ |
ucol.cpp | 42 #include "unicode/coll.h" 138 (s)->coll = (collator); 498 ucol_cloneBinary(const UCollator *coll, 510 if(coll->hasRealData == TRUE) { 511 length = coll->image->size; 513 uprv_memcpy(buffer, coll->image, length); 542 uprv_memcpy(myData->version, coll->image->version, sizeof(UVersionInfo)); 544 uprv_memcpy(myData->UCAVersion, coll->image->UCAVersion, sizeof(UVersionInfo)); 545 uprv_memcpy(myData->UCDVersion, coll->image->UCDVersion, sizeof(UVersionInfo)); 546 uprv_memcpy(myData->formatVersion, coll->image->formatVersion, sizeof(UVersionInfo)) 7134 const UCollator *coll = sColl->coll; local 7211 const UCollator *coll = sColl->coll; local [all...] |
ucol_res.cpp | 28 #include "unicode/coll.h" 52 static void ucol_setReorderCodesFromParser(UCollator *coll, UColTokenParser *parser, UErrorCode *status); 542 ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen) { 547 const UChar *rules = ucol_getRules(coll, &len); 551 ucaRules = coll->ucaRules; 556 ucaRules = ures_getStringByKey(coll->rb,"UCARules",&UCAlen,&status); 557 UResourceBundle* cresb = ures_getByKeyWithFallback(coll->rb, "collations", NULL, &status); 582 ucol_getRules( const UCollator *coll, 585 if(coll->rules != NULL) { 586 *length = coll->rulesLength [all...] |
ucol_sit.cpp | 25 #include "unicode/coll.h" 592 ucol_getShortDefinitionString(const UCollator *coll, 599 if(coll->delegate != NULL) { 600 return ((icu::Collator*)coll->delegate)->internalGetShortDefinitionString(locale,dst,capacity,*status); 614 locale = ucol_getLocaleByType(coll, ULOC_VALID_LOCALE, status); 636 attribute = ucol_getAttributeOrDefault(coll, (UColAttribute)options[i].attr, status); 644 if(coll->variableTopValueisDefault == FALSE) { 645 //s.variableTopValue = ucol_getVariableTop(coll, status); 646 elementSize = T_CString_integerToString(tempbuff, coll->variableTopValue, 16); 683 ucol_getAttributeOrDefault(const UCollator *coll, UColAttribute attr, UErrorCode *status 718 const UCollator *coll; member in struct:contContext 732 const UCollator *coll = context->coll; local [all...] |
ucoleitr.cpp | 214 void init(const UCollator *coll); 224 init(elems->iteratordata_.coll); 227 void UCollationPCE::init(const UCollator *coll) 231 strength = ucol_getStrength(coll); 232 toShift = ucol_getAttribute(coll, UCOL_ALTERNATE_HANDLING, &status) == UCOL_SHIFTED; 234 variableTop = coll->variableTopValue << 16; 302 elems->pce->init(elems->iteratordata_.coll); 311 ucol_openElements(const UCollator *coll, 333 uprv_init_collIterate(coll, text, textLength, &result->iteratordata_, status); 377 if (ci->coll->normalizationMode == UCOL_ON) 430 const UCollator *coll = elems->iteratordata_.coll; local 511 const UCollator *coll = elems->iteratordata_.coll; local 613 const UCollator *coll = elems->iteratordata_.coll; local [all...] |
/external/webkit/Source/JavaScriptCore/icu/unicode/ |
ucol.h | 349 * @param coll collator 358 ucol_getContractions( const UCollator *coll, 367 * @param coll The UCollator to close. 374 ucol_close(UCollator *coll); 379 * @param coll The UCollator containing the comparison rules. 392 ucol_strcoll( const UCollator *coll, 401 * @param coll The UCollator containing the comparison rules. 413 ucol_greater(const UCollator *coll, 420 * @param coll The UCollator containing the comparison rules. 432 ucol_greaterOrEqual(const UCollator *coll, [all...] |
/external/webkit/Source/WebCore/icu/unicode/ |
ucol.h | 349 * @param coll collator 358 ucol_getContractions( const UCollator *coll, 367 * @param coll The UCollator to close. 374 ucol_close(UCollator *coll); 379 * @param coll The UCollator containing the comparison rules. 392 ucol_strcoll( const UCollator *coll, 401 * @param coll The UCollator containing the comparison rules. 413 ucol_greater(const UCollator *coll, 420 * @param coll The UCollator containing the comparison rules. 432 ucol_greaterOrEqual(const UCollator *coll, [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
CollatorTest.java | 92 RuleBasedCollator coll = new RuleBasedCollator(rule); local 94 assertEquals(Collator.TERTIARY, coll.getStrength()); 95 assertEquals(Collator.NO_DECOMPOSITION, coll.getDecomposition()); 97 assertTrue(coll.equals(other)); 99 coll.setStrength(Collator.PRIMARY); 100 assertFalse(coll.equals(other)); 102 coll.setStrength(Collator.TERTIARY); 103 coll.setDecomposition(Collator.CANONICAL_DECOMPOSITION); 105 assertFalse(coll.equals(other)); 127 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(l) local 132 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(l); local [all...] |
OldCollationElementIteratorTest.java | 29 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(Locale.US); local 31 CollationElementIterator iterator = coll
|
/external/stlport/test/eh/ |
test.cpp | 6 inline void printElements(const T& coll, const char* msg = "") 10 for(it = coll.begin(); it != coll.end(); ++it) {
|
/external/icu4c/test/cintltst/ |
capitst.c | 42 static char* U_EXPORT2 ucol_sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer, uint32_t len) { 102 UCollator *coll = ucol_open(NULL, &status); local 122 if (coll == NULL) { 128 ucol_setAttribute(coll, currAttr, UCOL_DEFAULT, &status); 133 value = ucol_getAttribute(coll, currAttr, &status); 139 ucol_setAttribute(coll, currAttr, attrs[i].val[j], &status); 146 ucol_setAttribute(coll, currAttr, attrs[i].nonValue, &status); 153 ucol_setAttribute(coll, currAttr, value, &status); 160 value = ucol_getAttribute(coll, UCOL_ATTRIBUTE_COUNT, &status); 165 ucol_setAttribute(coll, UCOL_ATTRIBUTE_COUNT, UCOL_DEFAULT, &status) 1405 UCollator *coll = NULL; local 1522 UCollator *coll = ucol_open("sh", &status); local 1706 UCollator *coll = ucol_open("root", &status); local 1735 UCollator *coll = ucol_open(NULL, &error); local 1849 UCollator *coll = NULL; local 1891 UCollator *coll = ucol_open("en", &status); local 2043 UCollator *coll = NULL, *fromNormalized = NULL; local 2182 UCollator *coll = NULL; local 2253 UCollator *coll = ucol_openRules(uRules, uRulesLen, UCOL_DEFAULT, UCOL_DEFAULT, NULL, &status); local 2302 UCollator *coll = ucol_open("es@collation=pinyin", &status); local 2327 UCollator *coll = ucol_open(loc, &status); local [all...] |
citertst.c | 80 UCollator *coll = ucol_open(LOCALES[i], &status); local 81 UCollationElements *pitr = ucol_openElements(coll, pattern, -1, 83 UCollationElements *titer = ucol_openElements(coll, text, -1, 129 ucol_close(coll); 153 UCollator *coll = ucol_open(LOCALES[i], &status); local 157 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); 159 pitr = ucol_openElements(coll, pattern, -1, &status); 160 titer = ucol_openElements(coll, text, -1, &status); 205 ucol_close(coll); 356 UCollator *coll; local 424 UCollator *coll=NULL; local 788 UCollator *coll ;\/*= ucol_open("en_US", &status);*\/ local 945 UCollator *coll; local 1272 UCollator *coll = ucol_open("", &status); local 1399 UCollator *coll; local 1474 UCollator *coll; local 1694 UCollator *coll = ucol_open("root", &status); local 1904 UCollator *coll = ucol_open("en_US", &status); local [all...] |
cmsccoll.c | 89 UCollator *coll = NULL; local 95 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL,&status); 104 doTest(coll, t1, t2, UCOL_LESS); 106 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); 117 ucol_close(coll); 121 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status); 130 doTest(coll, t1, t2, UCOL_LESS); 133 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); 144 ucol_close(coll); 192 UCollator *coll = ucol_open("en_US", &status) local 1336 UCollator *coll = NULL; local 1376 UCollator *coll = NULL; local 1456 UCollator *coll = NULL; local 1528 UCollator *coll = ucol_open("cs", &status); local 1617 UCollator *coll = ucol_open("", &status); local 1657 UCollator *coll = NULL; local 1773 UCollator *coll = ucol_openRules(rulez, 0, UCOL_OFF, UCOL_TERTIARY,NULL, &status); local 1784 UCollator *coll = ucol_open("", &status); local 2251 UCollator *coll; local 2519 UCollator *coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status); local 2550 UCollator *coll; local 2694 UCollator *coll; local 2821 UCollator *coll; local 2943 UCollator *coll = ucol_open("", &status); local 2959 UCollator *coll = ucol_open("", &status); local 3213 UCollator *coll = ucol_open("en_US", &status); local 3611 UCollator *coll = NULL; local 3875 UCollator *coll = ucol_open("", &status); local 3941 UCollator *coll = ucol_open("", &status); local 3978 UCollator *coll = ucol_open("", &status); local 4184 UCollator *coll = ucol_open("en", &status); local 4199 UCollator *coll = ucol_openRules(r, 1, UCOL_DEFAULT, UCOL_DEFAULT, NULL, &status); local 4308 UCollator* coll = ucol_open("root", &status); local 4346 UCollator *coll = ucol_open("", &status); local 4394 UCollator *coll = ucol_open("root", &status); local 4663 UCollator *coll = NULL; local 4796 UCollator *coll = NULL; local 4853 static UCollator *coll = NULL; local 4921 UCollator *coll =NULL; local 5091 UCollator *coll =NULL; local 5194 UCollator *coll =NULL; local 5318 static UCollator *coll = NULL; local [all...] |
/external/icu4c/samples/legacy/ |
newcol.cpp | 29 UCollator *coll = ucol_open(locale, &status); local 33 int32_t result = ucol_getSortKey(coll, string, sLen, buffer, bLen); 34 ucol_close(coll);
|