---
title: "rangeOfComposedCharacterSequences(for:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsstring/rangeofcomposedcharactersequences(for:)"
---

# rangeOfComposedCharacterSequences(for:)

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

## Declaration

```swift
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

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

## Discussion

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

- [rangeOfComposedCharacterSequence(at:)](foundation/nsstring/rangeofcomposedcharactersequence(at:).md)
