If this string is not contiguous, make it so. If this mutates the string, it will invalidate any pre-existing indices.
SDK
- Xcode 11.0+
Framework
- Swift Standard Library
Declaration
Discussion
Complexity: O(n) if non-contiguous, O(1) if already contiguous