Contents

lineRange(for:)

Returns the range of characters representing the line or lines containing a given range.

Declaration

func lineRange(for range: NSRange) -> NSRange

Parameters

  • range:

    A range within the receiver. The value must not exceed the bounds of the receiver.

Return Value

The range of characters representing the line or lines containing aRange, including the line termination characters. See getLineStart(_:end:contentsEnd:for:) for a discussion of line terminators.

See Also

Related Documentation

Determining Line and Paragraph Ranges