enumerateTokens(in:using:)
Enumerates over a given range of the string and calls the specified block for each token.
Declaration
@nonobjc func enumerateTokens(in range: Range<String.Index>, using block: (Range<String.Index>, NLTokenizer.Attributes) -> Bool)Parameters
- range:
The range of the string to tokenize.
- block:
The closure to call after each token; return false if processing should stop.