CFStringReplaceAllHeader: CFString.h

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

void CFStringReplaceAll (
    CFMutableStringRef theString, 
    CFStringRef replacement
);
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.


© 1999 Apple Computer, Inc. — (Last Updated 9/15/99)