compare(_:options:range:locale:)
Compares the string using the specified options and returns the lexical ordering for the range.
Declaration
func compare<T>(_ aString: T, options mask: String.CompareOptions = [], range: Range<Self.Index>? = nil, locale: Locale? = nil) -> ComparisonResult where T : StringProtocol