CFDateFormatter.pas 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. { CFDateFormatter.h
  2. Copyright (c) 2003-2012, 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. { Pascal Translation Updated: Jonas Maebe <[email protected]>, September 2012 }
  9. {
  10. Modified for use with Free Pascal
  11. Version 308
  12. Please report any bugs to <[email protected]>
  13. }
  14. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  15. {$mode macpas}
  16. {$packenum 1}
  17. {$macro on}
  18. {$inline on}
  19. {$calling mwpascal}
  20. unit CFDateFormatter;
  21. interface
  22. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  23. {$setc GAP_INTERFACES_VERSION := $0308}
  24. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  25. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  26. {$endc}
  27. {$ifc defined CPUPOWERPC and defined CPUI386}
  28. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  29. {$endc}
  30. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  31. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  32. {$endc}
  33. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  34. {$setc __ppc__ := 1}
  35. {$elsec}
  36. {$setc __ppc__ := 0}
  37. {$endc}
  38. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  39. {$setc __ppc64__ := 1}
  40. {$elsec}
  41. {$setc __ppc64__ := 0}
  42. {$endc}
  43. {$ifc not defined __i386__ and defined CPUI386}
  44. {$setc __i386__ := 1}
  45. {$elsec}
  46. {$setc __i386__ := 0}
  47. {$endc}
  48. {$ifc not defined __x86_64__ and defined CPUX86_64}
  49. {$setc __x86_64__ := 1}
  50. {$elsec}
  51. {$setc __x86_64__ := 0}
  52. {$endc}
  53. {$ifc not defined __arm__ and defined CPUARM}
  54. {$setc __arm__ := 1}
  55. {$elsec}
  56. {$setc __arm__ := 0}
  57. {$endc}
  58. {$ifc defined cpu64}
  59. {$setc __LP64__ := 1}
  60. {$elsec}
  61. {$setc __LP64__ := 0}
  62. {$endc}
  63. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  64. {$error Conflicting definitions for __ppc__ and __i386__}
  65. {$endc}
  66. {$ifc defined __ppc__ and __ppc__}
  67. {$setc TARGET_CPU_PPC := TRUE}
  68. {$setc TARGET_CPU_PPC64 := FALSE}
  69. {$setc TARGET_CPU_X86 := FALSE}
  70. {$setc TARGET_CPU_X86_64 := FALSE}
  71. {$setc TARGET_CPU_ARM := FALSE}
  72. {$setc TARGET_OS_MAC := TRUE}
  73. {$setc TARGET_OS_IPHONE := FALSE}
  74. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  75. {$setc TARGET_OS_EMBEDDED := FALSE}
  76. {$elifc defined __ppc64__ and __ppc64__}
  77. {$setc TARGET_CPU_PPC := FALSE}
  78. {$setc TARGET_CPU_PPC64 := TRUE}
  79. {$setc TARGET_CPU_X86 := FALSE}
  80. {$setc TARGET_CPU_X86_64 := FALSE}
  81. {$setc TARGET_CPU_ARM := FALSE}
  82. {$setc TARGET_OS_MAC := TRUE}
  83. {$setc TARGET_OS_IPHONE := FALSE}
  84. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  85. {$setc TARGET_OS_EMBEDDED := FALSE}
  86. {$elifc defined __i386__ and __i386__}
  87. {$setc TARGET_CPU_PPC := FALSE}
  88. {$setc TARGET_CPU_PPC64 := FALSE}
  89. {$setc TARGET_CPU_X86 := TRUE}
  90. {$setc TARGET_CPU_X86_64 := FALSE}
  91. {$setc TARGET_CPU_ARM := FALSE}
  92. {$ifc defined(iphonesim)}
  93. {$setc TARGET_OS_MAC := FALSE}
  94. {$setc TARGET_OS_IPHONE := TRUE}
  95. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  96. {$elsec}
  97. {$setc TARGET_OS_MAC := TRUE}
  98. {$setc TARGET_OS_IPHONE := FALSE}
  99. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  100. {$endc}
  101. {$setc TARGET_OS_EMBEDDED := FALSE}
  102. {$elifc defined __x86_64__ and __x86_64__}
  103. {$setc TARGET_CPU_PPC := FALSE}
  104. {$setc TARGET_CPU_PPC64 := FALSE}
  105. {$setc TARGET_CPU_X86 := FALSE}
  106. {$setc TARGET_CPU_X86_64 := TRUE}
  107. {$setc TARGET_CPU_ARM := FALSE}
  108. {$setc TARGET_OS_MAC := TRUE}
  109. {$setc TARGET_OS_IPHONE := FALSE}
  110. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  111. {$setc TARGET_OS_EMBEDDED := FALSE}
  112. {$elifc defined __arm__ and __arm__}
  113. {$setc TARGET_CPU_PPC := FALSE}
  114. {$setc TARGET_CPU_PPC64 := FALSE}
  115. {$setc TARGET_CPU_X86 := FALSE}
  116. {$setc TARGET_CPU_X86_64 := FALSE}
  117. {$setc TARGET_CPU_ARM := TRUE}
  118. { will require compiler define when/if other Apple devices with ARM cpus ship }
  119. {$setc TARGET_OS_MAC := FALSE}
  120. {$setc TARGET_OS_IPHONE := TRUE}
  121. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  122. {$setc TARGET_OS_EMBEDDED := TRUE}
  123. {$elsec}
  124. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
  125. {$endc}
  126. {$ifc defined __LP64__ and __LP64__ }
  127. {$setc TARGET_CPU_64 := TRUE}
  128. {$elsec}
  129. {$setc TARGET_CPU_64 := FALSE}
  130. {$endc}
  131. {$ifc defined FPC_BIG_ENDIAN}
  132. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  133. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  134. {$elifc defined FPC_LITTLE_ENDIAN}
  135. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  136. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  137. {$elsec}
  138. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  139. {$endc}
  140. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  141. {$setc CALL_NOT_IN_CARBON := FALSE}
  142. {$setc OLDROUTINENAMES := FALSE}
  143. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  144. {$setc OPAQUE_UPP_TYPES := TRUE}
  145. {$setc OTCARBONAPPLICATION := TRUE}
  146. {$setc OTKERNEL := FALSE}
  147. {$setc PM_USE_SESSION_APIS := TRUE}
  148. {$setc TARGET_API_MAC_CARBON := TRUE}
  149. {$setc TARGET_API_MAC_OS8 := FALSE}
  150. {$setc TARGET_API_MAC_OSX := TRUE}
  151. {$setc TARGET_CARBON := TRUE}
  152. {$setc TARGET_CPU_68K := FALSE}
  153. {$setc TARGET_CPU_MIPS := FALSE}
  154. {$setc TARGET_CPU_SPARC := FALSE}
  155. {$setc TARGET_OS_UNIX := FALSE}
  156. {$setc TARGET_OS_WIN32 := FALSE}
  157. {$setc TARGET_RT_MAC_68881 := FALSE}
  158. {$setc TARGET_RT_MAC_CFM := FALSE}
  159. {$setc TARGET_RT_MAC_MACHO := TRUE}
  160. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  161. {$setc TYPE_BOOL := FALSE}
  162. {$setc TYPE_EXTENDED := FALSE}
  163. {$setc TYPE_LONGLONG := TRUE}
  164. uses MacTypes,CFBase,CFDate,CFLocale;
  165. {$endc} {not MACOSALLINCLUDE}
  166. {$ALIGN POWER}
  167. {#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3}
  168. type
  169. CFDateFormatterRef = ^__CFDateFormatter; { an opaque type }
  170. __CFDateFormatter = record end;
  171. // CFDateFormatters are not thread-safe. Do not use one from multiple threads!
  172. function CFDateFormatterCreateDateFormatFromTemplate( allocator: CFAllocatorRef; tmplate: CFStringRef; options: CFOptionFlags; locale: CFLocaleRef ): CFStringRef; external name '_CFDateFormatterCreateDateFormatFromTemplate';
  173. (* CF_AVAILABLE_STARTING(10_6, 4_0) *)
  174. // no options defined, pass 0 for now
  175. function CFDateFormatterGetTypeID: CFTypeID; external name '_CFDateFormatterGetTypeID';
  176. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  177. type
  178. CFDateFormatterStyle = CFIndex;
  179. const
  180. // date and time format styles
  181. kCFDateFormatterNoStyle = 0;
  182. kCFDateFormatterShortStyle = 1;
  183. kCFDateFormatterMediumStyle = 2;
  184. kCFDateFormatterLongStyle = 3;
  185. kCFDateFormatterFullStyle = 4;
  186. // The exact formatted result for these date and time styles depends on the
  187. // locale, but generally:
  188. // Short is completely numeric, such as "12/13/52" or "3:30pm"
  189. // Medium is longer, such as "Jan 12, 1952"
  190. // Long is longer, such as "January 12, 1952" or "3:30:32pm"
  191. // Full is pretty complete; e.g. "Tuesday, April 12, 1952 AD" or "3:30:42pm PST"
  192. // The specifications though are left fuzzy, in part simply because a user's
  193. // preference choices may affect the output, and also the results may change
  194. // from one OS release to another. To produce an exactly formatted date you
  195. // should not rely on styles and localization, but set the format string and
  196. // use nothing but numbers.
  197. function CFDateFormatterCreate( allocator: CFAllocatorRef; locale: CFLocaleRef; dateStyle: CFDateFormatterStyle; timeStyle: CFDateFormatterStyle ): CFDateFormatterRef; external name '_CFDateFormatterCreate';
  198. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  199. // Returns a CFDateFormatter, localized to the given locale, which
  200. // will format dates to the given date and time styles.
  201. function CFDateFormatterGetLocale( formatter: CFDateFormatterRef ): CFLocaleRef; external name '_CFDateFormatterGetLocale';
  202. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  203. function CFDateFormatterGetDateStyle( formatter: CFDateFormatterRef ): CFDateFormatterStyle; external name '_CFDateFormatterGetDateStyle';
  204. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  205. function CFDateFormatterGetTimeStyle( formatter: CFDateFormatterRef ): CFDateFormatterStyle; external name '_CFDateFormatterGetTimeStyle';
  206. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  207. // Get the properties with which the date formatter was created.
  208. function CFDateFormatterGetFormat( formatter: CFDateFormatterRef ): CFStringRef; external name '_CFDateFormatterGetFormat';
  209. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  210. procedure CFDateFormatterSetFormat( formatter: CFDateFormatterRef; formatString: CFStringRef ); external name '_CFDateFormatterSetFormat';
  211. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  212. // Set the format description string of the date formatter. This
  213. // overrides the style settings. The format of the format string
  214. // is as defined by the ICU library. The date formatter starts with a
  215. // default format string defined by the style arguments with
  216. // which it was created.
  217. function CFDateFormatterCreateStringWithDate( allocator: CFAllocatorRef; formatter: CFDateFormatterRef; date: CFDateRef ): CFStringRef; external name '_CFDateFormatterCreateStringWithDate';
  218. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  219. function CFDateFormatterCreateStringWithAbsoluteTime( allocator: CFAllocatorRef; formatter: CFDateFormatterRef; at: CFAbsoluteTime ): CFStringRef; external name '_CFDateFormatterCreateStringWithAbsoluteTime';
  220. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  221. // Create a string representation of the given date or CFAbsoluteTime
  222. // using the current state of the date formatter.
  223. function CFDateFormatterCreateDateFromString( allocator: CFAllocatorRef; formatter: CFDateFormatterRef; strng: CFStringRef; rangep: CFRangePtr ): CFDateRef; external name '_CFDateFormatterCreateDateFromString';
  224. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  225. function CFDateFormatterGetAbsoluteTimeFromString( formatter: CFDateFormatterRef; strng: CFStringRef; rangep: CFRangePtr; atp: CFAbsoluteTimePtr ): Boolean; external name '_CFDateFormatterGetAbsoluteTimeFromString';
  226. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  227. // Parse a string representation of a date using the current state
  228. // of the date formatter. The range parameter specifies the range
  229. // of the string in which the parsing should occur in input, and on
  230. // output indicates the extent that was used; this parameter can
  231. // be NULL, in which case the whole string may be used. The
  232. // return value indicates whether some date was computed and
  233. // (if atp is not NULL) stored at the location specified by atp.
  234. procedure CFDateFormatterSetProperty( formatter: CFDateFormatterRef; key: CFStringRef; value: CFTypeRef ); external name '_CFDateFormatterSetProperty';
  235. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  236. function CFDateFormatterCopyProperty( formatter: CFDateFormatterRef; key: CFStringRef ): CFTypeRef; external name '_CFDateFormatterCopyProperty';
  237. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  238. // Set and get various properties of the date formatter, the set of
  239. // which may be expanded in the future.
  240. var kCFDateFormatterIsLenient: CFStringRef; external name '_kCFDateFormatterIsLenient'; (* attribute const *)
  241. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) // CFBoolean
  242. var kCFDateFormatterTimeZone: CFStringRef; external name '_kCFDateFormatterTimeZone'; (* attribute const *)
  243. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) // CFTimeZone
  244. var kCFDateFormatterCalendarName: CFStringRef; external name '_kCFDateFormatterCalendarName'; (* attribute const *)
  245. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) // CFString
  246. var kCFDateFormatterDefaultFormat: CFStringRef; external name '_kCFDateFormatterDefaultFormat'; (* attribute const *)
  247. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) // CFString
  248. var kCFDateFormatterTwoDigitStartDate: CFStringRef; external name '_kCFDateFormatterTwoDigitStartDate'; (* attribute const *)
  249. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *) // CFDate
  250. var kCFDateFormatterDefaultDate: CFStringRef; external name '_kCFDateFormatterDefaultDate'; (* attribute const *)
  251. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *) // CFDate
  252. var kCFDateFormatterCalendar: CFStringRef; external name '_kCFDateFormatterCalendar'; (* attribute const *)
  253. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *) // CFCalendar
  254. var kCFDateFormatterEraSymbols: CFStringRef; external name '_kCFDateFormatterEraSymbols'; (* attribute const *)
  255. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *) // CFArray of CFString
  256. var kCFDateFormatterMonthSymbols: CFStringRef; external name '_kCFDateFormatterMonthSymbols'; (* attribute const *)
  257. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *) // CFArray of CFString
  258. var kCFDateFormatterShortMonthSymbols: CFStringRef; external name '_kCFDateFormatterShortMonthSymbols'; (* attribute const *)
  259. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *) // CFArray of CFString
  260. var kCFDateFormatterWeekdaySymbols: CFStringRef; external name '_kCFDateFormatterWeekdaySymbols'; (* attribute const *)
  261. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *) // CFArray of CFString
  262. var kCFDateFormatterShortWeekdaySymbols: CFStringRef; external name '_kCFDateFormatterShortWeekdaySymbols'; (* attribute const *)
  263. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *) // CFArray of CFString
  264. var kCFDateFormatterAMSymbol: CFStringRef; external name '_kCFDateFormatterAMSymbol'; (* attribute const *)
  265. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *) // CFString
  266. var kCFDateFormatterPMSymbol: CFStringRef; external name '_kCFDateFormatterPMSymbol'; (* attribute const *)
  267. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *) // CFString
  268. var kCFDateFormatterLongEraSymbols: CFStringRef; external name '_kCFDateFormatterLongEraSymbols'; (* attribute const *)
  269. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFArray of CFString
  270. var kCFDateFormatterVeryShortMonthSymbols: CFStringRef; external name '_kCFDateFormatterVeryShortMonthSymbols'; (* attribute const *)
  271. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFArray of CFString
  272. var kCFDateFormatterStandaloneMonthSymbols: CFStringRef; external name '_kCFDateFormatterStandaloneMonthSymbols'; (* attribute const *)
  273. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFArray of CFString
  274. var kCFDateFormatterShortStandaloneMonthSymbols: CFStringRef; external name '_kCFDateFormatterShortStandaloneMonthSymbols'; (* attribute const *)
  275. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFArray of CFString
  276. var kCFDateFormatterVeryShortStandaloneMonthSymbols: CFStringRef; external name '_kCFDateFormatterVeryShortStandaloneMonthSymbols'; (* attribute const *)
  277. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFArray of CFString
  278. var kCFDateFormatterVeryShortWeekdaySymbols: CFStringRef; external name '_kCFDateFormatterVeryShortWeekdaySymbols'; (* attribute const *)
  279. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFArray of CFString
  280. var kCFDateFormatterStandaloneWeekdaySymbols: CFStringRef; external name '_kCFDateFormatterStandaloneWeekdaySymbols'; (* attribute const *)
  281. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFArray of CFString
  282. var kCFDateFormatterShortStandaloneWeekdaySymbols: CFStringRef; external name '_kCFDateFormatterShortStandaloneWeekdaySymbols'; (* attribute const *)
  283. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFArray of CFString
  284. var kCFDateFormatterVeryShortStandaloneWeekdaySymbols: CFStringRef; external name '_kCFDateFormatterVeryShortStandaloneWeekdaySymbols'; (* attribute const *)
  285. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFArray of CFString
  286. var kCFDateFormatterQuarterSymbols: CFStringRef; external name '_kCFDateFormatterQuarterSymbols'; (* attribute const *)
  287. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFArray of CFString
  288. var kCFDateFormatterShortQuarterSymbols: CFStringRef; external name '_kCFDateFormatterShortQuarterSymbols'; (* attribute const *)
  289. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFArray of CFString
  290. var kCFDateFormatterStandaloneQuarterSymbols: CFStringRef; external name '_kCFDateFormatterStandaloneQuarterSymbols'; (* attribute const *)
  291. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFArray of CFString
  292. var kCFDateFormatterShortStandaloneQuarterSymbols: CFStringRef; external name '_kCFDateFormatterShortStandaloneQuarterSymbols'; (* attribute const *)
  293. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFArray of CFString
  294. var kCFDateFormatterGregorianStartDate: CFStringRef; external name '_kCFDateFormatterGregorianStartDate'; (* attribute const *)
  295. (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFDate
  296. var kCFDateFormatterDoesRelativeDateFormattingKey: CFStringRef; external name '_kCFDateFormatterDoesRelativeDateFormattingKey'; (* attribute const *)
  297. (* CF_AVAILABLE_STARTING(10_6, 4_0) *) // CFBoolean
  298. // See CFLocale.h for these calendar constants:
  299. // const CFStringRef kCFGregorianCalendar;
  300. // const CFStringRef kCFBuddhistCalendar;
  301. // const CFStringRef kCFJapaneseCalendar;
  302. // const CFStringRef kCFIslamicCalendar;
  303. // const CFStringRef kCFIslamicCivilCalendar;
  304. // const CFStringRef kCFHebrewCalendar;
  305. // const CFStringRef kCFChineseCalendar;
  306. // const CFStringRef kCFRepublicOfChinaCalendar;
  307. // const CFStringRef kCFPersianCalendar;
  308. // const CFStringRef kCFIndianCalendar;
  309. // const CFStringRef kCFISO8601Calendar; not yet implemented
  310. {#endif}
  311. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  312. end.
  313. {$endc} {not MACOSALLINCLUDE}