Instance Method

rangeOfComposedCharacterSequence(at:)

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

Declaration

func rangeOfComposedCharacterSequence(at index: Int) -> NSRange

Parameters

anIndex

The index of a character in the receiver. The value must not exceed the bounds of the receiver.

Return Value

The range in the receiver of the composed character sequence located at anIndex.

Discussion

The composed character sequence includes the first decomposed base letter found at or before anIndex, and its length includes the decomposed base letter and all combining characters that follow.

See Also

Determining Composed Character Sequences

func rangeOfComposedCharacterSequences(for: NSRange)

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