Returns a new string in which all occurrences of a target string in a specified range of the receiver are replaced by another given string.
- iOS 2.0+
- macOS 10.5+
- tvOS 9.0+
- watchOS 2.0+
The string to replace.
The string with which to replace
A mask of options to use when comparing
targetwith the receiver. Pass
0to specify no options.
The range in the receiver in which to search for
A new string in which all occurrences of
target, matched using
search of the receiver are replaced by