CharacterSet

A CharacterSet represents a set of Unicode-compliant characters. Foundation types use CharacterSet to group characters together for searching operations, so that they can find any of a particular set of characters during a search.

struct CharacterSet

This type provides “copy-on-write” behavior, and is also bridged to the Objective-C NSCharacterSet class.