Instance Method
localized Case Insensitive Contains String: Returns a Boolean value indicating whether the string contains a given string by performing a case-insensitive, locale-aware search.
SDKs
iOS 8.0+ macOS 10.10+ Mac Catalyst 13.0+ tvOS 9.0+ watchOS 2.0+ Declaration - (BOOL )localizedCaseInsensitiveContainsString: (NSString * )str ;
Parameters str
The string to search for. This value must not be nil
.
Return Value YES
if the receiver contains str
, otherwise NO
.
See Also
Finding Characters and Substrings - contains String:
Returns a Boolean value indicating whether the string contains a given string by performing a case-sensitive, locale-unaware search.
- localized Standard Contains String:
Returns a Boolean value indicating whether the string contains a given string by performing a case and diacritic insensitive, locale-aware search.
- range Of String:
Finds and returns the range of the first occurrence of a given string within the string.
- range Of String: options:
Finds and returns the range of the first occurrence of a given string within the string, subject to given options.
- range Of String: options: range:
Finds and returns the range of the first occurrence of a given string, within the given range of the string, subject to given options.
- range Of String: options: range: locale:
Finds and returns the range of the first occurrence of a given string within a given range of the string, subject to given options, using the specified locale, if any.
- localized Standard Range Of String:
Finds and returns the range of the first occurrence of a given string within the string by performing a case and diacritic insensitive, locale-aware search.