Contents

CFStringHasPrefix(_:_:)

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

Declaration

func CFStringHasPrefix(_ theString: CFString!, _ prefix: CFString!) -> Bool

Parameters

  • theString:

    The string to search.

  • prefix:

    The prefix to search for.

Return Value

true if theString begins with prefix, false if otherwise.

See Also

Comparing Strings