localizedCaseInsensitiveContains(_:)
Returns a Boolean value indicating whether the given string is non-empty and contained within this string by case-insensitive, non-literal search, taking into account the current locale.
Declaration
func localizedCaseInsensitiveContains<T>(_ other: T) -> Bool where T : StringProtocolDiscussion
Locale-independent case-insensitive operation, and other needs, can be achieved by calling range(of:options:range:locale:).
Equivalent to:
range(of: other, options: .caseInsensitiveSearch,
locale: Locale.current) != nil