/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/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 …]
|
/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 …]
|
/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/libandroidicu/include/unicode/ |
D | ucol.h | 496 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 …]
|
/external/icu/libicu/cts_headers/unicode/ |
D | ucol.h | 496 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 …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | ucol.h | 496 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 …]
|
/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/rust/crates/tokio-stream/tests/ |
D | stream_collect.rs | 21 let coll: Vec<u32> = stream::empty().collect().await; in empty_vec() localVariable 22 assert!(coll.is_empty()); in empty_vec() 27 let coll: Box<[u32]> = stream::empty().collect().await; in empty_box_slice() localVariable 28 assert!(coll.is_empty()); in empty_box_slice() 33 let coll: String = stream::empty::<&str>().collect().await; in empty_string() localVariable 34 assert!(coll.is_empty()); in empty_string() 39 let coll: Result<Vec<u32>, &str> = stream::empty().collect().await; in empty_result() localVariable 40 assert_eq!(Ok(vec![]), coll); in empty_result() 60 let coll = assert_ready!(fut.poll()); in collect_vec_items() localVariable 61 assert_eq!(vec![1, 2], coll); in collect_vec_items() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/introspect/ |
D | POJOPropertiesCollectorTest.java | 244 POJOPropertiesCollector coll = collector(MAPPER, in testSimple() local 246 Map<String, POJOPropertyBuilder> props = coll.getPropertyMap(); in testSimple() 258 POJOPropertiesCollector coll = collector(MAPPER, in testSimpleFieldVisibility() local 260 Map<String, POJOPropertyBuilder> props = coll.getPropertyMap(); in testSimpleFieldVisibility() 271 POJOPropertiesCollector coll = collector(MAPPER, in testSimpleGetterVisibility() local 273 Map<String, POJOPropertyBuilder> props = coll.getPropertyMap(); in testSimpleGetterVisibility() 286 POJOPropertiesCollector coll = collector(MAPPER, in testEmpty() local 288 Map<String, POJOPropertyBuilder> props = coll.getPropertyMap(); in testEmpty() 297 POJOPropertiesCollector coll = collector(MAPPER, in testPartialIgnore() local 299 Map<String, POJOPropertyBuilder> props = coll.getPropertyMap(); in testPartialIgnore() [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 …]
|
/external/tensorflow/tensorflow/compiler/xla/service/spmd/ |
D | schedule_aware_all_gather_cse.cc | 30 auto coll = DynCast<HloCollectiveInstruction>(hlo); in MayConsiderAsAllGather() local 31 if (!coll) { in MayConsiderAsAllGather() 34 if (coll->constrain_layout()) { in MayConsiderAsAllGather() 37 if (for_replicas == coll->channel_id().has_value()) { in MayConsiderAsAllGather() 40 if (coll->opcode() == HloOpcode::kAllGather) { in MayConsiderAsAllGather() 41 return coll; in MayConsiderAsAllGather() 44 if (coll->opcode() == HloOpcode::kAllReduce && coll->shape().IsArray()) { in MayConsiderAsAllGather() 45 auto operand = coll->operand(0); in MayConsiderAsAllGather() 48 ? coll in MayConsiderAsAllGather()
|
/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/llvm-project/lldb/source/Utility/ |
D | VMRange.cpp | 24 bool VMRange::ContainsValue(const VMRange::collection &coll, in ContainsValue() argument 26 return llvm::find_if(coll, [&](const VMRange &r) { in ContainsValue() 28 }) != coll.end(); in ContainsValue() 31 bool VMRange::ContainsRange(const VMRange::collection &coll, in ContainsRange() argument 33 return llvm::find_if(coll, [&](const VMRange &r) { in ContainsRange() 35 }) != coll.end(); in ContainsRange()
|