CharacterSet
A set of Unicode character values for use in search operations.
Declaration
struct CharacterSetOverview
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.
This type provides “copy-on-write” behavior, and is also bridged to the Objective-C NSCharacterSet class.
Topics
Getting Standard Character Sets
alphanumericscapitalizedLetterscontrolCharactersdecimalDigitsdecomposablesillegalCharactersletterslowercaseLettersnewlinesnonBaseCharacterspunctuationCharacterssymbolsuppercaseLetterswhitespaceswhitespacesAndNewlines
Getting Character Sets for URL Encoding
Creating a Custom Character Set
Creating and Managing Bitmap Representations
Inverting a Character Set
Combining Character Sets
formIntersection(_:)formSymmetricDifference(_:)formUnion(_:)hasMember(inPlane:)insert(charactersIn:)intersection(_:)invert()isSuperset(of:)remove(charactersIn:)subtracting(_:)symmetricDifference(_:)union(_:)
Adding Characters
Removing Characters
Testing Set Membership
Comparing Character Sets
Using Reference Types
Initializers
init(bitmapRepresentation:)init(charactersIn:)init(charactersIn:)init(charactersIn:)init(contentsOfFile:)