Home
last modified time | relevance | path

Searched refs:coll (Results 1 – 25 of 239) sorted by relevance

12345678910

/third_party/node/deps/icu-small/source/i18n/
Ducol.cpp47 RuleBasedCollator *coll = new RuleBasedCollator( in ucol_openBinary() local
51 if(coll == nullptr) { 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 == nullptr && coll != nullptr) { in ucol_cloneBinary()
79 ucol_safeClone(const UCollator *coll, void * /*stackBuffer*/, int32_t * pBufferSize, UErrorCode *st… in ucol_safeClone() argument
84 if (coll == nullptr) { in ucol_safeClone()
95 Collator *newColl = Collator::fromUCollator(coll)->clone(); in ucol_safeClone()
[all …]
/third_party/icu/icu4c/source/i18n/
Ducol.cpp47 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 …]
/third_party/skia/third_party/externals/icu/source/i18n/
Ducol.cpp47 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 …]
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationMiscTest.java77 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 …]
DUCAConformanceTest.java115 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 …]
DCollationAPITest.java655 … RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance(new Locale("","","")); //root
659 String rules = coll.getRules();
716 RuleBasedCollator coll;
722 coll = new RuleBasedCollator(rules[i]);
723 set = coll.getTailoredSet();
1003 RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance(ULocale.ROOT);
1005 int oldVarTop = coll.getVariableTop();
1010 coll.setVariableTop("A");
1016 int newVarTop = coll.setVariableTop("$");
1018 if(newVarTop != coll.getVariableTop()) {
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/
DCollationMiscTest.java80 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 …]
DUCAConformanceTest.java118 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 …]
DCollationAPITest.java658 … RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance(new Locale("","","")); //root
662 String rules = coll.getRules();
719 RuleBasedCollator coll;
725 coll = new RuleBasedCollator(rules[i]);
726 set = coll.getTailoredSet();
1006 RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance(ULocale.ROOT);
1008 int oldVarTop = coll.getVariableTop();
1013 coll.setVariableTop("A");
1019 int newVarTop = coll.setVariableTop("$");
1021 if(newVarTop != coll.getVariableTop()) {
[all …]
/third_party/icu/icu4c/source/test/perf/collperf2/
Dcollperf2.cpp61 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 …]
/third_party/icu/icu4c/source/i18n/unicode/
Ducol.h496 ucol_getContractions( const UCollator *coll,
513 ucol_getContractionsAndExpansions( const UCollator *coll,
528 ucol_close(UCollator *coll);
565 ucol_strcoll( const UCollator *coll,
591 const UCollator *coll,
613 ucol_greater(const UCollator *coll,
632 ucol_greaterOrEqual(const UCollator *coll,
651 ucol_equal(const UCollator *coll,
668 ucol_strcollIter( const UCollator *coll,
683 ucol_getStrength(const UCollator *coll);
[all …]
/third_party/node/deps/icu-small/source/i18n/unicode/
Ducol.h496 ucol_getContractions( const UCollator *coll,
513 ucol_getContractionsAndExpansions( const UCollator *coll,
528 ucol_close(UCollator *coll);
565 ucol_strcoll( const UCollator *coll,
591 const UCollator *coll,
613 ucol_greater(const UCollator *coll,
632 ucol_greaterOrEqual(const UCollator *coll,
651 ucol_equal(const UCollator *coll,
668 ucol_strcollIter( const UCollator *coll,
683 ucol_getStrength(const UCollator *coll);
[all …]
/third_party/icu/icu4c/source/test/cintltst/
Dcmsccoll.c88 UCollator *coll = NULL; in IncompleteCntTest() local
94 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL,&status); in IncompleteCntTest()
103 doTest(coll, t1, t2, UCOL_LESS); in IncompleteCntTest()
105 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); in IncompleteCntTest()
116 ucol_close(coll); in IncompleteCntTest()
120 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status); in IncompleteCntTest()
129 doTest(coll, t1, t2, UCOL_LESS); in IncompleteCntTest()
132 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); in IncompleteCntTest()
143 ucol_close(coll); in IncompleteCntTest()
191 UCollator *coll = ucol_open("en_US", &status); in BlackBirdTest() local
[all …]
Dcapitst.c45 static char* U_EXPORT2 ucol_sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *bu… in ucol_sortKeyToString() argument
46 (void)coll; // suppress compiler warnings about unused variable in ucol_sortKeyToString()
100 UCollator *coll = ucol_open(NULL, &status); in TestGetSetAttr() local
120 if (coll == NULL) { in TestGetSetAttr()
126 ucol_setAttribute(coll, currAttr, UCOL_DEFAULT, &status); in TestGetSetAttr()
131 value = ucol_getAttribute(coll, currAttr, &status); in TestGetSetAttr()
137 ucol_setAttribute(coll, currAttr, attrs[i].val[j], &status); in TestGetSetAttr()
144 ucol_setAttribute(coll, currAttr, attrs[i].nonValue, &status); in TestGetSetAttr()
151 ucol_setAttribute(coll, currAttr, value, &status); in TestGetSetAttr()
158 value = ucol_getAttribute(coll, UCOL_ATTRIBUTE_COUNT, &status); in TestGetSetAttr()
[all …]
Dcitertst.c79 UCollator *coll = ucol_open(LOCALES[i], &status); in TestBug672() local
80 UCollationElements *pitr = ucol_openElements(coll, pattern, -1, in TestBug672()
82 UCollationElements *titer = ucol_openElements(coll, text, -1, in TestBug672()
128 ucol_close(coll); in TestBug672()
152 UCollator *coll = ucol_open(LOCALES[i], &status); in TestBug672Normalize() local
156 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestBug672Normalize()
158 pitr = ucol_openElements(coll, pattern, -1, &status); in TestBug672Normalize()
159 titer = ucol_openElements(coll, text, -1, &status); in TestBug672Normalize()
204 ucol_close(coll); in TestBug672Normalize()
355 UCollator *coll; in TestNormalization() local
[all …]
Dcallcoll.c151 static char* U_EXPORT2 sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer,… in sortKeyToString() argument
162 while(strength <= UCOL_QUATERNARY && strength <= ucol_getStrength(coll)) { in sortKeyToString()
170 …if(ucol_getAttribute(coll, UCOL_CASE_LEVEL, &errorCode) == UCOL_ON && strength == UCOL_SECONDARY &… in sortKeyToString()
172 …} else if(ucol_getAttribute(coll, UCOL_CASE_LEVEL, &errorCode) == UCOL_OFF || doneCase == true || … in sortKeyToString()
178 …if(strength == UCOL_QUATERNARY && ucol_getAttribute(coll, UCOL_ALTERNATE_HANDLING, &errorCode) == … in sortKeyToString()
183 if(ucol_getStrength(coll) == UCOL_IDENTICAL) { in sortKeyToString()
236 static UCollationResult compareUsingPartials(UCollator *coll, const UChar source[], int32_t sLen, c… in compareUsingPartials() argument
254 sSize = ucol_nextSortKeyPart(coll, &sIter, sState, sBuf, pieceSize, status); in compareUsingPartials()
255 tSize = ucol_nextSortKeyPart(coll, &tIter, tState, tBuf, pieceSize, status); in compareUsingPartials()
600 void genericOrderingTestWithResult(UCollator *coll, const char * const s[], uint32_t size, UCollati… in genericOrderingTestWithResult() argument
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Ducol.h496 ucol_getContractions( const UCollator *coll,
513 ucol_getContractionsAndExpansions( const UCollator *coll,
528 ucol_close(UCollator *coll);
565 ucol_strcoll( const UCollator *coll,
591 const UCollator *coll,
613 ucol_greater(const UCollator *coll,
632 ucol_greaterOrEqual(const UCollator *coll,
651 ucol_equal(const UCollator *coll,
668 ucol_strcollIter( const UCollator *coll,
683 ucol_getStrength(const UCollator *coll);
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dapicoll.cpp337 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 …]
Ducaconf.cpp91 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 …]
Dthcoll.cpp43 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 …]
Ditercoll.cpp353 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 …]
Dssearch.cpp345 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 …]
Dcolldata.cpp42 CEList::CEList(UCollator *coll, const UnicodeString &string, UErrorCode &status) in CEList() argument
45 … UCollationElements *elems = ucol_openElements(coll, string.getBuffer(), string.length(), &status); in CEList()
46 UCollationStrength strength = ucol_getStrength(coll); in CEList()
47 UBool toShift = ucol_getAttribute(coll, UCOL_ALTERNATE_HANDLING, &status) == UCOL_SHIFTED; in CEList()
48 uint32_t variableTop = ucol_getVariableTop(coll, &status); in CEList()
315 : coll(NULL), ceToCharsStartingWith(NULL) in CollData()
344 coll = ucol_safeClone(collator, NULL, NULL, &status); in CollData()
350 coll = collator; in CollData()
353 ucol_getContractionsAndExpansions(coll, contractions, expansions, false, &status); in CollData()
375 CEList *ceList = new CEList(coll, *st, status); in CollData()
[all …]
/third_party/icu/icu4c/source/samples/coll/
Dreadme.txt5 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 …]
/third_party/skia/third_party/externals/icu/source/samples/coll/
Dreadme.txt5 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 …]

12345678910