Alternate

public enum Alternate: String, ValueConvertible

Determines whether collation should consider whitespace and punctuation as base characters for purposes of comparison.

  • Whitespace and punctuation are considered base characters.

    Declaration

    Swift

    case nonIgnorable = "non-ignorable"
  • Whitespace and punctuation are not considered base characters and are only distinguished at strength levels greater than 3.

    Declaration

    Swift

    case shifted
  • Converts this to a BSON.Primitive

    Declaration

    Swift

    public func makePrimitive() -> BSON.Primitive