Global Variable


Specifies that a string should be tokenized by locale-sensitive word boundary.


var kCFStringTokenizerUnitWordBoundary: CFOptionFlags { get }


You can use this constant in double-click range detection and whole word search. It is locale-sensitive. If the locale is en_US_POSIX, a colon (U+003A) is treated as a word separator. If the locale parameter of CFStringTokenizerCreate(_:_:_:_:_:) is NULL, the locale from the global AppleTextBreakLocale preference is used if it is available; otherwise the locale defaults to the first locale in AppleLanguages.

kCFStringTokenizerUnitWordBoundary also returns space between words as a token.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software