/external/icu/icu4c/source/i18n/ |
D | collationsettings.cpp | 28 CollationSettings::CollationSettings(const CollationSettings &other) in CollationSettings() function in CollationSettings 43 CollationSettings::~CollationSettings() { in ~CollationSettings() 50 CollationSettings::operator==(const CollationSettings &other) const { in operator ==() 61 CollationSettings::hashCode() const { in hashCode() 72 CollationSettings::resetReordering() { in resetReordering() 83 CollationSettings::aliasReordering(const CollationData &data, const int32_t *codes, int32_t length, in aliasReordering() 127 CollationSettings::setReordering(const CollationData &data, in setReordering() 189 CollationSettings::setReorderArrays(const int32_t *codes, int32_t codesLength, in setReorderArrays() 223 CollationSettings::copyReorderingFrom(const CollationSettings &other, UErrorCode &errorCode) { in copyReorderingFrom() 245 CollationSettings::reorderTableHasSplitBytes(const uint8_t table[256]) { in reorderTableHasSplitBytes() [all …]
|
D | collationcompare.cpp | 28 const CollationSettings &settings, in compareUpToQuaternary() 34 if((options & CollationSettings::ALTERNATE_MASK) == 0) { in compareUpToQuaternary() 111 if(CollationSettings::getStrength(options) >= UCOL_SECONDARY) { in compareUpToQuaternary() 112 if((options & CollationSettings::BACKWARD_SECONDARY) == 0) { in compareUpToQuaternary() 184 if((options & CollationSettings::CASE_LEVEL) != 0) { in compareUpToQuaternary() 185 int32_t strength = CollationSettings::getStrength(options); in compareUpToQuaternary() 240 if((options & CollationSettings::UPPER_FIRST) == 0) { in compareUpToQuaternary() 249 if(CollationSettings::getStrength(options) <= UCOL_SECONDARY) { return UCOL_EQUAL; } in compareUpToQuaternary() 251 uint32_t tertiaryMask = CollationSettings::getTertiaryMask(options); in compareUpToQuaternary() 276 if(CollationSettings::sortsTertiaryUpperCaseFirst(options)) { in compareUpToQuaternary() [all …]
|
D | collationsettings.h | 32 struct U_I18N_API CollationSettings : public SharedObject { struct 103 CollationSettings() in CollationSettings() function 113 CollationSettings(const CollationSettings &other); 114 virtual ~CollationSettings(); 116 UBool operator==(const CollationSettings &other) const; 118 inline UBool operator!=(const CollationSettings &other) const { 130 void copyReorderingFrom(const CollationSettings &other, UErrorCode &errorCode);
|
D | collationdatawriter.h | 22 struct CollationSettings; 30 static int32_t writeBase(const CollationData &data, const CollationSettings &settings, 35 static int32_t writeTailoring(const CollationTailoring &t, const CollationSettings &settings, 43 const CollationData &data, const CollationSettings &settings,
|
D | collationfastlatin.cpp | 26 CollationFastLatin::getOptions(const CollationData *data, const CollationSettings &settings, in getOptions() 34 if((settings.options & CollationSettings::ALTERNATE_MASK) == 0) { in getOptions() 98 if(digitsAreReordered || (settings.options & CollationSettings::NUMERIC) != 0) { in getOptions() 141 if(c <= 0x39 && c >= 0x30 && (options & CollationSettings::NUMERIC) != 0) { in compareUTF16() 172 if(c <= 0x39 && c >= 0x30 && (options & CollationSettings::NUMERIC) != 0) { in compareUTF16() 215 if(CollationSettings::getStrength(options) >= UCOL_SECONDARY) { in compareUTF16() 277 if((options & CollationSettings::BACKWARD_SECONDARY) != 0) { in compareUTF16() 290 if((options & CollationSettings::CASE_LEVEL) != 0) { in compareUTF16() 291 UBool strengthIsPrimary = CollationSettings::getStrength(options) == UCOL_PRIMARY; in compareUTF16() 329 if((options & CollationSettings::UPPER_FIRST) == 0) { in compareUTF16() [all …]
|
D | collationkeys.cpp | 226 const CollationSettings &settings, in writeSortKeyUpToQuaternary() 234 uint32_t levels = levelMasks[CollationSettings::getStrength(options)]; in writeSortKeyUpToQuaternary() 235 if((options & CollationSettings::CASE_LEVEL) != 0) { in writeSortKeyUpToQuaternary() 243 if((options & CollationSettings::ALTERNATE_MASK) == 0) { in writeSortKeyUpToQuaternary() 250 uint32_t tertiaryMask = CollationSettings::getTertiaryMask(options); in writeSortKeyUpToQuaternary() 356 ((options & CollationSettings::BACKWARD_SECONDARY) == 0 || in writeSortKeyUpToQuaternary() 361 } else if((options & CollationSettings::BACKWARD_SECONDARY) == 0) { in writeSortKeyUpToQuaternary() 424 if((CollationSettings::getStrength(options) == UCOL_PRIMARY) ? in writeSortKeyUpToQuaternary() 435 if((options & CollationSettings::UPPER_FIRST) == 0) { in writeSortKeyUpToQuaternary() 508 } else if((options & CollationSettings::UPPER_FIRST) == 0) { in writeSortKeyUpToQuaternary() [all …]
|
D | collationcompare.h | 24 struct CollationSettings; 29 const CollationSettings &settings,
|
D | collationroot.h | 23 struct CollationSettings; 34 static const CollationSettings *getSettings(UErrorCode &errorCode);
|
D | collationruleparser.h | 33 struct CollationSettings; 127 CollationSettings &outSettings, 182 CollationSettings *settings;
|
D | collationtailoring.h | 47 CollationTailoring(const CollationSettings *baseSettings); 63 const CollationSettings *settings; // reference-counted
|
D | collationruleparser.cpp | 70 CollationSettings &outSettings, in parse() 109 settings->setFlag(CollationSettings::BACKWARD_SECONDARY, in parse() 501 settings->setFlag(CollationSettings::BACKWARD_SECONDARY, in parseSetting() 540 value = CollationSettings::MAX_VAR_SPACE; in parseSetting() 542 value = CollationSettings::MAX_VAR_PUNCT; in parseSetting() 544 value = CollationSettings::MAX_VAR_SYMBOL; in parseSetting() 546 value = CollationSettings::MAX_VAR_CURRENCY; in parseSetting() 573 settings->setFlag(CollationSettings::CASE_LEVEL, value, 0, errorCode); in parseSetting() 580 settings->setFlag(CollationSettings::CHECK_FCD, value, 0, errorCode); in parseSetting() 587 settings->setFlag(CollationSettings::NUMERIC, value, 0, errorCode); in parseSetting()
|
D | rulebasedcollator.cpp | 403 const CollationSettings & 414 option = CollationSettings::BACKWARD_SECONDARY; in getAttribute() 421 option = CollationSettings::CASE_LEVEL; in getAttribute() 424 option = CollationSettings::CHECK_FCD; in getAttribute() 432 option = CollationSettings::NUMERIC; in getAttribute() 450 const CollationSettings &defaultSettings = getDefaultSettings(); in setAttribute() 457 CollationSettings *ownedSettings = SharedObject::copyOnWrite(settings); in setAttribute() 465 ownedSettings->setFlag(CollationSettings::BACKWARD_SECONDARY, value, in setAttribute() 475 ownedSettings->setFlag(CollationSettings::CASE_LEVEL, value, in setAttribute() 479 ownedSettings->setFlag(CollationSettings::CHECK_FCD, value, in setAttribute() [all …]
|
D | collationtailoring.cpp | 33 CollationTailoring::CollationTailoring(const CollationSettings *baseSettings) in CollationTailoring() 45 settings = new CollationSettings(); in CollationTailoring()
|
D | collationdatawriter.cpp | 76 CollationDataWriter::writeBase(const CollationData &data, const CollationSettings &settings, in writeBase() 87 CollationDataWriter::writeTailoring(const CollationTailoring &t, const CollationSettings &settings, in writeTailoring() 98 const CollationData &data, const CollationSettings &settings, in write() 164 CollationSettings::reorderTableHasSplitBytes(settings.reorderTable)) { in write()
|
D | collationkeys.h | 28 struct CollationSettings; 110 const CollationSettings &settings,
|
D | collationfastlatin.h | 22 struct CollationSettings; 208 static int32_t getOptions(const CollationData *data, const CollationSettings &settings,
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | RuleBasedCollator.java | 31 import com.ibm.icu.impl.coll.CollationSettings; 371 private final CollationSettings getOwnedSettings() { in getOwnedSettings() 375 private final CollationSettings getDefaultSettings() { in getDefaultSettings() 435 CollationSettings ownedSettings = getOwnedSettings(); in setUpperCaseFirst() 436 ownedSettings.setCaseFirst(upperfirst ? CollationSettings.CASE_FIRST_AND_UPPER_MASK : 0); in setUpperCaseFirst() 457 CollationSettings ownedSettings = getOwnedSettings(); in setLowerCaseFirst() 458 ownedSettings.setCaseFirst(lowerfirst ? CollationSettings.CASE_FIRST : 0); in setLowerCaseFirst() 474 CollationSettings defaultSettings = getDefaultSettings(); in setCaseFirstDefault() 476 CollationSettings ownedSettings = getOwnedSettings(); in setCaseFirstDefault() 491 CollationSettings defaultSettings = getDefaultSettings(); in setAlternateHandlingDefault() [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationCompare.java | 18 CollationSettings settings) { in compareUpToQuaternary() 21 if ((options & CollationSettings.ALTERNATE_MASK) == 0) { in compareUpToQuaternary() 96 if (CollationSettings.getStrength(options) >= Collator.SECONDARY) { in compareUpToQuaternary() 97 if ((options & CollationSettings.BACKWARD_SECONDARY) == 0) { in compareUpToQuaternary() 173 if ((options & CollationSettings.CASE_LEVEL) != 0) { in compareUpToQuaternary() 174 int strength = CollationSettings.getStrength(options); in compareUpToQuaternary() 229 if ((options & CollationSettings.UPPER_FIRST) == 0) { in compareUpToQuaternary() 240 if (CollationSettings.getStrength(options) <= Collator.SECONDARY) { in compareUpToQuaternary() 244 int tertiaryMask = CollationSettings.getTertiaryMask(options); in compareUpToQuaternary() 267 if (CollationSettings.sortsTertiaryUpperCaseFirst(options)) { in compareUpToQuaternary() [all …]
|
D | CollationSettings.java | 22 public final class CollationSettings extends SharedObject { class 91 CollationSettings() {} in CollationSettings() method in CollationSettings 94 public CollationSettings clone() { in clone() 95 CollationSettings newSettings = (CollationSettings)super.clone(); in clone() 106 CollationSettings o = (CollationSettings)other; in equals() 260 public void copyReorderingFrom(CollationSettings other) { in copyReorderingFrom()
|
D | CollationTailoring.java | 32 CollationTailoring(SharedObject.Reference<CollationSettings> baseSettings) { in CollationTailoring() 39 settings = new SharedObject.Reference<CollationSettings>(new CollationSettings()); in CollationTailoring() 77 public SharedObject.Reference<CollationSettings> settings; // reference-counted
|
D | CollationKeys.java | 329 CollationSettings settings, SortKeyByteSink sink, int minLevel, LevelCallback callback, in writeSortKeyUpToQuaternary() 334 int levels = levelMasks[CollationSettings.getStrength(options)]; in writeSortKeyUpToQuaternary() 335 if ((options & CollationSettings.CASE_LEVEL) != 0) { in writeSortKeyUpToQuaternary() 345 if ((options & CollationSettings.ALTERNATE_MASK) == 0) { in writeSortKeyUpToQuaternary() 352 int tertiaryMask = CollationSettings.getTertiaryMask(options); in writeSortKeyUpToQuaternary() 464 ((options & CollationSettings.BACKWARD_SECONDARY) == 0 || in writeSortKeyUpToQuaternary() 469 } else if ((options & CollationSettings.BACKWARD_SECONDARY) == 0) { in writeSortKeyUpToQuaternary() 528 if ((CollationSettings.getStrength(options) == Collator.PRIMARY) ? p == 0 in writeSortKeyUpToQuaternary() 539 if ((options & CollationSettings.UPPER_FIRST) == 0) { in writeSortKeyUpToQuaternary() 616 } else if ((options & CollationSettings.UPPER_FIRST) == 0) { in writeSortKeyUpToQuaternary() [all …]
|
D | CollationFastLatin.java | 200 public static int getOptions(CollationData data, CollationSettings settings, in getOptions() 209 if((settings.options & CollationSettings.ALTERNATE_MASK) == 0) { in getOptions() 273 if(digitsAreReordered || (settings.options & CollationSettings.NUMERIC) != 0) { in getOptions() 310 if(c <= 0x39 && c >= 0x30 && (options & CollationSettings.NUMERIC) != 0) { in compareUTF16() 346 if(c <= 0x39 && c >= 0x30 && (options & CollationSettings.NUMERIC) != 0) { in compareUTF16() 394 if(CollationSettings.getStrength(options) >= Collator.SECONDARY) { in compareUTF16() 464 if((options & CollationSettings.BACKWARD_SECONDARY) != 0) { in compareUTF16() 477 if((options & CollationSettings.CASE_LEVEL) != 0) { in compareUTF16() 478 boolean strengthIsPrimary = CollationSettings.getStrength(options) == Collator.PRIMARY; in compareUTF16() 526 if((options & CollationSettings.UPPER_FIRST) == 0) { in compareUTF16() [all …]
|
D | CollationRuleParser.java | 108 void parse(String ruleString, CollationSettings outSettings) throws ParseException { in parse() 149 settings.setFlag(CollationSettings.BACKWARD_SECONDARY, true); in parse() 537 settings.setFlag(CollationSettings.BACKWARD_SECONDARY, true); in parseSetting() 577 value = CollationSettings.MAX_VAR_SPACE; in parseSetting() 579 value = CollationSettings.MAX_VAR_PUNCT; in parseSetting() 581 value = CollationSettings.MAX_VAR_SYMBOL; in parseSetting() 583 value = CollationSettings.MAX_VAR_CURRENCY; in parseSetting() 598 value = CollationSettings.CASE_FIRST; // UCOL_LOWER_FIRST in parseSetting() 600 value = CollationSettings.CASE_FIRST_AND_UPPER_MASK; // UCOL_UPPER_FIRST in parseSetting() 610 settings.setFlag(CollationSettings.CASE_LEVEL, value > 0); in parseSetting() [all …]
|
D | CollationRoot.java | 38 static final CollationSettings getSettings() { in getSettings()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | tblcoll.h | 76 struct CollationSettings; 834 const CollationSettings &getDefaultSettings() const; 859 void setFastLatinOptions(CollationSettings &ownedSettings) const; 862 const CollationSettings *settings; // reference-counted
|