/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | ucol.cpp | 26 #include "unicode/coll.h" 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 *status) in ucol_safeClone() argument 84 if (coll in ucol_safeClone() 106 ucol_close(UCollator *coll) ucol_close() argument 192 ucol_getSortKey(const UCollator *coll, const UChar *source, int32_t sourceLength, uint8_t *result, int32_t resultLength) ucol_getSortKey() argument 213 ucol_nextSortKeyPart(const UCollator *coll, UCharIterator *iter, uint32_t state[2], uint8_t *dest, int32_t count, UErrorCode *status) ucol_nextSortKeyPart() argument 306 ucol_setMaxVariable(UCollator *coll, UColReorderCode group, UErrorCode *pErrorCode) ucol_setMaxVariable() argument 312 ucol_getMaxVariable(const UCollator *coll) ucol_getMaxVariable() argument 317 ucol_setVariableTop(UCollator *coll, const UChar *varTop, int32_t len, UErrorCode *status) ucol_setVariableTop() argument 324 ucol_getVariableTop(const UCollator *coll, UErrorCode *status) ucol_getVariableTop() argument 332 ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status) ucol_restoreVariableTop() argument 340 ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status) ucol_setAttribute() argument 349 ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status) ucol_getAttribute() argument 358 ucol_setStrength( UCollator *coll, UCollationStrength strength) ucol_setStrength() argument 366 ucol_getStrength(const UCollator *coll) ucol_getStrength() argument 373 ucol_getReorderCodes(const UCollator *coll, int32_t *dest, int32_t destCapacity, UErrorCode *status) ucol_getReorderCodes() argument 385 ucol_setReorderCodes(UCollator* coll, const int32_t* reorderCodes, int32_t reorderCodesLength, UErrorCode *status) ucol_setReorderCodes() argument 405 ucol_getVersion(const UCollator* coll, UVersionInfo versionInfo) ucol_getVersion() argument 412 ucol_strcollIter( const UCollator *coll, UCharIterator *sIter, UCharIterator *tIter, UErrorCode *status) ucol_strcollIter() argument 441 ucol_strcoll( const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength) ucol_strcoll() argument 462 ucol_strcollUTF8( const UCollator *coll, const char *source, int32_t sourceLength, const char *target, int32_t targetLength, UErrorCode *status) ucol_strcollUTF8() argument 492 ucol_greater( const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength) ucol_greater() argument 504 ucol_greaterOrEqual( const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength) ucol_greaterOrEqual() argument 516 ucol_equal( const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength) ucol_equal() argument 527 ucol_getUCAVersion(const UCollator* coll, UVersionInfo info) ucol_getUCAVersion() argument 546 ucol_getRules(const UCollator *coll, int32_t *length) ucol_getRules() argument 561 ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen) ucol_getRulesEx() argument 576 ucol_getLocale(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status) ucol_getLocale() argument 581 ucol_getLocaleByType(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status) ucol_getLocaleByType() argument 603 ucol_getTailoredSet(const UCollator *coll, UErrorCode *status) ucol_getTailoredSet() argument [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | ucol.cpp | 26 #include "unicode/coll.h" 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 *status) in ucol_safeClone() argument 84 if (coll in ucol_safeClone() 106 ucol_clone(const UCollator *coll, UErrorCode *status) ucol_clone() argument 112 ucol_close(UCollator *coll) ucol_close() argument 198 ucol_getSortKey(const UCollator *coll, const UChar *source, int32_t sourceLength, uint8_t *result, int32_t resultLength) ucol_getSortKey() argument 219 ucol_nextSortKeyPart(const UCollator *coll, UCharIterator *iter, uint32_t state[2], uint8_t *dest, int32_t count, UErrorCode *status) ucol_nextSortKeyPart() argument 312 ucol_setMaxVariable(UCollator *coll, UColReorderCode group, UErrorCode *pErrorCode) ucol_setMaxVariable() argument 318 ucol_getMaxVariable(const UCollator *coll) ucol_getMaxVariable() argument 323 ucol_setVariableTop(UCollator *coll, const UChar *varTop, int32_t len, UErrorCode *status) ucol_setVariableTop() argument 330 ucol_getVariableTop(const UCollator *coll, UErrorCode *status) ucol_getVariableTop() argument 338 ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status) ucol_restoreVariableTop() argument 346 ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status) ucol_setAttribute() argument 355 ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status) ucol_getAttribute() argument 364 ucol_setStrength( UCollator *coll, UCollationStrength strength) ucol_setStrength() argument 372 ucol_getStrength(const UCollator *coll) ucol_getStrength() argument 379 ucol_getReorderCodes(const UCollator *coll, int32_t *dest, int32_t destCapacity, UErrorCode *status) ucol_getReorderCodes() argument 391 ucol_setReorderCodes(UCollator* coll, const int32_t* reorderCodes, int32_t reorderCodesLength, UErrorCode *status) ucol_setReorderCodes() argument 411 ucol_getVersion(const UCollator* coll, UVersionInfo versionInfo) ucol_getVersion() argument 418 ucol_strcollIter( const UCollator *coll, UCharIterator *sIter, UCharIterator *tIter, UErrorCode *status) ucol_strcollIter() argument 447 ucol_strcoll( const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength) ucol_strcoll() argument 468 ucol_strcollUTF8( const UCollator *coll, const char *source, int32_t sourceLength, const char *target, int32_t targetLength, UErrorCode *status) ucol_strcollUTF8() argument 498 ucol_greater( const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength) ucol_greater() argument 510 ucol_greaterOrEqual( const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength) ucol_greaterOrEqual() argument 522 ucol_equal( const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength) ucol_equal() argument 533 ucol_getUCAVersion(const UCollator* coll, UVersionInfo info) ucol_getUCAVersion() argument 552 ucol_getRules(const UCollator *coll, int32_t *length) ucol_getRules() argument 567 ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen) ucol_getRulesEx() argument 582 ucol_getLocale(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status) ucol_getLocale() argument 587 ucol_getLocaleByType(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status) ucol_getLocaleByType() argument 609 ucol_getTailoredSet(const UCollator *coll, UErrorCode *status) ucol_getTailoredSet() argument [all...] |
/third_party/node/deps/icu-small/source/i18n/ |
H A D | ucol.cpp | 26 #include "unicode/coll.h" 47 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 *status) in ucol_safeClone() argument 84 if (coll in ucol_safeClone() 106 ucol_clone(const UCollator *coll, UErrorCode *status) ucol_clone() argument 112 ucol_close(UCollator *coll) ucol_close() argument 198 ucol_getSortKey(const UCollator *coll, const char16_t *source, int32_t sourceLength, uint8_t *result, int32_t resultLength) ucol_getSortKey() argument 219 ucol_nextSortKeyPart(const UCollator *coll, UCharIterator *iter, uint32_t state[2], uint8_t *dest, int32_t count, UErrorCode *status) ucol_nextSortKeyPart() argument 312 ucol_setMaxVariable(UCollator *coll, UColReorderCode group, UErrorCode *pErrorCode) ucol_setMaxVariable() argument 318 ucol_getMaxVariable(const UCollator *coll) ucol_getMaxVariable() argument 323 ucol_setVariableTop(UCollator *coll, const char16_t *varTop, int32_t len, UErrorCode *status) ucol_setVariableTop() argument 330 ucol_getVariableTop(const UCollator *coll, UErrorCode *status) ucol_getVariableTop() argument 338 ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status) ucol_restoreVariableTop() argument 346 ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status) ucol_setAttribute() argument 355 ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status) ucol_getAttribute() argument 364 ucol_setStrength( UCollator *coll, UCollationStrength strength) ucol_setStrength() argument 372 ucol_getStrength(const UCollator *coll) ucol_getStrength() argument 379 ucol_getReorderCodes(const UCollator *coll, int32_t *dest, int32_t destCapacity, UErrorCode *status) ucol_getReorderCodes() argument 391 ucol_setReorderCodes(UCollator* coll, const int32_t* reorderCodes, int32_t reorderCodesLength, UErrorCode *status) ucol_setReorderCodes() argument 411 ucol_getVersion(const UCollator* coll, UVersionInfo versionInfo) ucol_getVersion() argument 418 ucol_strcollIter( const UCollator *coll, UCharIterator *sIter, UCharIterator *tIter, UErrorCode *status) ucol_strcollIter() argument 447 ucol_strcoll( const UCollator *coll, const char16_t *source, int32_t sourceLength, const char16_t *target, int32_t targetLength) ucol_strcoll() argument 468 ucol_strcollUTF8( const UCollator *coll, const char *source, int32_t sourceLength, const char *target, int32_t targetLength, UErrorCode *status) ucol_strcollUTF8() argument 498 ucol_greater( const UCollator *coll, const char16_t *source, int32_t sourceLength, const char16_t *target, int32_t targetLength) ucol_greater() argument 510 ucol_greaterOrEqual( const UCollator *coll, const char16_t *source, int32_t sourceLength, const char16_t *target, int32_t targetLength) ucol_greaterOrEqual() argument 522 ucol_equal( const UCollator *coll, const char16_t *source, int32_t sourceLength, const char16_t *target, int32_t targetLength) ucol_equal() argument 533 ucol_getUCAVersion(const UCollator* coll, UVersionInfo info) ucol_getUCAVersion() argument 552 ucol_getRules(const UCollator *coll, int32_t *length) ucol_getRules() argument 567 ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, char16_t *buffer, int32_t bufferLen) ucol_getRulesEx() argument 582 ucol_getLocale(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status) ucol_getLocale() argument 587 ucol_getLocaleByType(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status) ucol_getLocaleByType() argument 609 ucol_getTailoredSet(const UCollator *coll, UErrorCode *status) ucol_getTailoredSet() argument [all...] |
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
H A D | CollationMiscTest.java | 77 RuleBasedCollator coll; in TestComposeDecompose() 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() 257 coll in genericRulesStarterWithResult() 275 genericOrderingTestWithResult(Collator coll, String[] s, int result) genericOrderingTestWithResult() argument 565 genericOptionsSetter(RuleBasedCollator coll, String[] attrs, Object[] values) genericOptionsSetter() argument 608 genericOrderingTest(Collator coll, String[] s) genericOrderingTest() argument [all...] |
H A 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 in setCollShifted() 184 conformanceTest(RuleBasedCollator coll) conformanceTest() argument [all...] |
H A D | CollationAPITest.java | 655 RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance(new Locale("","","")); //root in TestRules() 659 String rules = coll.getRules(); in TestRules() 716 RuleBasedCollator coll; in TestGetTailoredSet() 722 coll = new RuleBasedCollator(rules[i]); in TestGetTailoredSet() 723 set = coll.getTailoredSet(); in TestGetTailoredSet() 1003 RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance(ULocale.ROOT); in TestVariableTopSetting() 1005 int oldVarTop = coll.getVariableTop(); in TestVariableTopSetting() 1010 coll.setVariableTop("A"); in TestVariableTopSetting() 1016 int newVarTop = coll.setVariableTop("$"); in TestVariableTopSetting() 1018 if(newVarTop != coll in TestVariableTopSetting() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/ |
H A D | CollationMiscTest.java | 80 RuleBasedCollator coll; in TestComposeDecompose() 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() 260 coll in genericRulesStarterWithResult() 278 genericOrderingTestWithResult(Collator coll, String[] s, int result) genericOrderingTestWithResult() argument 568 genericOptionsSetter(RuleBasedCollator coll, String[] attrs, Object[] values) genericOptionsSetter() argument 611 genericOrderingTest(Collator coll, String[] s) genericOrderingTest() argument [all...] |
H A 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 in setCollShifted() 187 conformanceTest(RuleBasedCollator coll) conformanceTest() argument [all...] |
H A D | CollationAPITest.java | 658 RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance(new Locale("","","")); //root in TestRules() 662 String rules = coll.getRules(); in TestRules() 719 RuleBasedCollator coll; in TestGetTailoredSet() 725 coll = new RuleBasedCollator(rules[i]); in TestGetTailoredSet() 726 set = coll.getTailoredSet(); in TestGetTailoredSet() 1006 RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance(ULocale.ROOT); in TestVariableTopSetting() 1008 int oldVarTop = coll.getVariableTop(); in TestVariableTopSetting() 1013 coll.setVariableTop("A"); in TestVariableTopSetting() 1019 int newVarTop = coll.setVariableTop("$"); in TestVariableTopSetting() 1021 if(newVarTop != coll in TestVariableTopSetting() [all...] |
/third_party/node/deps/icu-small/source/i18n/unicode/ |
H A D | ucol.h | 497 * @param coll collator 506 ucol_getContractions( const UCollator *coll, 514 * @param coll collator 523 ucol_getContractionsAndExpansions( const UCollator *coll, 531 * @param coll The UCollator to close. 538 ucol_close(UCollator *coll); 562 * @param coll The UCollator containing the comparison rules. 575 ucol_strcoll( const UCollator *coll, 586 * @param coll The UCollator containing the comparison rules. 601 const UCollator *coll, [all...] |
/third_party/icu/icu4c/source/i18n/unicode/ |
H A D | ucol.h | 487 * @param coll collator 496 ucol_getContractions( const UCollator *coll, 504 * @param coll collator 513 ucol_getContractionsAndExpansions( const UCollator *coll, 521 * @param coll The UCollator to close. 528 ucol_close(UCollator *coll); 552 * @param coll The UCollator containing the comparison rules. 565 ucol_strcoll( const UCollator *coll, 576 * @param coll The UCollator containing the comparison rules. 591 const UCollator *coll, [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/unicode/ |
H A D | ucol.h | 487 * @param coll collator 496 ucol_getContractions( const UCollator *coll, 504 * @param coll collator 513 ucol_getContractionsAndExpansions( const UCollator *coll, 521 * @param coll The UCollator to close. 528 ucol_close(UCollator *coll); 552 * @param coll The UCollator containing the comparison rules. 565 ucol_strcoll( const UCollator *coll, 576 * @param coll The UCollator containing the comparison rules. 591 const UCollator *coll, [all...] |
/third_party/icu/icu4c/source/test/perf/collperf2/ |
H A D | collperf2.cpp | 16 #include "unicode/coll.h" 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, cons argument 179 const UCollator *coll; global() member in StrcollUTF8 185 StrcollUTF8(const UCollator* coll, const CA_char* source, UBool useLen) StrcollUTF8() argument 239 const UCollator *coll; global() member in StrcollUTF8_2 245 StrcollUTF8_2(const UCollator* coll, const CA_char* source, const CA_char* target, UBool useLen) StrcollUTF8_2() argument 290 const UCollator *coll; global() member in GetSortKey 295 GetSortKey(const UCollator* coll, const CA_uchar* source, UBool useLen) GetSortKey() argument 345 const UCollator *coll; global() member in NextSortKeyPart 353 NextSortKeyPart(const UCollator* coll, const CA_uchar* source, int32_t bufSize, int32_t maxIteration ) NextSortKeyPart() argument 412 const UCollator *coll; global() member in NextSortKeyPartUTF8 420 NextSortKeyPartUTF8(const UCollator* coll, const CA_char* source, int32_t bufSize, int32_t maxIteration ) NextSortKeyPartUTF8() argument 479 const Collator *coll; global() member in CppCompare 485 CppCompare(const Collator* coll, const CA_uchar* source, UBool useLen) CppCompare() argument 538 const Collator *coll; global() member in CppCompare_2 544 CppCompare_2(const Collator* coll, const CA_uchar* source, const CA_uchar* target, UBool useLen) CppCompare_2() argument 589 const Collator *coll; global() member in CppCompareUTF8 595 CppCompareUTF8(const Collator* coll, const CA_char* source, UBool useLen) CppCompareUTF8() argument 659 const Collator *coll; global() member in CppCompareUTF8_2 665 CppCompareUTF8_2(const Collator* coll, const CA_char* source, const CA_char* target, UBool useLen) CppCompareUTF8_2() argument 716 const Collator *coll; global() member in CppGetCollationKey 721 CppGetCollationKey(const Collator* coll, const CA_uchar* source, UBool useLen) CppGetCollationKey() argument 752 const Collator& coll; global() member 771 CollPerfFunction(const Collator& coll, const UCollator *ucoll) CollPerfFunction() argument 778 const Collator& coll; global() member in CollPerfFunction 793 UniStrCollPerfFunction(const Collator& coll, const UCollator *ucoll, const CA_uchar* data16) UniStrCollPerfFunction() argument 819 UniStrSort(const Collator& coll, const UCollator *ucoll, const CA_uchar* data16) UniStrSort() argument 872 StringPieceCollPerfFunction(const Collator& coll, const UCollator *ucoll, const CA_char* data8) StringPieceCollPerfFunction() argument 892 StringPieceSort(const Collator& coll, const UCollator *ucoll, const CA_char* data8) StringPieceSort() argument 910 StringPieceSortCpp(const Collator& coll, const UCollator *ucoll, const CA_char* data8) StringPieceSortCpp() argument 934 StringPieceSortC(const Collator& coll, const UCollator *ucoll, const CA_char* data8) StringPieceSortC() argument 958 UniStrBinSearch(const Collator& coll, const UCollator *ucoll, const CA_uchar* data16) UniStrBinSearch() argument 981 StringPieceBinSearch(const Collator& coll, const UCollator *ucoll, const CA_char* data8) StringPieceBinSearch() argument 994 StringPieceBinSearchCpp(const Collator& coll, const UCollator *ucoll, const CA_char* data8) StringPieceBinSearchCpp() argument 1021 StringPieceBinSearchC(const Collator& coll, const UCollator *ucoll, const CA_char* data8) StringPieceBinSearchC() argument 1052 UCollator* coll; global() member in CollPerf2Test 1271 const Collator& coll; global() member [all...] |
/third_party/icu/icu4c/source/test/cintltst/ |
H A D | cmsccoll.c | 88 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 in BlackBirdTest() local 443 UCollator *coll = ucol_open("cs", &status); TestChMove() local 539 UCollator *coll = ucol_open("", &status); TestFCDProblem() local 579 UCollator *coll = NULL; TestComposeDecompose() local 697 UCollator *coll = ucol_openRules(rulez, 0, UCOL_OFF, UCOL_TERTIARY,NULL, &status); TestEmptyRule() local 708 UCollator *coll = ucol_open("", &status); TestUCARules() local 973 UCollator *coll; TestIncrementalNormalize() local 1241 UCollator *coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status); TestHangulTailoring() local 1279 UCollator *coll; TestCompressOverlap() local 1436 UCollator *coll; TestContraction() local 1579 UCollator *coll; TestExpansion() local 1701 UCollator *coll = ucol_open("", &status); TestBocsuCoverage() local 1717 UCollator *coll = ucol_open("", &status); TestVariableTopSetting() local 1828 UCollator *coll; TestMaxVariable() local 1940 UCollator *coll = ucol_open("en_US", &status); TestNonChars() local 2338 UCollator *coll = NULL; TestPrefixCompose() local 2614 UCollator *coll = ucol_open("", &status); Alexis2() local 2682 UCollator *coll = ucol_open("", &status); TestHebrewUCA() local 2719 UCollator *coll = ucol_open("", &status); TestPartialSortKeyTermination() local 2921 UCollator *coll = ucol_open("en", &status); TestJ2726() local 2936 UCollator *coll = ucol_openRules(r, 1, UCOL_DEFAULT, UCOL_DEFAULT, NULL, &status); NullRule() local 3045 UCollator* coll = ucol_open("root", &status); TestNumericCollation() local 3083 UCollator *coll = ucol_open("", &status); TestTibetanConformance() local 3326 UCollator *coll = NULL; TestBeforeTightening() local 3459 UCollator *coll = NULL; TestTailorNULL() local 3516 static UCollator *coll = NULL; TestJ5223() local 3584 UCollator *coll =NULL; TestVI5913() local 3769 UCollator *coll =NULL; TestTailor6179() local 3876 UCollator *coll =NULL; TestUCAPrecontext() local 4000 static UCollator *coll = NULL; TestOutOfBuffer5468() local 5841 UCollator *coll; TestNextSortKeyPartJaIdentical() local [all...] |
H A D | capitst.c | 45 static char* U_EXPORT2 ucol_sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer, uint32_t len) { 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_COUN in TestGetSetAttr() 181 doStrcoll(const UCollator* coll, const UChar* src, int32_t srcLen, const UChar* tgt, int32_t tgtLen, UCollationResult expected, const char *message) doStrcoll() argument 1527 UCollator *coll = NULL; TestGetLocale() local 1652 UCollator *coll = ucol_open("sh", &status); TestBounds() local 1806 doOverrunTest(UCollator *coll, const UChar *uString, int32_t strLen) doOverrunTest() argument 1838 UCollator *coll = ucol_open("root", &status); TestSortKeyBufferOverrun() local 1867 UCollator *coll = ucol_open(NULL, &error); TestAttribute() local 1981 UCollator *coll = NULL; TestGetTailoredSet() local 2023 UCollator *coll = ucol_open("en", &status); TestMergeSortKeys() local 2185 UCollator *coll = NULL, *fromNormalized = NULL; TestShortString() local 2338 UCollator *coll = NULL; TestGetContractionsAndUnsafes() local 2426 UCollator *coll = ucol_openRules(uRules, uRulesLen, UCOL_DEFAULT, UCOL_DEFAULT, NULL, &status); TestOpenBinary() local 2482 UCollator *coll = ucol_open("es@collation=pinyin", &status); TestDefault() local 2507 UCollator *coll = ucol_open(loc, &status); TestDefaultKeyword() local 2589 UCollator *coll; TestStrcollNull() local [all...] |
H A D | citertst.c | 79 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 423 UCollator *coll=NULL; TestPrevious() local 782 UCollator *coll ;/*= ucol_open("en_US", &status);*/ TestMaxExpansion() local 940 UCollator *coll; TestSmallBuffer() local 1047 UCollator *coll; TestDiscontiguos() local [all...] |
H A D | callcoll.c | 151 static char* U_EXPORT2 sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer, uint32_t *len) { 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 && doneCase == false) { in sortKeyToString() 172 } else if(ucol_getAttribute(coll, UCOL_CASE_LEVEL, &errorCode) == UCOL_OFF || doneCase == true || strength != UCOL_SECONDARY) { in sortKeyToString() 178 if(strength == UCOL_QUATERNARY && ucol_getAttribute(coll, UCOL_ALTERNATE_HANDLING, &errorCode) == UCOL_NON_IGNORABLE) { in sortKeyToString() 183 if(ucol_getStrength(coll) == UCOL_IDENTICAL) { in sortKeyToString() 223 UResourceBundle *loc = ures_open(U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "coll", locName, &status); in hasCollationElements() 236 static UCollationResult compareUsingPartials(UCollator *coll, const UChar source[], int32_t sLen, const UChar target[], int32_t tLen, int32_t pieceSize, UErrorCode *status) { in compareUsingPartials() argument 254 sSize = ucol_nextSortKeyPart(coll, &sIter, sState, sBuf, pieceSize, status); in compareUsingPartials() 255 tSize = ucol_nextSortKeyPart(coll, in compareUsingPartials() 600 genericOrderingTestWithResult(UCollator *coll, const char * const s[], uint32_t size, UCollationResult result) genericOrderingTestWithResult() argument 631 genericOrderingTest(UCollator *coll, const char * const s[], uint32_t size) genericOrderingTest() argument 637 UCollator *coll = ucol_open(locale, &status); genericLocaleStarter() local 654 UCollator *coll = ucol_open(locale, &status); genericLocaleStarterWithResult() local 676 UCollator *coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status); genericRulesStarterWithOptionsAndResult() local 697 UCollator *coll = ucol_open(locale, &status); genericLocaleStarterWithOptionsAndResult() local 724 UCollator *coll = NULL; genericRulesStarterWithResult() local 1200 UCollator* coll=0; TestInvalidRules() local 1283 UCollator *coll = ucol_open("es", &status); TestFCDCrash() local [all...] |
/third_party/icu/icu4c/source/test/intltest/ |
H A D | apicoll.cpp | 37 #include "unicode/coll.h" 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() 1303 coll.createCollationElementIterator(str); in TestMaxExpansion() 1324 size = coll.getMaxExpansion(order); in TestMaxExpansion() 1339 size = coll in TestMaxExpansion() 1407 Collator *coll = Collator::createInstance("en_US", error); TestDisplayName() local 1431 Collator *coll = Collator::createInstance(error); TestAttribute() local 1538 Collator *coll = Collator::createInstance(Locale::getRoot(), status); TestVariableTopSetting() local 1623 Collator *coll = Collator::createInstance("root", status); TestGetLocale() local 1787 Collator *coll = Collator::createInstance(Locale("sh"), status); TestBounds() local 1965 RuleBasedCollator *coll TestUClassID() local 2309 RuleBasedCollator *coll = new RuleBasedCollator(UnicodeString(buf, len), status); TestNULLCharTailoring() local [all...] |
H A 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 in setCollShifted() 173 testConformance(const Collator *coll) testConformance() argument [all...] |
H A D | thcoll.cpp | 19 #include "unicode/coll.h" 43 coll = Collator::createInstance(Locale("th", "TH", ""), status); in CollationThaiTest() 44 if (coll && U_SUCCESS(status)) { in CollationThaiTest() 45 //coll->setStrength(Collator::TERTIARY); 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 in TestNamesList() [all...] |
H A D | itercoll.cpp | 13 #include "unicode/coll.h" 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 = TestConstructors() local 598 RuleBasedCollator *coll = TestStrengthOrder() local [all...] |
H A D | ssearch.cpp | 18 #include "unicode/coll.h" 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; goodSuffixTest() local 1060 UCollator *coll; global() member in StringSetMonkey 1163 generateTestCase(UCollator *coll, Monkey *monkeys[], int32_t monkeyCount, UnicodeString &testCase, UnicodeString &alternate) generateTestCase() argument 1187 simpleSearch(UCollator *coll, const UnicodeString &target, int32_t offset, const UnicodeString &pattern, int32_t &matchStart, int32_t &matchEnd) simpleSearch() argument 1314 monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern, const char *name, const char *strength, uint32_t seed) monkeyTestCase() argument 1369 UCollator *coll = ucol_openFromShortString("S1", false, NULL, &status); monkeyTest() local [all...] |
H A D | colldata.cpp | 18 #include "unicode/coll.h" 42 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, contraction in CollData() [all...] |
H A D | collationtest.cpp | 18 #include "unicode/coll.h" 63 coll(NULL) {} in CollationTest() 66 delete coll; in ~CollationTest() 131 Collator *coll; member in CollationTest 166 RuleBasedCollator *rbc = dynamic_cast<RuleBasedCollator *>(coll); in TestMinMax() 299 coll->setAttribute(UCOL_STRENGTH, UCOL_IDENTICAL, errorCode); in TestIllegalUTF8() 315 UCollationResult order = coll->compareUTF8(fffd, illegal, errorCode); in TestIllegalUTF8() 903 LocalPointer<Collator> coll(Collator::createInstance(localeWithType, errorCode)); 908 Locale actual = coll->getLocale(ULOC_ACTUAL_LOCALE, errorCode); 916 RuleBasedCollator *rbc = dynamic_cast<RuleBasedCollator *>(coll [all...] |
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
H A 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() 40 if (coll == null) { in getInstance() 42 //Can't really change coll after it's been initialized in getInstance() 46 return (Collator) coll.clone(); in getInstance() 76 Object coll = delegate.createCollator(loc); in registerFactory() 77 return coll; in registerFactory()
|