Instance Method

rangeOfComposedCharacterSequences(for:)

Returns the range in the string of the composed character sequences for a given range.

Declaration

func rangeOfComposedCharacterSequences(for range: NSRange) -> NSRange

Parameters

range

A range in the receiver. The range must not exceed the bounds of the receiver.

Return Value

The range in the receiver that includes the composed character sequences in range.

Discussion

This method provides a convenient way to grow a range to include all composed character sequences it overlaps.

See Also

Determining Composed Character Sequences

func rangeOfComposedCharacterSequence(at: Int)

Returns the range in the receiver of the composed character sequence located at a given index.