天天看點

Swift 字元串是否包含某子串或字元

Returns a Boolean value indicating whether the string begins with the specified prefix.

Returns a Boolean value indicating whether the string ends with the specified suffix.

Returns a Boolean value indicating whether the sequence contains the given element.

Returns a Boolean value indicating whether the sequence contains an element that satisfies the given predicate.