A character set containing the characters in Unicode General Category P*.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
class var punctuationCharacters: Character Set { get }
Return Value
A character set containing all the punctuation characters.
Discussion
Informally, this set is the set of all non-whitespace characters used to separate linguistic units in scripts, such as periods, dashes, parentheses, and so on.