Contents

localizedStandardContains(_:)

Returns a Boolean value indicating whether the string 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.

See Also

Finding Characters and Substrings