Unicode

expect class Unicode : Collation(source)

Unicode Collation that will compare two strings by using Unicode collation algorithm. If the locale is not specified, the collation is Unicode-aware but not localized; for example, accented Roman letters sort right after the base letter

actual class Unicode : Collation(source)
actual class Unicode : Collation(source)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
expect fun setIgnoreAccents(ignAccents: Boolean): Collation.Unicode

Specifies whether the collation ignore the accents or diacritics when comparing the strings or not.

actual fun setIgnoreAccents(ignAccents: Boolean): Collation.Unicode
actual fun setIgnoreAccents(ignAccents: Boolean): Collation.Unicode
Link copied to clipboard

Specifies whether the collation is case-insensitive or not. Case-insensitive collation will treat ASCII uppercase and lowercase letters as equivalent.

Link copied to clipboard
expect fun setLocale(locale: String?): Collation.Unicode

Specifies the locale to allow the collation to compare strings appropriately based on the locale. The local code is an ISO-639 language code plus, optionally, an underscore and an ISO-3166 country code: "en", "en_US", "fr_CA", etc.

actual fun setLocale(locale: String?): Collation.Unicode
actual fun setLocale(locale: String?): Collation.Unicode
Link copied to clipboard
open override fun toString(): String