Function

CFCharacterSetCreateWithCharactersInString

Creates a new character set with the values in the given string.

Declaration

CFCharacterSetRef CFCharacterSetCreateWithCharactersInString(CFAllocatorRef alloc, CFStringRef theString);

Parameters

alloc

The allocator to use to allocate memory for the new object. Pass NULL or kCFAllocatorDefault to use the current default allocator.

theString

A string containing the characters for the new set.

Return Value

A new character set containing the characters from theString. Ownership follows the The Create Rule.

See Also

Creating Character Sets

CFCharacterSetCreateCopy

Creates a new character set with the values from a given character set.

CFCharacterSetCreateInvertedSet

Creates a new immutable character set that is the invert of the specified character set.

CFCharacterSetCreateWithCharactersInRange

Creates a new character set with the values from the given range of Unicode characters.

CFCharacterSetCreateWithBitmapRepresentation

Creates a new immutable character set with the bitmap representation specified by given data.