CFStringHasPrefix

Header: CFString.h Carbon status: Supported

Determines if the character data of a CFString object begin with a specified sequence of characters.

Boolean CFStringHasPrefix (
    CFStringRef theString, 
    CFStringRef prefix
);
Parameter descriptions
theString

Pass a reference to the CFString object to be evaluated.

prefix

Pass a reference to a CFString object representing the prefix to search for.

function result

TRUE if the CFString object contains the given prefix, FALSE if otherwise.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.


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