HomeSort by relevance Sort by last modified time
    Searched refs:reorderCodes (Results 1 - 25 of 32) sorted by null

1 2

  /external/icu/icu4c/source/i18n/
collationsettings.cpp 34 reorderCodes(NULL), reorderCodesLength(0), reorderCodesCapacity(0),
45 uprv_free(const_cast<int32_t *>(reorderCodes));
55 if(reorderCodes[i] != other.reorderCodes[i]) { return FALSE; }
66 h ^= (reorderCodes[i] << i);
75 // Keep the memory via reorderCodes and its capacity.
95 uprv_free(const_cast<int32_t *>(reorderCodes));
99 reorderCodes = codes;
197 ownedCodes = const_cast<int32_t *>(reorderCodes);
208 uprv_free(const_cast<int32_t *>(reorderCodes));
    [all...]
collationdatareader.cpp 104 const int32_t *reorderCodes = NULL;
118 reorderCodes = reinterpret_cast<const int32_t *>(inBytes + offset);
121 // The reorderRanges (if any) are the trailing reorderCodes entries.
126 (reorderCodes[reorderCodesLength - reorderRangesLength - 1] & 0xffff0000) != 0) {
132 reorderRanges = reinterpret_cast<const uint32_t *>(reorderCodes + reorderCodesLength);
420 uprv_memcmp(reorderCodes, ts.reorderCodes, reorderCodesLength * 4) == 0 &&
443 settings->aliasReordering(*baseData, reorderCodes, reorderCodesLength,
collationdatawriter.cpp 161 const int32_t *reorderCodes = settings.reorderCodes;
167 data.makeReorderRanges(reorderCodes, reorderCodesLength, codesAndRanges, errorCode);
170 codesAndRanges.insertElementAt(reorderCodes[i], i, errorCode);
173 reorderCodes = codesAndRanges.getBuffer();
323 copyData(indexes, CollationDataReader::IX_REORDER_CODES_OFFSET, reorderCodes, dest);
collationsettings.h 110 reorderCodes(NULL), reorderCodesLength(0), reorderCodesCapacity(0),
247 const int32_t *reorderCodes;
251 * Capacity of reorderCodes.
253 * Otherwise, this object owns the memory via the reorderCodes pointer;
rulebasedcollator.cpp 649 uprv_memcpy(dest, settings->reorderCodes, length * 4);
654 RuleBasedCollator::setReorderCodes(const int32_t *reorderCodes, int32_t length,
657 if(length < 0 || (reorderCodes == NULL && length > 0)) {
661 if(length == 1 && reorderCodes[0] == UCOL_REORDER_CODE_NONE) {
665 uprv_memcmp(reorderCodes, settings->reorderCodes, length * 4) == 0) {
669 if(length == 1 && reorderCodes[0] == UCOL_REORDER_CODE_DEFAULT) {
686 ownedSettings->setReordering(*data, reorderCodes, length, errorCode);
    [all...]
collationruleparser.cpp 691 UVector32 reorderCodes(errorCode);
705 reorderCodes.addElement(code, errorCode);
709 settings->setReordering(*baseData, reorderCodes.getBuffer(), reorderCodes.size(), errorCode);
ucol.cpp 383 const int32_t* reorderCodes,
390 Collator::fromUCollator(coll)->setReorderCodes(reorderCodes, reorderCodesLength, *status);
  /external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
CollationSettings.java 98 // Note: The reorderTable, reorderRanges, and reorderCodes need not be cloned
111 if(!Arrays.equals(reorderCodes, o.reorderCodes)) { return false; }
119 h ^= reorderCodes.length;
120 for(int i = 0; i < reorderCodes.length; ++i) {
121 h ^= (reorderCodes[i] << i);
132 reorderCodes = EMPTY_INT_ARRAY;
155 reorderCodes = codes;
181 if(codes.length == 0 || (codes.length == 1 && codes[0] == Collator.ReorderCodes.NONE)) {
240 // Very different from C++. See the comments after the reorderCodes declaration
    [all...]
CollationDataReader.java 60 /** Byte offset to int reorderCodes[]. */
147 int[] reorderCodes;
159 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3);
161 // The reorderRanges (if any) are the trailing reorderCodes entries.
167 (reorderCodes[reorderCodesLength - reorderRangesLength - 1] & 0xffff0000) != 0) {
173 reorderCodes = new int[0];
467 Arrays.equals(reorderCodes, ts.reorderCodes) &&
478 Collator.ReorderCodes.FIRST + settings.getMaxVariable());
484 settings.aliasReordering(baseData, reorderCodes, reorderCodesLength, reorderTable)
    [all...]
CollationTailoring.java 37 assert(baseSettings.readOnly().reorderCodes.length == 0);
CollationRuleParser.java 592 Collator.ReorderCodes.FIRST + value);
711 ArrayList<Integer> reorderCodes = new ArrayList<Integer>();
722 reorderCodes.add(code);
725 if(reorderCodes.isEmpty()) {
728 int[] codes = new int[reorderCodes.size()];
730 for(Integer code : reorderCodes) { codes[j++] = code; }
747 return Collator.ReorderCodes.FIRST + i;
759 return Collator.ReorderCodes.OTHERS; // same as Zzzz = USCRIPT_UNKNOWN
    [all...]
  /external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
CollationSettings.java 96 // Note: The reorderTable, reorderRanges, and reorderCodes need not be cloned
109 if(!Arrays.equals(reorderCodes, o.reorderCodes)) { return false; }
117 h ^= reorderCodes.length;
118 for(int i = 0; i < reorderCodes.length; ++i) {
119 h ^= (reorderCodes[i] << i);
130 reorderCodes = EMPTY_INT_ARRAY;
153 reorderCodes = codes;
179 if(codes.length == 0 || (codes.length == 1 && codes[0] == Collator.ReorderCodes.NONE)) {
238 // Very different from C++. See the comments after the reorderCodes declaration
    [all...]
CollationDataReader.java 59 /** Byte offset to int reorderCodes[]. */
146 int[] reorderCodes;
158 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3);
160 // The reorderRanges (if any) are the trailing reorderCodes entries.
166 (reorderCodes[reorderCodesLength - reorderRangesLength - 1] & 0xffff0000) != 0) {
172 reorderCodes = new int[0];
466 Arrays.equals(reorderCodes, ts.reorderCodes) &&
477 Collator.ReorderCodes.FIRST + settings.getMaxVariable());
483 settings.aliasReordering(baseData, reorderCodes, reorderCodesLength, reorderTable)
    [all...]
CollationTailoring.java 35 assert(baseSettings.readOnly().reorderCodes.length == 0);
CollationRuleParser.java 588 Collator.ReorderCodes.FIRST + value);
707 ArrayList<Integer> reorderCodes = new ArrayList<Integer>();
718 reorderCodes.add(code);
721 if(reorderCodes.isEmpty()) {
724 int[] codes = new int[reorderCodes.size()];
726 for(Integer code : reorderCodes) { codes[j++] = code; }
743 return Collator.ReorderCodes.FIRST + i;
755 return Collator.ReorderCodes.OTHERS; // same as Zzzz = USCRIPT_UNKNOWN
    [all...]
  /external/icu/icu4c/source/test/intltest/
alphaindextst.cpp 317 int32_t reorderCodes[20];
319 if (index->getCollator().getReorderCodes(reorderCodes, UPRV_LENGTHOF(reorderCodes), status) > 0) {
555 int32_t reorderCodes[] = { USCRIPT_HAN };
556 coll->setReorderCodes(reorderCodes, UPRV_LENGTHOF(reorderCodes), status);
584 int32_t reorderCodes[] = { USCRIPT_HAN };
585 coll->setReorderCodes(reorderCodes, UPRV_LENGTHOF(reorderCodes), status);
  /external/icu/icu4c/source/test/cintltst/
cmsccoll.c     [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
CollationMiscTest.java 29 import android.icu.text.Collator.ReorderCodes;
    [all...]
CollationTest.java 38 import android.icu.text.Collator.ReorderCodes;
    [all...]
  /external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
CollationMiscTest.java 28 import com.ibm.icu.text.Collator.ReorderCodes;
    [all...]
  /external/icu/icu4c/source/i18n/unicode/
coll.h 629 * @param reorderCodes An array of script codes in the new order. This can be NULL if the
631 * @param reorderCodesLength The length of reorderCodes.
640 virtual void setReorderCodes(const int32_t* reorderCodes,
    [all...]
tblcoll.h 669 * @param reorderCodes An array of script codes in the new order. This can be NULL if the
671 * @param reorderCodesLength The length of reorderCodes.
678 virtual void setReorderCodes(const int32_t* reorderCodes,
    [all...]
ucol.h 732 * @param reorderCodes An array of script codes in the new order. This can be NULL if the
734 * @param reorderCodesLength The length of reorderCodes.
745 const int32_t* reorderCodes,
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/text/
RuleBasedCollator.java 700 * @param group one of Collator.ReorderCodes.SPACE, Collator.ReorderCodes.PUNCTUATION,
701 * Collator.ReorderCodes.SYMBOL, Collator.ReorderCodes.CURRENCY;
702 * or Collator.ReorderCodes.DEFAULT to restore the default max variable group
710 if(group == Collator.ReorderCodes.DEFAULT) {
712 } else if(Collator.ReorderCodes.FIRST <= group && group <= Collator.ReorderCodes.CURRENCY) {
713 value = group - Collator.ReorderCodes.FIRST;
729 if(group == Collator.ReorderCodes.DEFAULT)
    [all...]
  /external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
RuleBasedCollator.java 721 * @param group one of Collator.ReorderCodes.SPACE, Collator.ReorderCodes.PUNCTUATION,
722 * Collator.ReorderCodes.SYMBOL, Collator.ReorderCodes.CURRENCY;
723 * or Collator.ReorderCodes.DEFAULT to restore the default max variable group
732 if(group == Collator.ReorderCodes.DEFAULT) {
734 } else if(Collator.ReorderCodes.FIRST <= group && group <= Collator.ReorderCodes.CURRENCY) {
735 value = group - Collator.ReorderCodes.FIRST;
751 if(group == Collator.ReorderCodes.DEFAULT)
    [all...]

Completed in 722 milliseconds

1 2