Instance Property

isEmpty

A Boolean value that indicates whether the set has no elements.

Declaration

var isEmpty: Bool { get }

See Also

Testing Set Membership

func hasMember(inPlane: UInt8) -> Bool

Returns true if the CharacterSet has a member in the specified plane.

func isDisjoint(with: CharacterSet) -> Bool

Returns a Boolean value that indicates whether the set has no members in common with the given set.

func isStrictSubset(of: CharacterSet) -> Bool

Returns a Boolean value that indicates whether this set is a strict subset of the given set.

func isStrictSuperset(of: CharacterSet) -> Bool

Returns a Boolean value that indicates whether this set is a strict superset of the given set.

func isSubset(of: CharacterSet) -> Bool

Returns a Boolean value that indicates whether the set is a subset of another set.

func isSuperset(of: CharacterSet) -> Bool

Returns true if self is a superset of other.