CFStringTrimHeader: CFString.h

Trims a specified substring from the beginning and end of the character contents represented by a mutable CFString object.

void CFStringTrim (
    CFMutableStringRef theString, 
    CFStringRef trimString
);
theString

Pass a reference to a mutable CFString object from which the characters are to be trimmed. The function raises an exception if the CFString object is not mutable.

trimString

Pass a reference to a CFString object that contains the characters to be trimmed from the mutable CFString object (theString). The characters of the trim string are treated as a substring and not individually; for example, if the mutable characters are "abc *" and the trim string is "* ", the mutable characters are not affected.


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