Search code examples
cocoanscharacterset

What makes up the category called "Marks" in NSCharacterSet?


I am reading up on NSCharacterSet. Can anyone tell me (with an example if possible) what characters are in the category "Marks"?


Solution

  • The docs have a short description:

    nonBaseCharacterSet

    Returns a character set containing the characters in the category of Marks.

    + (id)nonBaseCharacterSet
    Return Value
    A character set containing the characters in the category of Marks.

    Discussion
    This set is also defined as all legal Unicode characters with a non-spacing priority greater than 0. Informally, this set is the set of all characters used as modifiers of base characters.