Home
last modified time | relevance | path

Searched refs:CollationSettings (Results 1 – 25 of 44) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Dcollationsettings.cpp30 CollationSettings::CollationSettings(const CollationSettings &other) in CollationSettings() function in CollationSettings
45 CollationSettings::~CollationSettings() { in ~CollationSettings()
52 CollationSettings::operator==(const CollationSettings &other) const { in operator ==()
63 CollationSettings::hashCode() const { in hashCode()
74 CollationSettings::resetReordering() { in resetReordering()
85 CollationSettings::aliasReordering(const CollationData &data, const int32_t *codes, int32_t length, in aliasReordering()
129 CollationSettings::setReordering(const CollationData &data, in setReordering()
191 CollationSettings::setReorderArrays(const int32_t *codes, int32_t codesLength, in setReorderArrays()
225 CollationSettings::copyReorderingFrom(const CollationSettings &other, UErrorCode &errorCode) { in copyReorderingFrom()
247 CollationSettings::reorderTableHasSplitBytes(const uint8_t table[256]) { in reorderTableHasSplitBytes()
[all …]
Dcollationcompare.cpp30 const CollationSettings &settings, in compareUpToQuaternary()
36 if((options & CollationSettings::ALTERNATE_MASK) == 0) { in compareUpToQuaternary()
112 if(CollationSettings::getStrength(options) >= UCOL_SECONDARY) { in compareUpToQuaternary()
113 if((options & CollationSettings::BACKWARD_SECONDARY) == 0) { in compareUpToQuaternary()
185 if((options & CollationSettings::CASE_LEVEL) != 0) { in compareUpToQuaternary()
186 int32_t strength = CollationSettings::getStrength(options); in compareUpToQuaternary()
241 if((options & CollationSettings::UPPER_FIRST) == 0) { in compareUpToQuaternary()
250 if(CollationSettings::getStrength(options) <= UCOL_SECONDARY) { return UCOL_EQUAL; } in compareUpToQuaternary()
252 uint32_t tertiaryMask = CollationSettings::getTertiaryMask(options); in compareUpToQuaternary()
277 if(CollationSettings::sortsTertiaryUpperCaseFirst(options)) { in compareUpToQuaternary()
[all …]
Dcollationsettings.h34 struct U_I18N_API CollationSettings : public SharedObject { struct
105 CollationSettings() in CollationSettings() argument
115 CollationSettings(const CollationSettings &other);
116 virtual ~CollationSettings();
118 UBool operator==(const CollationSettings &other) const;
120 inline UBool operator!=(const CollationSettings &other) const {
132 void copyReorderingFrom(const CollationSettings &other, UErrorCode &errorCode);
Dcollationfastlatin.cpp27 CollationFastLatin::getOptions(const CollationData *data, const CollationSettings &settings, in getOptions()
35 if((settings.options & CollationSettings::ALTERNATE_MASK) == 0) { in getOptions()
99 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 …]
Dcollationdatawriter.h24 struct CollationSettings;
32 static int32_t writeBase(const CollationData &data, const CollationSettings &settings,
37 static int32_t writeTailoring(const CollationTailoring &t, const CollationSettings &settings,
45 const CollationData &data, const CollationSettings &settings,
Dcollationkeys.cpp228 const CollationSettings &settings, in writeSortKeyUpToQuaternary()
236 uint32_t levels = levelMasks[CollationSettings::getStrength(options)]; in writeSortKeyUpToQuaternary()
237 if((options & CollationSettings::CASE_LEVEL) != 0) { in writeSortKeyUpToQuaternary()
245 if((options & CollationSettings::ALTERNATE_MASK) == 0) { in writeSortKeyUpToQuaternary()
252 uint32_t tertiaryMask = CollationSettings::getTertiaryMask(options); in writeSortKeyUpToQuaternary()
358 ((options & CollationSettings::BACKWARD_SECONDARY) == 0 || in writeSortKeyUpToQuaternary()
363 } else if((options & CollationSettings::BACKWARD_SECONDARY) == 0) { in writeSortKeyUpToQuaternary()
426 if((CollationSettings::getStrength(options) == UCOL_PRIMARY) ? in writeSortKeyUpToQuaternary()
437 if((options & CollationSettings::UPPER_FIRST) == 0) { in writeSortKeyUpToQuaternary()
510 } else if((options & CollationSettings::UPPER_FIRST) == 0) { in writeSortKeyUpToQuaternary()
[all …]
Dcollationcompare.h26 struct CollationSettings;
31 const CollationSettings &settings,
Dcollationroot.h25 struct CollationSettings;
36 static const CollationSettings *getSettings(UErrorCode &errorCode);
Dcollationruleparser.cpp72 CollationSettings &outSettings, in parse()
111 settings->setFlag(CollationSettings::BACKWARD_SECONDARY, in parse()
503 settings->setFlag(CollationSettings::BACKWARD_SECONDARY, in parseSetting()
542 value = CollationSettings::MAX_VAR_SPACE; in parseSetting()
544 value = CollationSettings::MAX_VAR_PUNCT; in parseSetting()
546 value = CollationSettings::MAX_VAR_SYMBOL; in parseSetting()
548 value = CollationSettings::MAX_VAR_CURRENCY; in parseSetting()
575 settings->setFlag(CollationSettings::CASE_LEVEL, value, 0, errorCode); in parseSetting()
582 settings->setFlag(CollationSettings::CHECK_FCD, value, 0, errorCode); in parseSetting()
589 settings->setFlag(CollationSettings::NUMERIC, value, 0, errorCode); in parseSetting()
Dcollationruleparser.h35 struct CollationSettings;
129 CollationSettings &outSettings,
184 CollationSettings *settings;
Drulebasedcollator.cpp405 const CollationSettings &
416 option = CollationSettings::BACKWARD_SECONDARY; in getAttribute()
423 option = CollationSettings::CASE_LEVEL; in getAttribute()
426 option = CollationSettings::CHECK_FCD; in getAttribute()
434 option = CollationSettings::NUMERIC; in getAttribute()
452 const CollationSettings &defaultSettings = getDefaultSettings(); in setAttribute()
459 CollationSettings *ownedSettings = SharedObject::copyOnWrite(settings); in setAttribute()
467 ownedSettings->setFlag(CollationSettings::BACKWARD_SECONDARY, value, in setAttribute()
477 ownedSettings->setFlag(CollationSettings::CASE_LEVEL, value, in setAttribute()
481 ownedSettings->setFlag(CollationSettings::CHECK_FCD, value, in setAttribute()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DRuleBasedCollator.java33 import com.ibm.icu.impl.coll.CollationSettings;
359 private final CollationSettings getOwnedSettings() { in getOwnedSettings()
363 private final CollationSettings getDefaultSettings() { in getDefaultSettings()
423 CollationSettings ownedSettings = getOwnedSettings(); in setUpperCaseFirst()
424 ownedSettings.setCaseFirst(upperfirst ? CollationSettings.CASE_FIRST_AND_UPPER_MASK : 0); in setUpperCaseFirst()
445 CollationSettings ownedSettings = getOwnedSettings(); in setLowerCaseFirst()
446 ownedSettings.setCaseFirst(lowerfirst ? CollationSettings.CASE_FIRST : 0); in setLowerCaseFirst()
462 CollationSettings defaultSettings = getDefaultSettings(); in setCaseFirstDefault()
464 CollationSettings ownedSettings = getOwnedSettings(); in setCaseFirstDefault()
479 CollationSettings defaultSettings = getDefaultSettings(); in setAlternateHandlingDefault()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRuleBasedCollator.java34 import android.icu.impl.coll.CollationSettings;
350 private final CollationSettings getOwnedSettings() { in getOwnedSettings()
354 private final CollationSettings getDefaultSettings() { in getDefaultSettings()
415 CollationSettings ownedSettings = getOwnedSettings(); in setUpperCaseFirst()
416 ownedSettings.setCaseFirst(upperfirst ? CollationSettings.CASE_FIRST_AND_UPPER_MASK : 0); in setUpperCaseFirst()
436 CollationSettings ownedSettings = getOwnedSettings(); in setLowerCaseFirst()
437 ownedSettings.setCaseFirst(lowerfirst ? CollationSettings.CASE_FIRST : 0); in setLowerCaseFirst()
452 CollationSettings defaultSettings = getDefaultSettings(); in setCaseFirstDefault()
454 CollationSettings ownedSettings = getOwnedSettings(); in setCaseFirstDefault()
468 CollationSettings defaultSettings = getDefaultSettings(); in setAlternateHandlingDefault()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationCompare.java20 CollationSettings settings) { in compareUpToQuaternary()
23 if ((options & CollationSettings.ALTERNATE_MASK) == 0) { in compareUpToQuaternary()
98 if (CollationSettings.getStrength(options) >= Collator.SECONDARY) { in compareUpToQuaternary()
99 if ((options & CollationSettings.BACKWARD_SECONDARY) == 0) { in compareUpToQuaternary()
175 if ((options & CollationSettings.CASE_LEVEL) != 0) { in compareUpToQuaternary()
176 int strength = CollationSettings.getStrength(options); in compareUpToQuaternary()
231 if ((options & CollationSettings.UPPER_FIRST) == 0) { in compareUpToQuaternary()
242 if (CollationSettings.getStrength(options) <= Collator.SECONDARY) { in compareUpToQuaternary()
246 int tertiaryMask = CollationSettings.getTertiaryMask(options); in compareUpToQuaternary()
269 if (CollationSettings.sortsTertiaryUpperCaseFirst(options)) { in compareUpToQuaternary()
[all …]
DCollationSettings.java24 public final class CollationSettings extends SharedObject { class
93 CollationSettings() {} in CollationSettings() method in CollationSettings
96 public CollationSettings clone() { in clone()
97 CollationSettings newSettings = (CollationSettings)super.clone(); in clone()
108 CollationSettings o = (CollationSettings)other; in equals()
260 public void copyReorderingFrom(CollationSettings other) { in copyReorderingFrom()
DCollationKeys.java331 CollationSettings settings, SortKeyByteSink sink, int minLevel, LevelCallback callback, in writeSortKeyUpToQuaternary()
336 int levels = levelMasks[CollationSettings.getStrength(options)]; in writeSortKeyUpToQuaternary()
337 if ((options & CollationSettings.CASE_LEVEL) != 0) { in writeSortKeyUpToQuaternary()
347 if ((options & CollationSettings.ALTERNATE_MASK) == 0) { in writeSortKeyUpToQuaternary()
354 int tertiaryMask = CollationSettings.getTertiaryMask(options); in writeSortKeyUpToQuaternary()
466 ((options & CollationSettings.BACKWARD_SECONDARY) == 0 || in writeSortKeyUpToQuaternary()
471 } else if ((options & CollationSettings.BACKWARD_SECONDARY) == 0) { in writeSortKeyUpToQuaternary()
530 if ((CollationSettings.getStrength(options) == Collator.PRIMARY) ? p == 0 in writeSortKeyUpToQuaternary()
541 if ((options & CollationSettings.UPPER_FIRST) == 0) { in writeSortKeyUpToQuaternary()
618 } else if ((options & CollationSettings.UPPER_FIRST) == 0) { in writeSortKeyUpToQuaternary()
[all …]
DCollationFastLatin.java202 public static int getOptions(CollationData data, CollationSettings settings, in getOptions()
213 if((settings.options & CollationSettings.ALTERNATE_MASK) == 0) { in getOptions()
277 if(digitsAreReordered || (settings.options & CollationSettings.NUMERIC) != 0) { in getOptions()
314 if(c <= 0x39 && c >= 0x30 && (options & CollationSettings.NUMERIC) != 0) { in compareUTF16()
350 if(c <= 0x39 && c >= 0x30 && (options & CollationSettings.NUMERIC) != 0) { in compareUTF16()
398 if(CollationSettings.getStrength(options) >= Collator.SECONDARY) { in compareUTF16()
468 if((options & CollationSettings.BACKWARD_SECONDARY) != 0) { in compareUTF16()
481 if((options & CollationSettings.CASE_LEVEL) != 0) { in compareUTF16()
482 boolean strengthIsPrimary = CollationSettings.getStrength(options) == Collator.PRIMARY; in compareUTF16()
530 if((options & CollationSettings.UPPER_FIRST) == 0) { in compareUTF16()
[all …]
DCollationTailoring.java35 CollationTailoring(SharedObject.Reference<CollationSettings> baseSettings) { in CollationTailoring()
42 settings = new SharedObject.Reference<CollationSettings>(new CollationSettings()); in CollationTailoring()
100 public SharedObject.Reference<CollationSettings> settings; // reference-counted
DCollationRuleParser.java110 void parse(String ruleString, CollationSettings outSettings) throws ParseException { in parse()
151 settings.setFlag(CollationSettings.BACKWARD_SECONDARY, true); in parse()
539 settings.setFlag(CollationSettings.BACKWARD_SECONDARY, true); in parseSetting()
579 value = CollationSettings.MAX_VAR_SPACE; in parseSetting()
581 value = CollationSettings.MAX_VAR_PUNCT; in parseSetting()
583 value = CollationSettings.MAX_VAR_SYMBOL; in parseSetting()
585 value = CollationSettings.MAX_VAR_CURRENCY; in parseSetting()
600 value = CollationSettings.CASE_FIRST; // UCOL_LOWER_FIRST in parseSetting()
602 value = CollationSettings.CASE_FIRST_AND_UPPER_MASK; // UCOL_UPPER_FIRST in parseSetting()
612 settings.setFlag(CollationSettings.CASE_LEVEL, value > 0); in parseSetting()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationCompare.java24 CollationSettings settings) { in compareUpToQuaternary()
27 if ((options & CollationSettings.ALTERNATE_MASK) == 0) { in compareUpToQuaternary()
102 if (CollationSettings.getStrength(options) >= Collator.SECONDARY) { in compareUpToQuaternary()
103 if ((options & CollationSettings.BACKWARD_SECONDARY) == 0) { in compareUpToQuaternary()
179 if ((options & CollationSettings.CASE_LEVEL) != 0) { in compareUpToQuaternary()
180 int strength = CollationSettings.getStrength(options); in compareUpToQuaternary()
235 if ((options & CollationSettings.UPPER_FIRST) == 0) { in compareUpToQuaternary()
246 if (CollationSettings.getStrength(options) <= Collator.SECONDARY) { in compareUpToQuaternary()
250 int tertiaryMask = CollationSettings.getTertiaryMask(options); in compareUpToQuaternary()
273 if (CollationSettings.sortsTertiaryUpperCaseFirst(options)) { in compareUpToQuaternary()
[all …]
DCollationSettings.java26 public final class CollationSettings extends SharedObject { class
95 CollationSettings() {} in CollationSettings() method in CollationSettings
98 public CollationSettings clone() { in clone()
99 CollationSettings newSettings = (CollationSettings)super.clone(); in clone()
110 CollationSettings o = (CollationSettings)other; in equals()
262 public void copyReorderingFrom(CollationSettings other) { in copyReorderingFrom()
DCollationKeys.java341 CollationSettings settings, SortKeyByteSink sink, int minLevel, LevelCallback callback, in writeSortKeyUpToQuaternary()
346 int levels = levelMasks[CollationSettings.getStrength(options)]; in writeSortKeyUpToQuaternary()
347 if ((options & CollationSettings.CASE_LEVEL) != 0) { in writeSortKeyUpToQuaternary()
357 if ((options & CollationSettings.ALTERNATE_MASK) == 0) { in writeSortKeyUpToQuaternary()
364 int tertiaryMask = CollationSettings.getTertiaryMask(options); in writeSortKeyUpToQuaternary()
476 ((options & CollationSettings.BACKWARD_SECONDARY) == 0 || in writeSortKeyUpToQuaternary()
481 } else if ((options & CollationSettings.BACKWARD_SECONDARY) == 0) { in writeSortKeyUpToQuaternary()
540 if ((CollationSettings.getStrength(options) == Collator.PRIMARY) ? p == 0 in writeSortKeyUpToQuaternary()
551 if ((options & CollationSettings.UPPER_FIRST) == 0) { in writeSortKeyUpToQuaternary()
628 } else if ((options & CollationSettings.UPPER_FIRST) == 0) { in writeSortKeyUpToQuaternary()
[all …]
DCollationFastLatin.java206 public static int getOptions(CollationData data, CollationSettings settings, in getOptions()
217 if((settings.options & CollationSettings.ALTERNATE_MASK) == 0) { in getOptions()
281 if(digitsAreReordered || (settings.options & CollationSettings.NUMERIC) != 0) { in getOptions()
318 if(c <= 0x39 && c >= 0x30 && (options & CollationSettings.NUMERIC) != 0) { in compareUTF16()
354 if(c <= 0x39 && c >= 0x30 && (options & CollationSettings.NUMERIC) != 0) { in compareUTF16()
402 if(CollationSettings.getStrength(options) >= Collator.SECONDARY) { in compareUTF16()
472 if((options & CollationSettings.BACKWARD_SECONDARY) != 0) { in compareUTF16()
485 if((options & CollationSettings.CASE_LEVEL) != 0) { in compareUTF16()
486 boolean strengthIsPrimary = CollationSettings.getStrength(options) == Collator.PRIMARY; in compareUTF16()
534 if((options & CollationSettings.UPPER_FIRST) == 0) { in compareUTF16()
[all …]
DCollationTailoring.java37 CollationTailoring(SharedObject.Reference<CollationSettings> baseSettings) { in CollationTailoring()
44 settings = new SharedObject.Reference<CollationSettings>(new CollationSettings()); in CollationTailoring()
102 public SharedObject.Reference<CollationSettings> settings; // reference-counted
DCollationRuleParser.java114 void parse(String ruleString, CollationSettings outSettings) throws ParseException { in parse()
155 settings.setFlag(CollationSettings.BACKWARD_SECONDARY, true); in parse()
543 settings.setFlag(CollationSettings.BACKWARD_SECONDARY, true); in parseSetting()
583 value = CollationSettings.MAX_VAR_SPACE; in parseSetting()
585 value = CollationSettings.MAX_VAR_PUNCT; in parseSetting()
587 value = CollationSettings.MAX_VAR_SYMBOL; in parseSetting()
589 value = CollationSettings.MAX_VAR_CURRENCY; in parseSetting()
604 value = CollationSettings.CASE_FIRST; // UCOL_LOWER_FIRST in parseSetting()
606 value = CollationSettings.CASE_FIRST_AND_UPPER_MASK; // UCOL_UPPER_FIRST in parseSetting()
616 settings.setFlag(CollationSettings.CASE_LEVEL, value > 0); in parseSetting()
[all …]

12