CFCharacterSetCreateWithBitmapRepresentation(_:_:)
Creates a new immutable character set with the bitmap representation specified by given data.
Declaration
func CFCharacterSetCreateWithBitmapRepresentation(_ alloc: CFAllocator!, _ theData: CFData!) -> CFCharacterSet!Parameters
- alloc:
The allocator to use to allocate memory for the new object. Pass
NULLor kCFAllocatorDefault to use the current default allocator. - theData:
A CFData object that specifies the bitmap representation of the Unicode character points the for the new character set. The bitmap representation could contain all the Unicode character range starting from BMP to Plane 16. The first 8KiB (8192 bytes) of the data represent the BMP range. The BMP range 8KiB can be followed by zero to sixteen 8KiB bitmaps, each prepended with the plane index byte. For example, the bitmap representing the BMP and Plane 2 has the size of 16385 bytes (8KiB for BMP, 1 byte index, and a 8KiB bitmap for Plane 2). The plane index byte, in this case, contains the integer value two.
If the data contains a Plane index byte outside of the valid Plane range (1 to 16), the behavior is undefined.
Return Value
A new character set containing the indicated characters from theData. Ownership follows the The Create Rule.