CFLocale.pas 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. { CFLocale.h
  2. Copyright (c) 2002-2009, Apple Inc. All rights reserved.
  3. }
  4. { Pascal Translation: Peter N Lewis, <[email protected]>, 2004 }
  5. { Pascal Translation Updated: Peter N Lewis, <[email protected]>, September 2005 }
  6. { Pascal Translation Updated: Gorazd Krosl, <[email protected]>, October 2009 }
  7. { Pascal Translation Updated: Jonas Maebe, <[email protected]>, October 2009 }
  8. {
  9. Modified for use with Free Pascal
  10. Version 308
  11. Please report any bugs to <[email protected]>
  12. }
  13. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  14. {$mode macpas}
  15. {$packenum 1}
  16. {$macro on}
  17. {$inline on}
  18. {$calling mwpascal}
  19. unit CFLocale;
  20. interface
  21. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  22. {$setc GAP_INTERFACES_VERSION := $0308}
  23. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  24. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  25. {$endc}
  26. {$ifc defined CPUPOWERPC and defined CPUI386}
  27. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  28. {$endc}
  29. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  30. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  31. {$endc}
  32. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  33. {$setc __ppc__ := 1}
  34. {$elsec}
  35. {$setc __ppc__ := 0}
  36. {$endc}
  37. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  38. {$setc __ppc64__ := 1}
  39. {$elsec}
  40. {$setc __ppc64__ := 0}
  41. {$endc}
  42. {$ifc not defined __i386__ and defined CPUI386}
  43. {$setc __i386__ := 1}
  44. {$elsec}
  45. {$setc __i386__ := 0}
  46. {$endc}
  47. {$ifc not defined __x86_64__ and defined CPUX86_64}
  48. {$setc __x86_64__ := 1}
  49. {$elsec}
  50. {$setc __x86_64__ := 0}
  51. {$endc}
  52. {$ifc not defined __arm__ and defined CPUARM}
  53. {$setc __arm__ := 1}
  54. {$elsec}
  55. {$setc __arm__ := 0}
  56. {$endc}
  57. {$ifc defined cpu64}
  58. {$setc __LP64__ := 1}
  59. {$elsec}
  60. {$setc __LP64__ := 0}
  61. {$endc}
  62. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  63. {$error Conflicting definitions for __ppc__ and __i386__}
  64. {$endc}
  65. {$ifc defined __ppc__ and __ppc__}
  66. {$setc TARGET_CPU_PPC := TRUE}
  67. {$setc TARGET_CPU_PPC64 := FALSE}
  68. {$setc TARGET_CPU_X86 := FALSE}
  69. {$setc TARGET_CPU_X86_64 := FALSE}
  70. {$setc TARGET_CPU_ARM := FALSE}
  71. {$setc TARGET_OS_MAC := TRUE}
  72. {$setc TARGET_OS_IPHONE := FALSE}
  73. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  74. {$elifc defined __ppc64__ and __ppc64__}
  75. {$setc TARGET_CPU_PPC := FALSE}
  76. {$setc TARGET_CPU_PPC64 := TRUE}
  77. {$setc TARGET_CPU_X86 := FALSE}
  78. {$setc TARGET_CPU_X86_64 := FALSE}
  79. {$setc TARGET_CPU_ARM := FALSE}
  80. {$setc TARGET_OS_MAC := TRUE}
  81. {$setc TARGET_OS_IPHONE := FALSE}
  82. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  83. {$elifc defined __i386__ and __i386__}
  84. {$setc TARGET_CPU_PPC := FALSE}
  85. {$setc TARGET_CPU_PPC64 := FALSE}
  86. {$setc TARGET_CPU_X86 := TRUE}
  87. {$setc TARGET_CPU_X86_64 := FALSE}
  88. {$setc TARGET_CPU_ARM := FALSE}
  89. {$ifc defined(iphonesim)}
  90. {$setc TARGET_OS_MAC := FALSE}
  91. {$setc TARGET_OS_IPHONE := TRUE}
  92. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  93. {$elsec}
  94. {$setc TARGET_OS_MAC := TRUE}
  95. {$setc TARGET_OS_IPHONE := FALSE}
  96. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  97. {$endc}
  98. {$elifc defined __x86_64__ and __x86_64__}
  99. {$setc TARGET_CPU_PPC := FALSE}
  100. {$setc TARGET_CPU_PPC64 := FALSE}
  101. {$setc TARGET_CPU_X86 := FALSE}
  102. {$setc TARGET_CPU_X86_64 := TRUE}
  103. {$setc TARGET_CPU_ARM := FALSE}
  104. {$setc TARGET_OS_MAC := TRUE}
  105. {$setc TARGET_OS_IPHONE := FALSE}
  106. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  107. {$elifc defined __arm__ and __arm__}
  108. {$setc TARGET_CPU_PPC := FALSE}
  109. {$setc TARGET_CPU_PPC64 := FALSE}
  110. {$setc TARGET_CPU_X86 := FALSE}
  111. {$setc TARGET_CPU_X86_64 := FALSE}
  112. {$setc TARGET_CPU_ARM := TRUE}
  113. { will require compiler define when/if other Apple devices with ARM cpus ship }
  114. {$setc TARGET_OS_MAC := FALSE}
  115. {$setc TARGET_OS_IPHONE := TRUE}
  116. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  117. {$elsec}
  118. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
  119. {$endc}
  120. {$ifc defined __LP64__ and __LP64__ }
  121. {$setc TARGET_CPU_64 := TRUE}
  122. {$elsec}
  123. {$setc TARGET_CPU_64 := FALSE}
  124. {$endc}
  125. {$ifc defined FPC_BIG_ENDIAN}
  126. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  127. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  128. {$elifc defined FPC_LITTLE_ENDIAN}
  129. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  130. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  131. {$elsec}
  132. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  133. {$endc}
  134. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  135. {$setc CALL_NOT_IN_CARBON := FALSE}
  136. {$setc OLDROUTINENAMES := FALSE}
  137. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  138. {$setc OPAQUE_UPP_TYPES := TRUE}
  139. {$setc OTCARBONAPPLICATION := TRUE}
  140. {$setc OTKERNEL := FALSE}
  141. {$setc PM_USE_SESSION_APIS := TRUE}
  142. {$setc TARGET_API_MAC_CARBON := TRUE}
  143. {$setc TARGET_API_MAC_OS8 := FALSE}
  144. {$setc TARGET_API_MAC_OSX := TRUE}
  145. {$setc TARGET_CARBON := TRUE}
  146. {$setc TARGET_CPU_68K := FALSE}
  147. {$setc TARGET_CPU_MIPS := FALSE}
  148. {$setc TARGET_CPU_SPARC := FALSE}
  149. {$setc TARGET_OS_UNIX := FALSE}
  150. {$setc TARGET_OS_WIN32 := FALSE}
  151. {$setc TARGET_RT_MAC_68881 := FALSE}
  152. {$setc TARGET_RT_MAC_CFM := FALSE}
  153. {$setc TARGET_RT_MAC_MACHO := TRUE}
  154. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  155. {$setc TYPE_BOOL := FALSE}
  156. {$setc TYPE_EXTENDED := FALSE}
  157. {$setc TYPE_LONGLONG := TRUE}
  158. uses MacTypes,CFBase,CFArray,CFDictionary;
  159. {$endc} {not MACOSALLINCLUDE}
  160. {$ALIGN POWER}
  161. {#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3}
  162. type
  163. CFLocaleRef = ^SInt32; { an opaque type }
  164. function CFLocaleGetTypeID: CFTypeID; external name '_CFLocaleGetTypeID';
  165. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  166. function CFLocaleGetSystem: CFLocaleRef; external name '_CFLocaleGetSystem';
  167. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  168. // Returns the "root", canonical locale. Contains fixed "backstop" settings.
  169. function CFLocaleCopyCurrent: CFLocaleRef; external name '_CFLocaleCopyCurrent';
  170. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  171. // Returns the logical "user" locale for the current user.
  172. // [This is Copy in the sense that you get a retain you have to release,
  173. // but we may return the same cached object over and over.] Settings
  174. // you get from this locale do not change under you as CFPreferences
  175. // are changed (for safety and correctness). Generally you would not
  176. // grab this and hold onto it forever, but use it to do the operations
  177. // you need to do at the moment, then throw it away. (The non-changing
  178. // ensures that all the results of your operations are consistent.)
  179. function CFLocaleCopyAvailableLocaleIdentifiers: CFArrayRef; external name '_CFLocaleCopyAvailableLocaleIdentifiers';
  180. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  181. // Returns an array of CFStrings that represents all locales for
  182. // which locale data is available.
  183. function CFLocaleCopyISOLanguageCodes: CFArrayRef; external name '_CFLocaleCopyISOLanguageCodes';
  184. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  185. // Returns an array of CFStrings that represents all known legal ISO
  186. // language codes. Note: many of these will not have any supporting
  187. // locale data in Mac OS X.
  188. function CFLocaleCopyISOCountryCodes: CFArrayRef; external name '_CFLocaleCopyISOCountryCodes';
  189. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  190. // Returns an array of CFStrings that represents all known legal ISO
  191. // country codes. Note: many of these will not have any supporting
  192. // locale data in Mac OS X.
  193. function CFLocaleCopyISOCurrencyCodes: CFArrayRef; external name '_CFLocaleCopyISOCurrencyCodes';
  194. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  195. // Returns an array of CFStrings that represents all known legal ISO
  196. // currency codes. Note: some of these currencies may be obsolete, or
  197. // represent other financial instruments.
  198. function CFLocaleCopyCommonISOCurrencyCodes: CFArrayRef; external name '_CFLocaleCopyCommonISOCurrencyCodes';
  199. (* AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER *)
  200. // Returns an array of CFStrings that represents ISO currency codes for
  201. // currencies in common use.
  202. function CFLocaleCopyPreferredLanguages: CFArrayRef; external name '_CFLocaleCopyPreferredLanguages';
  203. (* AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER *)
  204. // Returns the array of canonicalized CFString locale IDs that the user prefers.
  205. function CFLocaleCreateCanonicalLanguageIdentifierFromString( allocator: CFAllocatorRef; localeIdentifier: CFStringRef ): CFStringRef; external name '_CFLocaleCreateCanonicalLanguageIdentifierFromString';
  206. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  207. // Map an arbitrary language identification string (something close at
  208. // least) to a canonical language identifier.
  209. function CFLocaleCreateCanonicalLocaleIdentifierFromString( allocator: CFAllocatorRef; localeIdentifier: CFStringRef ): CFStringRef; external name '_CFLocaleCreateCanonicalLocaleIdentifierFromString';
  210. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  211. // Map an arbitrary locale identification string (something close at
  212. // least) to the canonical identifier.
  213. function CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes( allocator: CFAllocatorRef; lcode: LangCode; rcode: RegionCode ): CFStringRef; external name '_CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes';
  214. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  215. // Map a Mac OS LangCode and RegionCode to the canonical locale identifier.
  216. function CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode( allocator: CFAllocatorRef; lcid: UInt32 ): CFStringRef; external name '_CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode';
  217. (* AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER *)
  218. // Map a Windows LCID to the canonical locale identifier.
  219. function CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier( localeIdentifier: CFStringRef ): UInt32; external name '_CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier';
  220. (* AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER *)
  221. // Map a locale identifier to a Windows LCID.
  222. type
  223. CFLocaleLanguageDirection = SIGNEDLONG;
  224. const
  225. kCFLocaleLanguageDirectionUnknown = 0;
  226. kCFLocaleLanguageDirectionLeftToRight = 1;
  227. kCFLocaleLanguageDirectionRightToLeft = 2;
  228. kCFLocaleLanguageDirectionTopToBottom = 3;
  229. kCFLocaleLanguageDirectionBottomToTop = 4;
  230. function CFLocaleGetLanguageCharacterDirection( isoLangCode: CFStringRef ): CFLocaleLanguageDirection; external name '_CFLocaleGetLanguageCharacterDirection';
  231. (* AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER *)
  232. function CFLocaleGetLanguageLineDirection( isoLangCode: CFStringRef ): CFLocaleLanguageDirection; external name '_CFLocaleGetLanguageLineDirection';
  233. (* AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER *)
  234. function CFLocaleCreateComponentsFromLocaleIdentifier( allocator: CFAllocatorRef; localeID: CFStringRef ): CFDictionaryRef; external name '_CFLocaleCreateComponentsFromLocaleIdentifier';
  235. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  236. // Parses a locale ID consisting of language, script, country, variant,
  237. // and keyword/value pairs into a dictionary. The keys are the constant
  238. // CFStrings corresponding to the locale ID components, and the values
  239. // will correspond to constants where available.
  240. // Example: "en_US@calendar=japanese" yields a dictionary with three
  241. // entries: kCFLocaleLanguageCode=en, kCFLocaleCountryCode=US, and
  242. // kCFLocaleCalendarIdentifier=kCFJapaneseCalendar.
  243. function CFLocaleCreateLocaleIdentifierFromComponents( allocator: CFAllocatorRef; dictionary: CFDictionaryRef ): CFStringRef; external name '_CFLocaleCreateLocaleIdentifierFromComponents';
  244. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  245. // Reverses the actions of CFLocaleCreateDictionaryFromLocaleIdentifier,
  246. // creating a single string from the data in the dictionary. The
  247. // dictionary {kCFLocaleLanguageCode=en, kCFLocaleCountryCode=US,
  248. // kCFLocaleCalendarIdentifier=kCFJapaneseCalendar} becomes
  249. // "en_US@calendar=japanese".
  250. function CFLocaleCreate( allocator: CFAllocatorRef; localeIdentifier: CFStringRef ): CFLocaleRef; external name '_CFLocaleCreate';
  251. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  252. // Returns a CFLocaleRef for the locale named by the "arbitrary" locale identifier.
  253. function CFLocaleCreateCopy( allocator: CFAllocatorRef; locale: CFLocaleRef ): CFLocaleRef; external name '_CFLocaleCreateCopy';
  254. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  255. // Having gotten a CFLocale from somebody, code should make a copy
  256. // if it is going to use it for several operations
  257. // or hold onto it. In the future, there may be mutable locales.
  258. function CFLocaleGetIdentifier( locale: CFLocaleRef ): CFStringRef; external name '_CFLocaleGetIdentifier';
  259. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  260. // Returns the locale's identifier. This may not be the same string
  261. // that the locale was created with (CFLocale may canonicalize it).
  262. function CFLocaleGetValue( locale: CFLocaleRef; key: CFStringRef ): CFTypeRef; external name '_CFLocaleGetValue';
  263. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  264. // Returns the value for the given key. This is how settings and state
  265. // are accessed via a CFLocale. Values might be of any CF type.
  266. function CFLocaleCopyDisplayNameForPropertyValue( displayLocale: CFLocaleRef; key: CFStringRef; value: CFStringRef ): CFStringRef; external name '_CFLocaleCopyDisplayNameForPropertyValue';
  267. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  268. // Returns the display name for the given value. The key tells what
  269. // the value is, and is one of the usual locale property keys, though
  270. // not all locale property keys have values with display name values.
  271. var kCFLocaleCurrentLocaleDidChangeNotification: CFStringRef; external name '_kCFLocaleCurrentLocaleDidChangeNotification'; (* attribute const *)
  272. (* AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER *)
  273. // Locale Keys
  274. var kCFLocaleIdentifier: CFStringRef; external name '_kCFLocaleIdentifier'; (* attribute const *)
  275. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  276. var kCFLocaleLanguageCode: CFStringRef; external name '_kCFLocaleLanguageCode'; (* attribute const *)
  277. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  278. var kCFLocaleCountryCode: CFStringRef; external name '_kCFLocaleCountryCode'; (* attribute const *)
  279. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  280. var kCFLocaleScriptCode: CFStringRef; external name '_kCFLocaleScriptCode'; (* attribute const *)
  281. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  282. var kCFLocaleVariantCode: CFStringRef; external name '_kCFLocaleVariantCode'; (* attribute const *)
  283. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  284. var kCFLocaleExemplarCharacterSet: CFStringRef; external name '_kCFLocaleExemplarCharacterSet'; (* attribute const *)
  285. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  286. var kCFLocaleCalendarIdentifier: CFStringRef; external name '_kCFLocaleCalendarIdentifier'; (* attribute const *)
  287. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  288. var kCFLocaleCalendar: CFStringRef; external name '_kCFLocaleCalendar'; (* attribute const *)
  289. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  290. var kCFLocaleCollationIdentifier: CFStringRef; external name '_kCFLocaleCollationIdentifier'; (* attribute const *)
  291. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  292. var kCFLocaleUsesMetricSystem: CFStringRef; external name '_kCFLocaleUsesMetricSystem'; (* attribute const *)
  293. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  294. var kCFLocaleMeasurementSystem: CFStringRef; external name '_kCFLocaleMeasurementSystem'; (* attribute const *)
  295. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) // "Metric" or "U.S."
  296. var kCFLocaleDecimalSeparator: CFStringRef; external name '_kCFLocaleDecimalSeparator'; (* attribute const *)
  297. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  298. var kCFLocaleGroupingSeparator: CFStringRef; external name '_kCFLocaleGroupingSeparator'; (* attribute const *)
  299. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  300. var kCFLocaleCurrencySymbol: CFStringRef; external name '_kCFLocaleCurrencySymbol'; (* attribute const *)
  301. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  302. var kCFLocaleCurrencyCode: CFStringRef; external name '_kCFLocaleCurrencyCode'; (* attribute const *)
  303. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) // ISO 3-letter currency code
  304. var kCFLocaleCollatorIdentifier: CFStringRef; external name '_kCFLocaleCollatorIdentifier'; (* attribute const *)
  305. (* AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER *)
  306. var kCFLocaleQuotationBeginDelimiterKey: CFStringRef; external name '_kCFLocaleQuotationBeginDelimiterKey'; (* attribute const *)
  307. (* AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER *)
  308. var kCFLocaleQuotationEndDelimiterKey: CFStringRef; external name '_kCFLocaleQuotationEndDelimiterKey'; (* attribute const *)
  309. (* AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER *)
  310. var kCFLocaleAlternateQuotationBeginDelimiterKey: CFStringRef; external name '_kCFLocaleAlternateQuotationBeginDelimiterKey'; (* attribute const *)
  311. (* AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER *)
  312. var kCFLocaleAlternateQuotationEndDelimiterKey: CFStringRef; external name '_kCFLocaleAlternateQuotationEndDelimiterKey'; (* attribute const *)
  313. (* AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER *)
  314. // Values for kCFLocaleCalendarIdentifier
  315. var kCFGregorianCalendar: CFStringRef; external name '_kCFGregorianCalendar'; (* attribute const *)
  316. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  317. var kCFBuddhistCalendar: CFStringRef; external name '_kCFBuddhistCalendar'; (* attribute const *)
  318. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  319. var kCFChineseCalendar: CFStringRef; external name '_kCFChineseCalendar'; (* attribute const *)
  320. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  321. var kCFHebrewCalendar: CFStringRef; external name '_kCFHebrewCalendar'; (* attribute const *)
  322. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  323. var kCFIslamicCalendar: CFStringRef; external name '_kCFIslamicCalendar'; (* attribute const *)
  324. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  325. var kCFIslamicCivilCalendar: CFStringRef; external name '_kCFIslamicCivilCalendar'; (* attribute const *)
  326. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  327. var kCFJapaneseCalendar: CFStringRef; external name '_kCFJapaneseCalendar'; (* attribute const *)
  328. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  329. var kCFRepublicOfChinaCalendar: CFStringRef; external name '_kCFRepublicOfChinaCalendar'; (* attribute const *)
  330. (* AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER *)
  331. var kCFPersianCalendar: CFStringRef; external name '_kCFPersianCalendar'; (* attribute const *)
  332. (* AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER *)
  333. var kCFIndianCalendar: CFStringRef; external name '_kCFIndianCalendar'; (* attribute const *)
  334. (* AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER *)
  335. var kCFISO8601Calendar: CFStringRef; external name '_kCFISO8601Calendar'; (* attribute const *)
  336. (* AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER *)
  337. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  338. end.
  339. {$endc} {not MACOSALLINCLUDE}