vibe.d beta banner
get vibe.d
0.10.0

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 ;

Fields

NameTypeDescription
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.

Enums

NameDescription
Alternate
MaxVariable

See Also

https://docs.mongodb.com/manual/reference/collation/

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.