doubleClick(at:)
Returns the range of characters that form a word (or other linguistic unit) surrounding the specified index, taking language characteristics into account.
Declaration
func doubleClick(at location: Int) -> NSRangeParameters
- location:
The index in the attributed string.
Return Value
Returns the range of characters that form a word (or other linguistic unit) surrounding the given index, taking language characteristics into account.
Discussion
Raises an rangeException if index lies beyond the end of the receiver’s characters.