/external/icu/icu4c/source/i18n/ |
D | collationsettings.cpp | 36 reorderCodes(NULL), reorderCodesLength(0), reorderCodesCapacity(0), in CollationSettings() 47 uprv_free(const_cast<int32_t *>(reorderCodes)); in ~CollationSettings() 57 if(reorderCodes[i] != other.reorderCodes[i]) { return FALSE; } in operator ==() 68 h ^= (reorderCodes[i] << i); in hashCode() 97 uprv_free(const_cast<int32_t *>(reorderCodes)); in aliasReordering() 101 reorderCodes = codes; in aliasReordering() 199 ownedCodes = const_cast<int32_t *>(reorderCodes); in setReorderArrays() 210 uprv_free(const_cast<int32_t *>(reorderCodes)); in setReorderArrays() 212 reorderCodes = ownedCodes; in setReorderArrays() 218 reorderTable = reinterpret_cast<const uint8_t *>(reorderCodes + reorderCodesCapacity); in setReorderArrays() [all …]
|
D | collationdatareader.cpp | 106 const int32_t *reorderCodes = NULL; in read() local 120 reorderCodes = reinterpret_cast<const int32_t *>(inBytes + offset); in read() 128 (reorderCodes[reorderCodesLength - reorderRangesLength - 1] & 0xffff0000) != 0) { in read() 134 reorderRanges = reinterpret_cast<const uint32_t *>(reorderCodes + reorderCodesLength); in read() 423 uprv_memcmp(reorderCodes, ts.reorderCodes, reorderCodesLength * 4) == 0) && in read() 446 settings->aliasReordering(*baseData, reorderCodes, reorderCodesLength, in read()
|
D | collationdatawriter.cpp | 163 const int32_t *reorderCodes = settings.reorderCodes; in write() local 169 data.makeReorderRanges(reorderCodes, reorderCodesLength, codesAndRanges, errorCode); in write() 172 codesAndRanges.insertElementAt(reorderCodes[i], i, errorCode); in write() 175 reorderCodes = codesAndRanges.getBuffer(); in write() 325 copyData(indexes, CollationDataReader::IX_REORDER_CODES_OFFSET, reorderCodes, dest); in write()
|
D | collationsettings.h | 112 reorderCodes(NULL), reorderCodesLength(0), reorderCodesCapacity(0), in CollationSettings() 249 const int32_t *reorderCodes; member
|
D | rulebasedcollator.cpp | 651 uprv_memcpy(dest, settings->reorderCodes, length * 4); in getReorderCodes() 656 RuleBasedCollator::setReorderCodes(const int32_t *reorderCodes, int32_t length, in setReorderCodes() argument 659 if(length < 0 || (reorderCodes == NULL && length > 0)) { in setReorderCodes() 663 if(length == 1 && reorderCodes[0] == UCOL_REORDER_CODE_NONE) { in setReorderCodes() 667 uprv_memcmp(reorderCodes, settings->reorderCodes, length * 4) == 0) { in setReorderCodes() 671 if(length == 1 && reorderCodes[0] == UCOL_REORDER_CODE_DEFAULT) { in setReorderCodes() 688 ownedSettings->setReordering(*data, reorderCodes, length, errorCode); in setReorderCodes()
|
D | collationruleparser.cpp | 693 UVector32 reorderCodes(errorCode); in parseReordering() local 707 reorderCodes.addElement(code, errorCode); in parseReordering() 711 settings->setReordering(*baseData, reorderCodes.getBuffer(), reorderCodes.size(), errorCode); in parseReordering()
|
D | ucol.cpp | 386 const int32_t* reorderCodes, in ucol_setReorderCodes() argument 393 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 | 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() 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 | 148 int[] reorderCodes; in read() local 160 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3); in read() 168 … (reorderCodes[reorderCodesLength - reorderRangesLength - 1] & 0xffff0000) != 0) { in read() 174 reorderCodes = new int[0]; in read() 468 Arrays.equals(reorderCodes, ts.reorderCodes) && in read() 485 settings.aliasReordering(baseData, reorderCodes, reorderCodesLength, reorderTable); in read()
|
D | CollationRuleParser.java | 709 ArrayList<Integer> reorderCodes = new ArrayList<Integer>(); in parseReordering() local 720 reorderCodes.add(code); in parseReordering() 723 if(reorderCodes.isEmpty()) { in parseReordering() 726 int[] codes = new int[reorderCodes.size()]; in parseReordering() 728 for(Integer code : reorderCodes) { codes[j++] = code; } in parseReordering()
|
D | CollationTailoring.java | 37 assert(baseSettings.readOnly().reorderCodes.length == 0); in CollationTailoring()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
D | CollationSettings.java | 113 if(!Arrays.equals(reorderCodes, o.reorderCodes)) { return false; } in equals() 121 h ^= reorderCodes.length; in hashCode() 122 for(int i = 0; i < reorderCodes.length; ++i) { in hashCode() 123 h ^= (reorderCodes[i] << i); in hashCode() 134 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 | 149 int[] reorderCodes; in read() local 161 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3); in read() 169 … (reorderCodes[reorderCodesLength - reorderRangesLength - 1] & 0xffff0000) != 0) { in read() 175 reorderCodes = new int[0]; in read() 469 Arrays.equals(reorderCodes, ts.reorderCodes) && in read() 486 settings.aliasReordering(baseData, reorderCodes, reorderCodesLength, reorderTable); in read()
|
D | CollationRuleParser.java | 713 ArrayList<Integer> reorderCodes = new ArrayList<Integer>(); in parseReordering() local 724 reorderCodes.add(code); in parseReordering() 727 if(reorderCodes.isEmpty()) { in parseReordering() 730 int[] codes = new int[reorderCodes.size()]; in parseReordering() 732 for(Integer code : reorderCodes) { codes[j++] = code; } in parseReordering()
|
D | CollationTailoring.java | 39 assert(baseSettings.readOnly().reorderCodes.length == 0); in CollationTailoring()
|
/external/icu/icu4c/source/test/intltest/ |
D | alphaindextst.cpp | 321 int32_t reorderCodes[20]; in APITest() local 323 … if (index->getCollator().getReorderCodes(reorderCodes, UPRV_LENGTHOF(reorderCodes), status) > 0) { in APITest() 559 int32_t reorderCodes[] = { USCRIPT_HAN }; in TestHaniFirst() local 560 coll->setReorderCodes(reorderCodes, UPRV_LENGTHOF(reorderCodes), status); in TestHaniFirst() 588 int32_t reorderCodes[] = { USCRIPT_HAN }; in TestPinyinFirst() local 589 coll->setReorderCodes(reorderCodes, UPRV_LENGTHOF(reorderCodes), status); in TestPinyinFirst()
|
/external/icu/icu4c/source/test/cintltst/ |
D | cmsccoll.c | 4536 int32_t reorderCodes[1] = {USCRIPT_GREEK}; in TestBeforeRuleWithScriptReordering() local 4582 ucol_setReorderCodes(myCollation, reorderCodes, 1, &status); in TestBeforeRuleWithScriptReordering() 4611 int32_t reorderCodes[1] = {USCRIPT_GREEK}; in TestNonLeadBytesDuringCollationReordering() local 4634 ucol_setReorderCodes(myCollation, reorderCodes, UPRV_LENGTHOF(reorderCodes), &status); in TestNonLeadBytesDuringCollationReordering() 4663 ucol_setReorderCodes(myCollation, reorderCodes, UPRV_LENGTHOF(reorderCodes), &status); in TestNonLeadBytesDuringCollationReordering() 4691 int32_t reorderCodes[3] = {USCRIPT_GREEK, USCRIPT_HAN, UCOL_REORDER_CODE_PUNCTUATION}; in TestReorderingAPI() local 4713 ucol_setReorderCodes(myCollation, reorderCodes, UPRV_LENGTHOF(reorderCodes), &status); in TestReorderingAPI() 4726 if (retrievedReorderCodesLength != UPRV_LENGTHOF(reorderCodes)) { in TestReorderingAPI() 4727 …ength was %d but should have been %d\n", retrievedReorderCodesLength, UPRV_LENGTHOF(reorderCodes)); in TestReorderingAPI() 4736 if (retrievedReorderCodesLength != UPRV_LENGTHOF(reorderCodes)) { in TestReorderingAPI() [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationMiscTest.java | 3132 int[] reorderCodes = {UScript.GREEK}; in TestBeforeRuleWithScriptReordering() local 3159 myCollation.setReorderCodes(reorderCodes); in TestBeforeRuleWithScriptReordering() 3187 int[] reorderCodes = {UScript.GREEK}; in TestNonLeadBytesDuringCollationReordering() local 3195 myCollation.setReorderCodes(reorderCodes); in TestNonLeadBytesDuringCollationReordering() 3213 myCollation.setReorderCodes(reorderCodes); in TestNonLeadBytesDuringCollationReordering() 3234 int[] reorderCodes = {UScript.GREEK, UScript.HAN, ReorderCodes.PUNCTUATION}; in TestReorderingAPI() local 3246 myCollation.setReorderCodes(reorderCodes); in TestReorderingAPI() 3249 if (!Arrays.equals(reorderCodes, retrievedReorderCodes)) { in TestReorderingAPI() 3270 myCollation.setReorderCodes(reorderCodes); in TestReorderingAPI() 3273 if (!Arrays.equals(reorderCodes, retrievedReorderCodes)) { in TestReorderingAPI() [all …]
|
D | CollationTest.java | 1286 UVector32 reorderCodes = new UVector32(); 1304 reorderCodes.addElement(code); 1308 int[] reorderCodesArray = new int[reorderCodes.size()]; 1309 System.arraycopy(reorderCodes.getBuffer(), 0, 1310 reorderCodesArray, 0, reorderCodes.size());
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationMiscTest.java | 3135 int[] reorderCodes = {UScript.GREEK}; in TestBeforeRuleWithScriptReordering() local 3162 myCollation.setReorderCodes(reorderCodes); in TestBeforeRuleWithScriptReordering() 3190 int[] reorderCodes = {UScript.GREEK}; in TestNonLeadBytesDuringCollationReordering() local 3198 myCollation.setReorderCodes(reorderCodes); in TestNonLeadBytesDuringCollationReordering() 3216 myCollation.setReorderCodes(reorderCodes); in TestNonLeadBytesDuringCollationReordering() 3237 int[] reorderCodes = {UScript.GREEK, UScript.HAN, ReorderCodes.PUNCTUATION}; in TestReorderingAPI() local 3249 myCollation.setReorderCodes(reorderCodes); in TestReorderingAPI() 3252 if (!Arrays.equals(reorderCodes, retrievedReorderCodes)) { in TestReorderingAPI() 3273 myCollation.setReorderCodes(reorderCodes); in TestReorderingAPI() 3276 if (!Arrays.equals(reorderCodes, retrievedReorderCodes)) { in TestReorderingAPI() [all …]
|
D | CollationTest.java | 1289 UVector32 reorderCodes = new UVector32(); 1307 reorderCodes.addElement(code); 1311 int[] reorderCodesArray = new int[reorderCodes.size()]; 1312 System.arraycopy(reorderCodes.getBuffer(), 0, 1313 reorderCodesArray, 0, reorderCodes.size());
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | RuleBasedCollator.java | 918 settings.readOnly().reorderCodes.length == 0 : in setReorderCodes() 919 Arrays.equals(order, settings.readOnly().reorderCodes)) { in setReorderCodes() 1392 return settings.readOnly().reorderCodes.clone(); in getReorderCodes()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | RuleBasedCollator.java | 895 settings.readOnly().reorderCodes.length == 0 : in setReorderCodes() 896 Arrays.equals(order, settings.readOnly().reorderCodes)) { in setReorderCodes() 1358 return settings.readOnly().reorderCodes.clone(); in getReorderCodes()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | tblcoll.h | 680 virtual void setReorderCodes(const int32_t* reorderCodes,
|
D | coll.h | 645 virtual void setReorderCodes(const int32_t* reorderCodes,
|