Contents

contains(_:)

Returns true if other is non-empty and contained within self by case-sensitive, non-literal search. Otherwise, returns false.

Declaration

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

Discussion

Equivalent to self.range(of: other) != nil