vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Struct Collation

Collation allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks.

struct Collation ;


alternate Collation.AlternateField that determines whether collation should consider whitespace and punctuation as base characters for purposes of comparison.
backwards boolFlag that determines whether strings with diacritics sort from back of the string, such as with some French dictionary ordering.
caseFirst stringA flag that determines sort order of case differences during tertiary level comparisons.
caseLevel boolFlag that determines whether to include case comparison at strength level 1 or 2.
locale stringThe ICU locale
maxVariable Collation.MaxVariableField that determines up to which characters are considered ignorable when alternate: "shifted". Has no effect if alternate: "non-ignorable"
normalization boolFlag that determines whether to check if text require normalization and to perform normalization. Generally, majority of text does not require this normalization processing.
numericOrdering boolFlag that determines whether to compare numeric strings as numbers or as strings.
strength intThe level of comparison to perform. Corresponds to ICU Comparison Levels.



See Also


Sönke Ludwig


© 2012-2016 RejectedSoftware e.K.


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.