Collation

public final class Collation

Collation factory. CouchbaseLite provides two types of the Collation, ASCII and Unicode. Without specifying the COLLATE expression. Couchbase Lite will use the ASCII with case sensitive collation by default.

  • Creates an ASCII collation that will compare two strings by using binary comparison.

    Declaration

    Swift

    public static func ascii() -> ASCII

    Return Value

    The ASCII collation.

  • Creates a Unicode collation that will compare two strings by using Unicode Collation Algorithm. If the locale is not specified, the current system locale will be used by default.

    Declaration

    Swift

    public static func unicode() -> Unicode

    Return Value

    The Unicode collation.

  • ASCII collation compares two strings by using binary comparison.

    See more

    Declaration

    Swift

    public final class ASCII : CollationProtocol
  • Unicode Collation that will compare two strings by using Unicode collation algorithm. If the locale is not specified, the current system locale will be used by default.

    See more

    Declaration

    Swift

    public final class Unicode : CollationProtocol