---
title: kCFStringTokenizerUnitWordBoundary
framework: corefoundation
role: symbol
role_heading: Global Variable
path: corefoundation/kcfstringtokenizerunitwordboundary
---

# kCFStringTokenizerUnitWordBoundary

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

## Declaration

```swift
var kCFStringTokenizerUnitWordBoundary: CFOptionFlags { get }
```

## Discussion

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.

## See Also

### Constants

- [kCFStringTokenizerUnitWord](corefoundation/kcfstringtokenizerunitword.md)
- [kCFStringTokenizerUnitSentence](corefoundation/kcfstringtokenizerunitsentence.md)
- [kCFStringTokenizerUnitParagraph](corefoundation/kcfstringtokenizerunitparagraph.md)
- [kCFStringTokenizerUnitLineBreak](corefoundation/kcfstringtokenizerunitlinebreak.md)
- [kCFStringTokenizerAttributeLatinTranscription](corefoundation/kcfstringtokenizerattributelatintranscription.md)
- [kCFStringTokenizerAttributeLanguage](corefoundation/kcfstringtokenizerattributelanguage.md)
