Function

CFStringHasSuffix

Determines if a string ends with a specified sequence of characters.

Declaration

Boolean CFStringHasSuffix(CFStringRef theString, CFStringRef suffix);

Parameters

theString

The string to be evaluated.

suffix

The suffix to search for.

Return Value

true if theString ends with suffix, false otherwise.

See Also

Comparing Strings

CFStringCompare

Compares one string with another string.

CFStringCompareWithOptions

Compares a range of the characters in one string with that of another string.

CFStringCompareWithOptionsAndLocale

Compares a range of the characters in one string with another string using a given locale.

CFStringHasPrefix

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