---
title: "localizedCaseInsensitiveContains(_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/stringprotocol/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.

## Declaration

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

## Discussion

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
