<!--
{
  "documentType" : "article",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/predefined_cfcharacterset_selector_values",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Predefined CFCharacterSet Selector Values"
}
-->

# Predefined CFCharacterSet Selector Values

Identifiers for the available predefined CFCharacterSet objects.

## Discussion

Use these constants with the [`CFCharacterSetGetPredefined(_:)`](/documentation/CoreFoundation/CFCharacterSetGetPredefined(_:)) function to get one of the predefined character sets.

## Topics

### Constants

[`case control`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/control)

Control character set (Unicode General Category Cc and Cf).

[`case whitespace`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/whitespace)

Whitespace character set (Unicode General Category Zs and U0009 CHARACTER TABULATION).

[`case whitespaceAndNewline`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/whitespaceAndNewline)

Whitespace and Newline character set (Unicode General Category Z*, `U000A ~ U000D`, and `U0085`).

[`case decimalDigit`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/decimalDigit)

Decimal digit character set.

[`case letter`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/letter)

Letter character set (Unicode General Category L* & M*).

[`case lowercaseLetter`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/lowercaseLetter)

Lowercase character set (Unicode General Category Ll).

[`case uppercaseLetter`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/uppercaseLetter)

Uppercase character set (Unicode General Category Lu and Lt).

[`case nonBase`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/nonBase)

Non-base character set (Unicode General Category M*).

[`case decomposable`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/decomposable)

Canonically decomposable character set.

[`case alphaNumeric`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/alphaNumeric)

Alpha Numeric character set (Unicode General Category L*, M*, & N*).

[`case punctuation`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/punctuation)

Punctuation character set (Unicode General Category P*).

[`case capitalizedLetter`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/capitalizedLetter)

Titlecase character set (Unicode General Category Lt).

[`case symbol`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/symbol)

Symbol character set (Unicode General Category S*).

[`case newline`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/newline)

Newline character set (`U000A ~ U000D`, `U0085`, `U2028`, and `U2029`).

[`case illegal`](/documentation/CoreFoundation/CFCharacterSetPredefinedSet/illegal)

Illegal character set.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)