Home
last modified time | relevance | path

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

/external/icu/icu4c/source/i18n/
Dcollationsettings.cpp26 CollationSettings::CollationSettings(const CollationSettings &other) in CollationSettings() function in CollationSettings
48 CollationSettings::~CollationSettings() { in ~CollationSettings()
55 CollationSettings::operator==(const CollationSettings &other) const { in operator ==()
66 CollationSettings::hashCode() const { in hashCode()
77 CollationSettings::resetReordering() { in resetReordering()
86 CollationSettings::aliasReordering(const int32_t *codes, int32_t length, const uint8_t *table) { in aliasReordering()
102 CollationSettings::setReordering(const int32_t *codes, int32_t length, const uint8_t table[256]) { in setReordering()
131 CollationSettings::setStrength(int32_t value, int32_t defaultOptions, UErrorCode &errorCode) { in setStrength()
152 CollationSettings::setFlag(int32_t bit, UColAttributeValue value, in setFlag()
172 CollationSettings::setCaseFirst(UColAttributeValue value, in setCaseFirst()
[all …]
Dcollationsettings.h30 struct U_I18N_API CollationSettings : public SharedObject { struct
101 CollationSettings() in CollationSettings() argument
109 CollationSettings(const CollationSettings &other);
110 virtual ~CollationSettings();
112 UBool operator==(const CollationSettings &other) const;
114 inline UBool operator!=(const CollationSettings &other) const {
Dcollationcompare.cpp28 const CollationSettings &settings, in compareUpToQuaternary()
34 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()
186 if((options & CollationSettings::CASE_LEVEL) != 0) { in compareUpToQuaternary()
187 int32_t strength = CollationSettings::getStrength(options); in compareUpToQuaternary()
242 if((options & CollationSettings::UPPER_FIRST) == 0) { in compareUpToQuaternary()
251 if(CollationSettings::getStrength(options) <= UCOL_SECONDARY) { return UCOL_EQUAL; } in compareUpToQuaternary()
253 uint32_t tertiaryMask = CollationSettings::getTertiaryMask(options); in compareUpToQuaternary()
278 if(CollationSettings::sortsTertiaryUpperCaseFirst(options)) { in compareUpToQuaternary()
[all …]
Dcollationdatawriter.h22 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,
Dcollationfastlatin.cpp26 CollationFastLatin::getOptions(const CollationData *data, const CollationSettings &settings, in getOptions()
34 if((settings.options & CollationSettings::ALTERNATE_MASK) == 0) { in getOptions()
81 if((settings.options & CollationSettings::NUMERIC) != 0) { in getOptions()
124 if(c <= 0x39 && c >= 0x30 && (options & CollationSettings::NUMERIC) != 0) { in compareUTF16()
155 if(c <= 0x39 && c >= 0x30 && (options & CollationSettings::NUMERIC) != 0) { in compareUTF16()
198 if(CollationSettings::getStrength(options) >= UCOL_SECONDARY) { in compareUTF16()
260 if((options & CollationSettings::BACKWARD_SECONDARY) != 0) { in compareUTF16()
273 if((options & CollationSettings::CASE_LEVEL) != 0) { in compareUTF16()
274 UBool strengthIsPrimary = CollationSettings::getStrength(options) == UCOL_PRIMARY; in compareUTF16()
312 if((options & CollationSettings::UPPER_FIRST) == 0) { in compareUTF16()
[all …]
Dcollationkeys.cpp226 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()
251 uint32_t tertiaryMask = CollationSettings::getTertiaryMask(options); in writeSortKeyUpToQuaternary()
355 } else if((options & CollationSettings::BACKWARD_SECONDARY) == 0) { in writeSortKeyUpToQuaternary()
406 if((CollationSettings::getStrength(options) == UCOL_PRIMARY) ? in writeSortKeyUpToQuaternary()
417 if((options & CollationSettings::UPPER_FIRST) == 0) { in writeSortKeyUpToQuaternary()
486 } else if((options & CollationSettings::UPPER_FIRST) == 0) { in writeSortKeyUpToQuaternary()
557 (options & CollationSettings::ALTERNATE_MASK) == 0 && in writeSortKeyUpToQuaternary()
[all …]
Dcollationcompare.h24 struct CollationSettings;
29 const CollationSettings &settings,
Dcollationroot.h22 struct CollationSettings;
32 static const CollationSettings *getSettings(UErrorCode &errorCode);
Dcollationtailoring.h47 CollationTailoring(const CollationSettings *baseSettings);
63 const CollationSettings *settings; // reference-counted
Dcollationruleparser.h33 struct CollationSettings;
126 CollationSettings &outSettings,
182 CollationSettings *settings;
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()
Dcollationtailoring.cpp33 CollationTailoring::CollationTailoring(const CollationSettings *baseSettings) in CollationTailoring()
44 settings = new CollationSettings(); in CollationTailoring()
Drulebasedcollator.cpp391 const CollationSettings &
402 option = CollationSettings::BACKWARD_SECONDARY; in getAttribute()
409 option = CollationSettings::CASE_LEVEL; in getAttribute()
412 option = CollationSettings::CHECK_FCD; in getAttribute()
420 option = CollationSettings::NUMERIC; in getAttribute()
438 const CollationSettings &defaultSettings = getDefaultSettings(); in setAttribute()
445 CollationSettings *ownedSettings = SharedObject::copyOnWrite(settings); in setAttribute()
453 ownedSettings->setFlag(CollationSettings::BACKWARD_SECONDARY, value, in setAttribute()
463 ownedSettings->setFlag(CollationSettings::CASE_LEVEL, value, in setAttribute()
467 ownedSettings->setFlag(CollationSettings::CHECK_FCD, value, in setAttribute()
[all …]
Dcollationkeys.h28 struct CollationSettings;
110 const CollationSettings &settings,
Dcollationfastlatin.h22 struct CollationSettings;
208 static int32_t getOptions(const CollationData *data, const CollationSettings &settings,
Dcollationdatawriter.cpp76 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()
Dcollationroot.cpp82 const CollationSettings *
Dcollationdatareader.cpp369 const CollationSettings &ts = *tailoring.settings; in read()
384 CollationSettings *settings = SharedObject::copyOnWrite(tailoring.settings); in read()
Dcollationdatabuilder.h236 const CollationSettings *baseSettings;
Dcollationbuilder.cpp250 CollationSettings &ownedSettings = *SharedObject::copyOnWrite(tailoring->settings); in parseAndBuild()
/external/icu/icu4c/source/i18n/unicode/
Dtblcoll.h75 struct CollationSettings;
820 const CollationSettings &getDefaultSettings() const;
845 void setFastLatinOptions(CollationSettings &ownedSettings) const;
848 const CollationSettings *settings; // reference-counted