Module: CoreFoundation
- Extended by:
- FFI::Library
- Defined in:
- lib/macos/core_foundation.rb
Defined Under Namespace
Classes: CFRange, CFStringRef
Constant Summary collapse
- OSStatus =
typedef :uint32, :OSStatus
- CFIndex =
FFI::Type::LONG
- CFStringEncoding =
CFString.h
enum :uint32, :MacRoman, 0, :WindowsLatin1, 0x0500, # ANSI codepage 1252 :ISOLatin1, 0x0201, # ISO 8859-1 :NextStepLatin, 0x0B01, # NextStep encoding :ASCII, 0x0600, # 0..127 (in creating CFString, values greater than 0x7F are treated as corresponding Unicode value) :Unicode, 0x0100, # kTextEncodingUnicodeDefault + kTextEncodingDefaultFormat (aka kUnicode16BitFormat) :UTF8, 0x08000100, # kTextEncodingUnicodeDefault + kUnicodeUTF8Format :NonLossyASCII, 0x0BFF, # 7bit Unicode variants used by Cocoa & Java :UTF16, 0x0100, # kTextEncodingUnicodeDefault + kUnicodeUTF16Format (alias of kCFStringEncodingUnicode) :UTF16BE, 0x10000100, # kTextEncodingUnicodeDefault + kUnicodeUTF16BEFormat :UTF16LE, 0x14000100, # kTextEncodingUnicodeDefault + kUnicodeUTF16LEFormat :UTF32, 0x0c000100, # kTextEncodingUnicodeDefault + kUnicodeUTF32Format :UTF32BE, 0x18000100, # kTextEncodingUnicodeDefault + kUnicodeUTF32BEFormat :UTF32LE, 0x1c000100, # kTextEncodingUnicodeDefault + kUnicodeUTF32LEFormat :Invalid, 0xffffffff