CFStringTrim

Header: CFString.h Carbon status: Supported

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
);
Parameter descriptions
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.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.


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