Contents

tokenRange(at:)

Finds the range of the token at the given index.

Declaration

@nonobjc func tokenRange(at index: String.Index) -> Range<String.Index>

Parameters

  • index:

    The location in the string that is of interest.

Return Value

The range of the token at the given location.

See Also

Enumerating the tokens