Contents

CharacterSet

A set of Unicode character values for use in search operations.

Declaration

struct CharacterSet

Overview

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

Getting Character Sets for URL Encoding

Creating a Custom Character Set

Creating and Managing Bitmap Representations

Inverting a Character Set

Combining Character Sets

Adding Characters

Removing Characters

Testing Set Membership

Comparing Character Sets

Using Reference Types

Initializers

Instance Methods

See Also

Characters