init(encodedOffset:)
Creates a new index at the specified code unit offset.
This declaration was deprecated in Swift 4.2: encodedOffset has been deprecated as most common usage is incorrect. \ Use String.Index(utf16Offset:in:) to achieve the same behavior.
init(encodedOffset offset: Int)
Parameters
- offset
An offset in code units.