Struct Collation Collation allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks.
Fields
Name Type Description
alternate
Collation . Alternate
Field that determines whether collation should consider whitespace and punctuation as base characters for purposes of comparison.
backwards
bool
Flag that determines whether strings with diacritics sort from back of the string, such as with some French dictionary ordering.
caseFirst
string
A flag that determines sort order of case differences during tertiary level comparisons.
caseLevel
bool
Flag that determines whether to include case comparison at strength level 1 or 2.
locale
string
The ICU locale
maxVariable
Collation . MaxVariable
Field that determines up to which characters are considered ignorable when alternate : "shifted"
. Has no effect if alternate : "non-ignorable"
normalization
bool
Flag that determines whether to check if text require normalization and to perform normalization. Generally, majority of text does not require this normalization processing.
numericOrdering
bool
Flag that determines whether to compare numeric strings as numbers or as strings.
strength
int
The level of comparison to perform. Corresponds to ICU Comparison Levels.
Authors
Sönke Ludwig
Copyright
© 2012-2016 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.