Instance Method

isCaseInsensitiveLike(_:)

Returns a Boolean value that indicates whether receiver is considered to be “like” a given string when the case of characters in the receiver is ignored.

Declaration

func isCaseInsensitiveLike(_ object: String) -> Bool

Parameters

aString

The string with which to compare the receiver.

Return Value

true if the receiver is considered to be “like” aString when the case of characters in the receiver is ignored, otherwise false.

Discussion

Currently, isCaseInsensitiveLike(_:) messages are never sent to any object from within Cocoa itself.

The default implementation for this method provided by NSObject returns false. NSString also provides an implementation of this method, which returns true if the receiver matches a pattern described by aString, ignoring the case of the characters in the receiver.

See Also

Performing comparisons

func doesContain(Any)

Returns a Boolean value that indicates whether the receiver contains a given object.

func isEqual(to: Any?)

Returns a Boolean value that indicates whether the receiver is equal to another given object.

func isGreaterThan(Any?)

Returns a Boolean value that indicates whether the receiver is greater than another given object.

func isGreaterThanOrEqual(to: Any?)

Returns a Boolean value that indicates whether the receiver is greater than or equal to another given object.

func isLessThan(Any?)

Returns a Boolean value that indicates whether the receiver is less than another given object.

func isLessThanOrEqual(to: Any?)

Returns a Boolean value that indicates whether the receiver is less than or equal to another given object.

func isLike(String)

Returns a Boolean value that indicates whether the receiver is "like" another given object.

func isNotEqual(to: Any?)

Returns a Boolean value that indicates whether the receiver is not equal to another given object.