tokenRange(at:unit:)
Returns the range of the linguistic unit containing the specified character index.
Declaration
func tokenRange(at charIndex: Int, unit: NSLinguisticTaggerUnit) -> NSRangeParameters
- charIndex:
The character index to begin examination.
- unit:
The linguistic unit. For possible values, see Nslinguistictaggerunit.
Return Value
The range of the substring for the linguistic unit.