Instance Method

localizedStandardContains(_:)

Returns whether the receiver contains a given string by performing a case and diacritic insensitive, locale-aware search.

Declaration

func localizedStandardContains(_ str: String) -> Bool

Parameters

str

The string to search for. This value must not be nil.

Return Value

true if the receiver contains str, otherwise false.