/external/icu/icu4c/source/i18n/ |
D | collationsettings.cpp | 34 reorderCodes(NULL), reorderCodesLength(0), reorderCodesCapacity(0), in CollationSettings() 45 uprv_free(const_cast<int32_t *>(reorderCodes)); in ~CollationSettings() 55 if(reorderCodes[i] != other.reorderCodes[i]) { return FALSE; } in operator ==() 66 h ^= (reorderCodes[i] << i); in hashCode() 95 uprv_free(const_cast<int32_t *>(reorderCodes)); in aliasReordering() 99 reorderCodes = codes; in aliasReordering() 197 ownedCodes = const_cast<int32_t *>(reorderCodes); in setReorderArrays() 208 uprv_free(const_cast<int32_t *>(reorderCodes)); in setReorderArrays() 210 reorderCodes = ownedCodes; in setReorderArrays() 216 reorderTable = reinterpret_cast<const uint8_t *>(reorderCodes + reorderCodesCapacity); in setReorderArrays() [all …]
|
D | collationdatareader.cpp | 104 const int32_t *reorderCodes = NULL; in read() local 118 reorderCodes = reinterpret_cast<const int32_t *>(inBytes + offset); in read() 126 (reorderCodes[reorderCodesLength - reorderRangesLength - 1] & 0xffff0000) != 0) { in read() 132 reorderRanges = reinterpret_cast<const uint32_t *>(reorderCodes + reorderCodesLength); in read() 420 uprv_memcmp(reorderCodes, ts.reorderCodes, reorderCodesLength * 4) == 0 && in read() 443 settings->aliasReordering(*baseData, reorderCodes, reorderCodesLength, in read()
|
D | collationdatawriter.cpp | 161 const int32_t *reorderCodes = settings.reorderCodes; in write() local 167 data.makeReorderRanges(reorderCodes, reorderCodesLength, codesAndRanges, errorCode); in write() 170 codesAndRanges.insertElementAt(reorderCodes[i], i, errorCode); in write() 173 reorderCodes = codesAndRanges.getBuffer(); in write() 323 copyData(indexes, CollationDataReader::IX_REORDER_CODES_OFFSET, reorderCodes, dest); in write()
|
D | collationsettings.h | 110 reorderCodes(NULL), reorderCodesLength(0), reorderCodesCapacity(0), in CollationSettings() 247 const int32_t *reorderCodes; member
|
D | rulebasedcollator.cpp | 649 uprv_memcpy(dest, settings->reorderCodes, length * 4); in getReorderCodes() 654 RuleBasedCollator::setReorderCodes(const int32_t *reorderCodes, int32_t length, in setReorderCodes() argument 657 if(length < 0 || (reorderCodes == NULL && length > 0)) { in setReorderCodes() 661 if(length == 1 && reorderCodes[0] == UCOL_REORDER_CODE_NONE) { in setReorderCodes() 665 uprv_memcmp(reorderCodes, settings->reorderCodes, length * 4) == 0) { in setReorderCodes() 669 if(length == 1 && reorderCodes[0] == UCOL_REORDER_CODE_DEFAULT) { in setReorderCodes() 686 ownedSettings->setReordering(*data, reorderCodes, length, errorCode); in setReorderCodes()
|
D | collationruleparser.cpp | 691 UVector32 reorderCodes(errorCode); in parseReordering() local 705 reorderCodes.addElement(code, errorCode); in parseReordering() 709 settings->setReordering(*baseData, reorderCodes.getBuffer(), reorderCodes.size(), errorCode); in parseReordering()
|
D | ucol.cpp | 383 const int32_t* reorderCodes, in ucol_setReorderCodes() argument 390 Collator::fromUCollator(coll)->setReorderCodes(reorderCodes, reorderCodesLength, *status); in ucol_setReorderCodes()
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationSettings.java | 109 if(!Arrays.equals(reorderCodes, o.reorderCodes)) { return false; } in equals() 117 h ^= reorderCodes.length; in hashCode() 118 for(int i = 0; i < reorderCodes.length; ++i) { in hashCode() 119 h ^= (reorderCodes[i] << i); in hashCode() 130 reorderCodes = EMPTY_INT_ARRAY; in resetReordering() 153 reorderCodes = codes; in aliasReordering() 244 reorderCodes = codes; in setReorderArrays() 268 reorderCodes = other.reorderCodes; in copyReorderingFrom() 473 public int[] reorderCodes = EMPTY_INT_ARRAY; field in CollationSettings
|
D | CollationDataReader.java | 146 int[] reorderCodes; in read() local 158 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3); in read() 166 … (reorderCodes[reorderCodesLength - reorderRangesLength - 1] & 0xffff0000) != 0) { in read() 172 reorderCodes = new int[0]; in read() 466 Arrays.equals(reorderCodes, ts.reorderCodes) && in read() 483 settings.aliasReordering(baseData, reorderCodes, reorderCodesLength, reorderTable); in read()
|
D | CollationRuleParser.java | 707 ArrayList<Integer> reorderCodes = new ArrayList<Integer>(); in parseReordering() local 718 reorderCodes.add(code); in parseReordering() 721 if(reorderCodes.isEmpty()) { in parseReordering() 724 int[] codes = new int[reorderCodes.size()]; in parseReordering() 726 for(Integer code : reorderCodes) { codes[j++] = code; } in parseReordering()
|
D | CollationTailoring.java | 35 assert(baseSettings.readOnly().reorderCodes.length == 0); in CollationTailoring()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
D | CollationSettings.java | 111 if(!Arrays.equals(reorderCodes, o.reorderCodes)) { return false; } in equals() 119 h ^= reorderCodes.length; in hashCode() 120 for(int i = 0; i < reorderCodes.length; ++i) { in hashCode() 121 h ^= (reorderCodes[i] << i); in hashCode() 132 reorderCodes = EMPTY_INT_ARRAY; in resetReordering() 155 reorderCodes = codes; in aliasReordering() 246 reorderCodes = codes; in setReorderArrays() 270 reorderCodes = other.reorderCodes; in copyReorderingFrom() 475 public int[] reorderCodes = EMPTY_INT_ARRAY; field in CollationSettings
|
D | CollationDataReader.java | 147 int[] reorderCodes; in read() local 159 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3); in read() 167 … (reorderCodes[reorderCodesLength - reorderRangesLength - 1] & 0xffff0000) != 0) { in read() 173 reorderCodes = new int[0]; in read() 467 Arrays.equals(reorderCodes, ts.reorderCodes) && in read() 484 settings.aliasReordering(baseData, reorderCodes, reorderCodesLength, reorderTable); in read()
|
D | CollationRuleParser.java | 711 ArrayList<Integer> reorderCodes = new ArrayList<Integer>(); in parseReordering() local 722 reorderCodes.add(code); in parseReordering() 725 if(reorderCodes.isEmpty()) { in parseReordering() 728 int[] codes = new int[reorderCodes.size()]; in parseReordering() 730 for(Integer code : reorderCodes) { codes[j++] = code; } in parseReordering()
|
D | CollationTailoring.java | 37 assert(baseSettings.readOnly().reorderCodes.length == 0); in CollationTailoring()
|
/external/icu/icu4c/source/test/intltest/ |
D | alphaindextst.cpp | 317 int32_t reorderCodes[20]; in APITest() local 319 … if (index->getCollator().getReorderCodes(reorderCodes, UPRV_LENGTHOF(reorderCodes), status) > 0) { in APITest() 555 int32_t reorderCodes[] = { USCRIPT_HAN }; in TestHaniFirst() local 556 coll->setReorderCodes(reorderCodes, UPRV_LENGTHOF(reorderCodes), status); in TestHaniFirst() 584 int32_t reorderCodes[] = { USCRIPT_HAN }; in TestPinyinFirst() local 585 coll->setReorderCodes(reorderCodes, UPRV_LENGTHOF(reorderCodes), status); in TestPinyinFirst()
|
/external/icu/icu4c/source/test/cintltst/ |
D | cmsccoll.c | 4540 int32_t reorderCodes[1] = {USCRIPT_GREEK}; in TestBeforeRuleWithScriptReordering() local 4586 ucol_setReorderCodes(myCollation, reorderCodes, 1, &status); in TestBeforeRuleWithScriptReordering() 4615 int32_t reorderCodes[1] = {USCRIPT_GREEK}; in TestNonLeadBytesDuringCollationReordering() local 4638 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status); in TestNonLeadBytesDuringCollationReordering() 4667 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status); in TestNonLeadBytesDuringCollationReordering() 4695 int32_t reorderCodes[3] = {USCRIPT_GREEK, USCRIPT_HAN, UCOL_REORDER_CODE_PUNCTUATION}; in TestReorderingAPI() local 4717 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status); in TestReorderingAPI() 4730 if (retrievedReorderCodesLength != LEN(reorderCodes)) { in TestReorderingAPI() 4731 …er codes length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(reorderCodes)); in TestReorderingAPI() 4740 if (retrievedReorderCodesLength != LEN(reorderCodes)) { in TestReorderingAPI() [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationMiscTest.java | 3054 int[] reorderCodes = {UScript.GREEK}; in TestBeforeRuleWithScriptReordering() local 3081 myCollation.setReorderCodes(reorderCodes); in TestBeforeRuleWithScriptReordering() 3108 int[] reorderCodes = {UScript.GREEK}; in TestNonLeadBytesDuringCollationReordering() local 3116 myCollation.setReorderCodes(reorderCodes); in TestNonLeadBytesDuringCollationReordering() 3134 myCollation.setReorderCodes(reorderCodes); in TestNonLeadBytesDuringCollationReordering() 3154 int[] reorderCodes = {UScript.GREEK, UScript.HAN, ReorderCodes.PUNCTUATION}; in TestReorderingAPI() local 3166 myCollation.setReorderCodes(reorderCodes); in TestReorderingAPI() 3169 if (!Arrays.equals(reorderCodes, retrievedReorderCodes)) { in TestReorderingAPI() 3190 myCollation.setReorderCodes(reorderCodes); in TestReorderingAPI() 3193 if (!Arrays.equals(reorderCodes, retrievedReorderCodes)) { in TestReorderingAPI() [all …]
|
D | CollationTest.java | 1299 UVector32 reorderCodes = new UVector32(); 1317 reorderCodes.addElement(code); 1321 int[] reorderCodesArray = new int[reorderCodes.size()]; 1322 System.arraycopy(reorderCodes.getBuffer(), 0, 1323 reorderCodesArray, 0, reorderCodes.size());
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationMiscTest.java | 3058 int[] reorderCodes = {UScript.GREEK}; in TestBeforeRuleWithScriptReordering() local 3085 myCollation.setReorderCodes(reorderCodes); in TestBeforeRuleWithScriptReordering() 3112 int[] reorderCodes = {UScript.GREEK}; in TestNonLeadBytesDuringCollationReordering() local 3120 myCollation.setReorderCodes(reorderCodes); in TestNonLeadBytesDuringCollationReordering() 3138 myCollation.setReorderCodes(reorderCodes); in TestNonLeadBytesDuringCollationReordering() 3158 int[] reorderCodes = {UScript.GREEK, UScript.HAN, ReorderCodes.PUNCTUATION}; in TestReorderingAPI() local 3170 myCollation.setReorderCodes(reorderCodes); in TestReorderingAPI() 3173 if (!Arrays.equals(reorderCodes, retrievedReorderCodes)) { in TestReorderingAPI() 3194 myCollation.setReorderCodes(reorderCodes); in TestReorderingAPI() 3197 if (!Arrays.equals(reorderCodes, retrievedReorderCodes)) { in TestReorderingAPI() [all …]
|
D | CollationTest.java | 1303 UVector32 reorderCodes = new UVector32(); 1321 reorderCodes.addElement(code); 1325 int[] reorderCodesArray = new int[reorderCodes.size()]; 1326 System.arraycopy(reorderCodes.getBuffer(), 0, 1327 reorderCodesArray, 0, reorderCodes.size());
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | RuleBasedCollator.java | 916 settings.readOnly().reorderCodes.length == 0 : in setReorderCodes() 917 Arrays.equals(order, settings.readOnly().reorderCodes)) { in setReorderCodes() 1389 return settings.readOnly().reorderCodes.clone(); in getReorderCodes()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | RuleBasedCollator.java | 893 settings.readOnly().reorderCodes.length == 0 : in setReorderCodes() 894 Arrays.equals(order, settings.readOnly().reorderCodes)) { in setReorderCodes() 1353 return settings.readOnly().reorderCodes.clone(); in getReorderCodes()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | tblcoll.h | 678 virtual void setReorderCodes(const int32_t* reorderCodes,
|
D | coll.h | 640 virtual void setReorderCodes(const int32_t* reorderCodes,
|