---
title: "getParagraphStart(_:end:contentsEnd:for:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/stringprotocol/getparagraphstart(_:end:contentsend:for:)"
---

# getParagraphStart(_:end:contentsEnd:for:)

Returns by reference the beginning of the first paragraph and the end of the last paragraph touched by the given range.

## Declaration

```swift
func getParagraphStart(_ start: UnsafeMutablePointer<Self.Index>, end: UnsafeMutablePointer<Self.Index>, contentsEnd: UnsafeMutablePointer<Self.Index>, for range: some RangeExpression<String.Index>)
```
