Replaces part of the character contents of a CFMutableString object with another string.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The string to modify. The characters are adjusted left or right (depending on the length of the substituted string) and the character buffer of the object is resized accordingly. If this value is not a CFMutableString object, an assertion is raised.
The range of characters in
The replacement string to put into
Although you can use this function to replace all characters in a CFMutableString object (by specifying a range of
(0, CFString ), it is more convenient to use the
CFString function for that purpose.