Home
last modified time | relevance | path

Searched refs:reorderCodes (Results 1 – 21 of 21) sorted by relevance

/external/icu/icu4c/source/i18n/
Dcollationsettings.cpp34 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 …]
Dcollationdatareader.cpp103 const int32_t *reorderCodes = NULL; in read() local
117 reorderCodes = reinterpret_cast<const int32_t *>(inBytes + offset); in read()
125 (reorderCodes[reorderCodesLength - reorderRangesLength - 1] & 0xffff0000) != 0) { in read()
131 reorderRanges = reinterpret_cast<const uint32_t *>(reorderCodes + reorderCodesLength); in read()
409 uprv_memcmp(reorderCodes, ts.reorderCodes, reorderCodesLength * 4) == 0 && in read()
432 settings->aliasReordering(*baseData, reorderCodes, reorderCodesLength, in read()
Dcollationdatawriter.cpp161 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()
Dcollationsettings.h110 reorderCodes(NULL), reorderCodesLength(0), reorderCodesCapacity(0), in CollationSettings()
247 const int32_t *reorderCodes; member
Drulebasedcollator.cpp649 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()
Dcollationruleparser.cpp691 UVector32 reorderCodes(errorCode); in parseReordering() local
705 reorderCodes.addElement(code, errorCode); in parseReordering()
709 settings->setReordering(*baseData, reorderCodes.getBuffer(), reorderCodes.size(), errorCode); in parseReordering()
Ducol.cpp383 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/
DCollationSettings.java109 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
DCollationDataReader.java146 int[] reorderCodes; in read() local
158 reorderCodes = new int[reorderCodesLength]; in read()
160 reorderCodes[i] = inBytes.getInt(); in read()
170 … (reorderCodes[reorderCodesLength - reorderRangesLength - 1] & 0xffff0000) != 0) { in read()
176 reorderCodes = new int[0]; in read()
486 Arrays.equals(reorderCodes, ts.reorderCodes) && in read()
503 settings.aliasReordering(baseData, reorderCodes, reorderCodesLength, reorderTable); in read()
DCollationRuleParser.java707 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()
DCollationTailoring.java34 assert(baseSettings.readOnly().reorderCodes.length == 0); in CollationTailoring()
/external/icu/icu4c/source/test/intltest/
Dalphaindextst.cpp317 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()
Dcollationtest.cpp1205 UVector32 reorderCodes(errorCode); in parseAndSetReorderCodes() local
1223 reorderCodes.addElement(code, errorCode); in parseAndSetReorderCodes()
1227 coll->setReorderCodes(reorderCodes.getBuffer(), reorderCodes.size(), errorCode); in parseAndSetReorderCodes()
/external/icu/icu4c/source/test/cintltst/
Dcmsccoll.c4540 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/
DCollationMiscTest.java3054 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 …]
DCollationTest.java1299 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/icu4j/main/classes/collate/src/com/ibm/icu/text/
DRuleBasedCollator.java932 settings.readOnly().reorderCodes.length == 0 : in setReorderCodes()
933 Arrays.equals(order, settings.readOnly().reorderCodes)) { in setReorderCodes()
1408 return settings.readOnly().reorderCodes.clone(); in getReorderCodes()
/external/icu/icu4c/source/i18n/unicode/
Dtblcoll.h678 virtual void setReorderCodes(const int32_t* reorderCodes,
Dcoll.h640 virtual void setReorderCodes(const int32_t* reorderCodes,
Ducol.h745 const int32_t* reorderCodes,
/external/icu/icu4c/source/tools/genrb/
Dparse.cpp1075 *t->data, t->settings->reorderCodes, t->settings->reorderCodesLength); in addCollation()