---
title: "rangeOfComposedCharacterSequence(at:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsstring/rangeofcomposedcharactersequence(at:)"
---

# rangeOfComposedCharacterSequence(at:)

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

## Declaration

```swift
func rangeOfComposedCharacterSequence(at index: Int) -> NSRange
```

## Parameters

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

## Return Value

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

## Discussion

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

- [rangeOfComposedCharacterSequences(for:)](foundation/nsstring/rangeofcomposedcharactersequences(for:).md)
