<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/StringProtocol/localizedCaseInsensitiveContains(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:Sy10FoundationE32localizedCaseInsensitiveContainsySbqd__SyRd__lF"
  },
  "title" : "localizedCaseInsensitiveContains(_:)"
}
-->

# 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.

```
func localizedCaseInsensitiveContains<T>(_ other: T) -> Bool where T : StringProtocol
```

## Discussion

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
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)