Removes the characters in the given range.
SDK
- Xcode 10.0+
Framework
- Swift Standard Library
Declaration
Parameters
bounds
The range of the elements to remove. The upper and lower bounds of
bounds
must be valid indices of the string and not equal to the string’s end index.bounds
The range of the elements to remove. The upper and lower bounds of
bounds
must be valid indices of the string.
Discussion
Calling this method invalidates any existing indices for use with this string.