CFStringReplaceAll

Header: CFString.h Carbon status: Supported

Replaces all characters of a mutable CFString object with other characters.

void CFStringReplaceAll (
    CFMutableStringRef theString, 
    CFStringRef replacement
);
Parameter descriptions
theString

Pass a reference to the mutable CFString object with characters that are to be replaced. The function raises an assertion if the CFString object is not mutable.

replacement

Pass a reference to a CFString object containing the characters that are to replace the characters in the mutable CFString object.

DISCUSSION

The CFStringReplaceALL function replaces all characters in a mutable CFString object with substitute characters. The character buffer of the object is resized according to the length of the new characters.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)