kCFStringTokenizerUnitWordBoundary
Specifies that a string should be tokenized by locale-sensitive word boundary.
Declaration
var kCFStringTokenizerUnitWordBoundary: CFOptionFlags { get }Discussion
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.