MacLocales.pas 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. {
  2. File: CarbonCore/MacLocales.h
  3. Contains: Types & prototypes for locale functions
  4. Copyright: © 1998-2012 by Apple Inc. All rights reserved.
  5. Bugs?: For bug reports, consult the following page on
  6. the World Wide Web:
  7. http://bugs.freepascal.org
  8. }
  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. {$modeswitch cblocks}
  17. {$packenum 1}
  18. {$macro on}
  19. {$inline on}
  20. {$calling mwpascal}
  21. {$IFNDEF FPC_DOTTEDUNITS}
  22. unit MacLocales;
  23. {$ENDIF FPC_DOTTEDUNITS}
  24. interface
  25. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  26. {$setc GAP_INTERFACES_VERSION := $0308}
  27. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  28. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  29. {$endc}
  30. {$ifc defined CPUPOWERPC and defined CPUI386}
  31. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  32. {$endc}
  33. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  34. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  35. {$endc}
  36. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  37. {$setc __ppc__ := 1}
  38. {$elsec}
  39. {$setc __ppc__ := 0}
  40. {$endc}
  41. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  42. {$setc __ppc64__ := 1}
  43. {$elsec}
  44. {$setc __ppc64__ := 0}
  45. {$endc}
  46. {$ifc not defined __i386__ and defined CPUI386}
  47. {$setc __i386__ := 1}
  48. {$elsec}
  49. {$setc __i386__ := 0}
  50. {$endc}
  51. {$ifc not defined __x86_64__ and defined CPUX86_64}
  52. {$setc __x86_64__ := 1}
  53. {$elsec}
  54. {$setc __x86_64__ := 0}
  55. {$endc}
  56. {$ifc not defined __arm__ and defined CPUARM}
  57. {$setc __arm__ := 1}
  58. {$elsec}
  59. {$setc __arm__ := 0}
  60. {$endc}
  61. {$ifc not defined __arm64__ and defined CPUAARCH64}
  62. {$setc __arm64__ := 1}
  63. {$elsec}
  64. {$setc __arm64__ := 0}
  65. {$endc}
  66. {$ifc defined cpu64}
  67. {$setc __LP64__ := 1}
  68. {$elsec}
  69. {$setc __LP64__ := 0}
  70. {$endc}
  71. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  72. {$error Conflicting definitions for __ppc__ and __i386__}
  73. {$endc}
  74. {$ifc defined __ppc__ and __ppc__}
  75. {$setc TARGET_CPU_PPC := TRUE}
  76. {$setc TARGET_CPU_PPC64 := FALSE}
  77. {$setc TARGET_CPU_X86 := FALSE}
  78. {$setc TARGET_CPU_X86_64 := FALSE}
  79. {$setc TARGET_CPU_ARM := FALSE}
  80. {$setc TARGET_CPU_ARM64 := FALSE}
  81. {$setc TARGET_OS_MAC := TRUE}
  82. {$setc TARGET_OS_IPHONE := FALSE}
  83. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  84. {$setc TARGET_OS_EMBEDDED := FALSE}
  85. {$elifc defined __ppc64__ and __ppc64__}
  86. {$setc TARGET_CPU_PPC := FALSE}
  87. {$setc TARGET_CPU_PPC64 := TRUE}
  88. {$setc TARGET_CPU_X86 := FALSE}
  89. {$setc TARGET_CPU_X86_64 := FALSE}
  90. {$setc TARGET_CPU_ARM := FALSE}
  91. {$setc TARGET_CPU_ARM64 := FALSE}
  92. {$setc TARGET_OS_MAC := TRUE}
  93. {$setc TARGET_OS_IPHONE := FALSE}
  94. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  95. {$setc TARGET_OS_EMBEDDED := FALSE}
  96. {$elifc defined __i386__ and __i386__}
  97. {$setc TARGET_CPU_PPC := FALSE}
  98. {$setc TARGET_CPU_PPC64 := FALSE}
  99. {$setc TARGET_CPU_X86 := TRUE}
  100. {$setc TARGET_CPU_X86_64 := FALSE}
  101. {$setc TARGET_CPU_ARM := FALSE}
  102. {$setc TARGET_CPU_ARM64 := FALSE}
  103. {$ifc defined iphonesim}
  104. {$setc TARGET_OS_MAC := FALSE}
  105. {$setc TARGET_OS_IPHONE := TRUE}
  106. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  107. {$elsec}
  108. {$setc TARGET_OS_MAC := TRUE}
  109. {$setc TARGET_OS_IPHONE := FALSE}
  110. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  111. {$endc}
  112. {$setc TARGET_OS_EMBEDDED := FALSE}
  113. {$elifc defined __x86_64__ and __x86_64__}
  114. {$setc TARGET_CPU_PPC := FALSE}
  115. {$setc TARGET_CPU_PPC64 := FALSE}
  116. {$setc TARGET_CPU_X86 := FALSE}
  117. {$setc TARGET_CPU_X86_64 := TRUE}
  118. {$setc TARGET_CPU_ARM := FALSE}
  119. {$setc TARGET_CPU_ARM64 := FALSE}
  120. {$ifc defined iphonesim}
  121. {$setc TARGET_OS_MAC := FALSE}
  122. {$setc TARGET_OS_IPHONE := TRUE}
  123. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  124. {$elsec}
  125. {$setc TARGET_OS_MAC := TRUE}
  126. {$setc TARGET_OS_IPHONE := FALSE}
  127. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  128. {$endc}
  129. {$setc TARGET_OS_EMBEDDED := FALSE}
  130. {$elifc defined __arm__ and __arm__}
  131. {$setc TARGET_CPU_PPC := FALSE}
  132. {$setc TARGET_CPU_PPC64 := FALSE}
  133. {$setc TARGET_CPU_X86 := FALSE}
  134. {$setc TARGET_CPU_X86_64 := FALSE}
  135. {$setc TARGET_CPU_ARM := TRUE}
  136. {$setc TARGET_CPU_ARM64 := FALSE}
  137. {$setc TARGET_OS_MAC := FALSE}
  138. {$setc TARGET_OS_IPHONE := TRUE}
  139. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  140. {$setc TARGET_OS_EMBEDDED := TRUE}
  141. {$elifc defined __arm64__ and __arm64__}
  142. {$setc TARGET_CPU_PPC := FALSE}
  143. {$setc TARGET_CPU_PPC64 := FALSE}
  144. {$setc TARGET_CPU_X86 := FALSE}
  145. {$setc TARGET_CPU_X86_64 := FALSE}
  146. {$setc TARGET_CPU_ARM := FALSE}
  147. {$setc TARGET_CPU_ARM64 := TRUE}
  148. {$ifc defined ios}
  149. {$setc TARGET_OS_MAC := FALSE}
  150. {$setc TARGET_OS_IPHONE := TRUE}
  151. {$setc TARGET_OS_EMBEDDED := TRUE}
  152. {$elsec}
  153. {$setc TARGET_OS_MAC := TRUE}
  154. {$setc TARGET_OS_IPHONE := FALSE}
  155. {$setc TARGET_OS_EMBEDDED := FALSE}
  156. {$endc}
  157. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  158. {$elsec}
  159. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
  160. {$endc}
  161. {$ifc defined __LP64__ and __LP64__ }
  162. {$setc TARGET_CPU_64 := TRUE}
  163. {$elsec}
  164. {$setc TARGET_CPU_64 := FALSE}
  165. {$endc}
  166. {$ifc defined FPC_BIG_ENDIAN}
  167. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  168. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  169. {$elifc defined FPC_LITTLE_ENDIAN}
  170. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  171. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  172. {$elsec}
  173. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  174. {$endc}
  175. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  176. {$setc CALL_NOT_IN_CARBON := FALSE}
  177. {$setc OLDROUTINENAMES := FALSE}
  178. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  179. {$setc OPAQUE_UPP_TYPES := TRUE}
  180. {$setc OTCARBONAPPLICATION := TRUE}
  181. {$setc OTKERNEL := FALSE}
  182. {$setc PM_USE_SESSION_APIS := TRUE}
  183. {$setc TARGET_API_MAC_CARBON := TRUE}
  184. {$setc TARGET_API_MAC_OS8 := FALSE}
  185. {$setc TARGET_API_MAC_OSX := TRUE}
  186. {$setc TARGET_CARBON := TRUE}
  187. {$setc TARGET_CPU_68K := FALSE}
  188. {$setc TARGET_CPU_MIPS := FALSE}
  189. {$setc TARGET_CPU_SPARC := FALSE}
  190. {$setc TARGET_OS_UNIX := FALSE}
  191. {$setc TARGET_OS_WIN32 := FALSE}
  192. {$setc TARGET_RT_MAC_68881 := FALSE}
  193. {$setc TARGET_RT_MAC_CFM := FALSE}
  194. {$setc TARGET_RT_MAC_MACHO := TRUE}
  195. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  196. {$setc TYPE_BOOL := FALSE}
  197. {$setc TYPE_EXTENDED := FALSE}
  198. {$setc TYPE_LONGLONG := TRUE}
  199. {$IFDEF FPC_DOTTEDUNITS}
  200. uses MacOsApi.MacTypes;
  201. {$ELSE FPC_DOTTEDUNITS}
  202. uses MacTypes;
  203. {$ENDIF FPC_DOTTEDUNITS}
  204. {$endc} {not MACOSALLINCLUDE}
  205. {$ifc TARGET_OS_MAC}
  206. {$ALIGN MAC68K}
  207. {
  208. -------------------------------------------------------------------------------------------------
  209. TYPES & CONSTANTS
  210. -------------------------------------------------------------------------------------------------
  211. }
  212. type
  213. LocaleRef = ^OpaqueLocaleRef; { an opaque type }
  214. OpaqueLocaleRef = record end;
  215. LocalePartMask = UInt32;
  216. const
  217. { bit set requests the following:}
  218. kLocaleLanguageMask = 1 shl 0; { ISO 639-1 or -2 language code (2 or 3 letters)}
  219. kLocaleLanguageVariantMask = 1 shl 1; { custom string for language variant}
  220. kLocaleScriptMask = 1 shl 2; { ISO 15924 script code (2 letters)}
  221. kLocaleScriptVariantMask = 1 shl 3; { custom string for script variant}
  222. kLocaleRegionMask = 1 shl 4; { ISO 3166 country/region code (2 letters)}
  223. kLocaleRegionVariantMask = 1 shl 5; { custom string for region variant}
  224. kLocaleAllPartsMask = $0000003F; { all of the above}
  225. type
  226. LocaleOperationClass = FourCharCode;
  227. { constants for LocaleOperationClass are in UnicodeUtilities interfaces}
  228. type
  229. LocaleAndVariantPtr = ^LocaleAndVariant;
  230. LocaleOperationVariant = FourCharCode;
  231. LocaleAndVariant = record
  232. locale: LocaleRef;
  233. opVariant: LocaleOperationVariant;
  234. end;
  235. type
  236. LocaleNameMask = UInt32;
  237. const
  238. { bit set requests the following:}
  239. kLocaleNameMask = 1 shl 0; { name of locale}
  240. kLocaleOperationVariantNameMask = 1 shl 1; { name of LocaleOperationVariant}
  241. kLocaleAndVariantNameMask = $00000003; { all of the above}
  242. {
  243. -------------------------------------------------------------------------------------------------
  244. FUNCTION PROTOTYPES
  245. -------------------------------------------------------------------------------------------------
  246. }
  247. { Convert to or from LocaleRefs (and related utilities)}
  248. {
  249. * LocaleRefFromLangOrRegionCode()
  250. *
  251. * Availability:
  252. * Mac OS X: in version 10.0 and later in CoreServices.framework
  253. * CarbonLib: in CarbonLib 1.0 and later
  254. * Non-Carbon CFM: in LocalesLib 8.6 and later
  255. }
  256. function LocaleRefFromLangOrRegionCode( lang: LangCode; region: RegionCode; var locale: LocaleRef ): OSStatus; external name '_LocaleRefFromLangOrRegionCode';
  257. (* __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA) *)
  258. {
  259. * LocaleRefFromLocaleString()
  260. *
  261. * Availability:
  262. * Mac OS X: in version 10.0 and later in CoreServices.framework
  263. * CarbonLib: in CarbonLib 1.0 and later
  264. * Non-Carbon CFM: in LocalesLib 8.6 and later
  265. }
  266. function LocaleRefFromLocaleString( localeString: ConstCStringPtr; var locale: LocaleRef ): OSStatus; external name '_LocaleRefFromLocaleString';
  267. (* __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA) *)
  268. {
  269. * LocaleRefGetPartString()
  270. *
  271. * Availability:
  272. * Mac OS X: in version 10.0 and later in CoreServices.framework
  273. * CarbonLib: in CarbonLib 1.0 and later
  274. * Non-Carbon CFM: in LocalesLib 8.6 and later
  275. }
  276. function LocaleRefGetPartString( locale: LocaleRef; partMask: LocalePartMask; maxStringLen: ByteCount; partString: CStringPtr ): OSStatus; external name '_LocaleRefGetPartString';
  277. (* __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA) *)
  278. {
  279. * LocaleStringToLangAndRegionCodes()
  280. *
  281. * Summary:
  282. * Map a CFLocale-style locale string to old Script Manager LangCode
  283. * and RegionCode values.
  284. *
  285. * Parameters:
  286. *
  287. * localeString:
  288. * A null-terminated C-string version of a CFLocale-style locale
  289. * identifier of the sort that could be passed to
  290. * CFLocaleCreateCanonicalLocaleIdentifierFromString, based on BCP
  291. * 47 language tags: <http://www.rfc-editor.org/rfc/bcp/bcp47.txt>.
  292. *
  293. * lang:
  294. * A pointer to a LangCode to be set from the locale identifier;
  295. * will be set to langUnspecified or -1 if no language code can be
  296. * derived from the identifier. May be NULL if region is not also
  297. * NULL.
  298. *
  299. * region:
  300. * A pointer to a RegionCode to be set from the locale identifier;
  301. * will be set to -1 if no language code can be derived from the
  302. * identifier. May be NULL if lang is not also NULL.
  303. *
  304. * Result:
  305. * OSStatus, noErr if operation successful, otherwise paramErr or
  306. * possibly other errors.
  307. *
  308. * Availability:
  309. * Mac OS X: in version 10.0 and later in CoreServices.framework
  310. * CarbonLib: in CarbonLib 1.0 and later
  311. * Non-Carbon CFM: in LocalesLib 9.0 and later
  312. }
  313. function LocaleStringToLangAndRegionCodes( localeString: ConstCStringPtr; var lang: LangCode; var region: RegionCode ): OSStatus; external name '_LocaleStringToLangAndRegionCodes';
  314. (* __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA) *)
  315. { Enumerate locales for a LocaleOperationClass }
  316. {
  317. * LocaleOperationCountLocales() *** DEPRECATED ***
  318. *
  319. * Deprecated:
  320. * use CFLocaleCopyAvailableLocaleIdentifiers instead.
  321. *
  322. * Discussion:
  323. * This function is no longer recommended. Please use
  324. * CFLocaleCopyAvailableLocaleIdentifiers instead.
  325. *
  326. * Availability:
  327. * Mac OS X: in version 10.0 and later in CoreServices.framework but deprecated in 10.8
  328. * CarbonLib: in CarbonLib 1.0 and later
  329. * Non-Carbon CFM: in LocalesLib 8.6 and later
  330. }
  331. function LocaleOperationCountLocales( opClass: LocaleOperationClass; var localeCount: ItemCount ): OSStatus; external name '_LocaleOperationCountLocales';
  332. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  333. {
  334. * LocaleOperationGetLocales() *** DEPRECATED ***
  335. *
  336. * Deprecated:
  337. * use CFXxxxx instead.
  338. *
  339. * Discussion:
  340. * This function is no longer recommended. Please use
  341. * CFLocaleCopyAvailableLocaleIdentifiers instead.
  342. *
  343. * Availability:
  344. * Mac OS X: in version 10.0 and later in CoreServices.framework but deprecated in 10.8
  345. * CarbonLib: in CarbonLib 1.0 and later
  346. * Non-Carbon CFM: in LocalesLib 8.6 and later
  347. }
  348. function LocaleOperationGetLocales( opClass: LocaleOperationClass; maxLocaleCount: ItemCount; var actualLocaleCount: ItemCount; localeVariantList: {variable-size-array} LocaleAndVariantPtr ): OSStatus; external name '_LocaleOperationGetLocales';
  349. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  350. { Get names for a locale (or a region's language)}
  351. {
  352. * LocaleGetName() *** DEPRECATED ***
  353. *
  354. * Deprecated:
  355. * use CFLocaleCopyDisplayNameForPropertyValue instead.
  356. *
  357. * Discussion:
  358. * This function is no longer recommended. Please use
  359. * CFLocaleCopyDisplayNameForPropertyValue instead.
  360. *
  361. * Availability:
  362. * Mac OS X: in version 10.0 and later in CoreServices.framework but deprecated in 10.8
  363. * CarbonLib: in CarbonLib 1.0 and later
  364. * Non-Carbon CFM: in LocalesLib 8.6 and later
  365. }
  366. function LocaleGetName( locale: LocaleRef; opVariant: LocaleOperationVariant; nameMask: LocaleNameMask; displayLocale: LocaleRef; maxNameLen: UniCharCount; var actualNameLen: UniCharCount; displayName: {variable-size-array} UniCharPtr ): OSStatus; external name '_LocaleGetName';
  367. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  368. {
  369. * LocaleCountNames() *** DEPRECATED ***
  370. *
  371. * Deprecated:
  372. * use CFLocaleCopyAvailableLocaleIdentifiers instead.
  373. *
  374. * Discussion:
  375. * This function is no longer recommended. Please use
  376. * CFLocaleCopyAvailableLocaleIdentifiers instead.
  377. *
  378. * Availability:
  379. * Mac OS X: in version 10.0 and later in CoreServices.framework but deprecated in 10.8
  380. * CarbonLib: in CarbonLib 1.0 and later
  381. * Non-Carbon CFM: in LocalesLib 8.6 and later
  382. }
  383. function LocaleCountNames( locale: LocaleRef; opVariant: LocaleOperationVariant; nameMask: LocaleNameMask; var nameCount: ItemCount ): OSStatus; external name '_LocaleCountNames';
  384. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  385. {
  386. * LocaleGetIndName() *** DEPRECATED ***
  387. *
  388. * Deprecated:
  389. * use CFLocaleCopyAvailableLocaleIdentifiers and
  390. * CFLocaleCopyDisplayNameForPropertyValue instead.
  391. *
  392. * Discussion:
  393. * This function is no longer recommended. Please use
  394. * CFLocaleCopyAvailableLocaleIdentifiers and
  395. * CFLocaleCopyDisplayNameForPropertyValue instead.
  396. *
  397. * Availability:
  398. * Mac OS X: in version 10.0 and later in CoreServices.framework but deprecated in 10.8
  399. * CarbonLib: in CarbonLib 1.0 and later
  400. * Non-Carbon CFM: in LocalesLib 8.6 and later
  401. }
  402. function LocaleGetIndName( locale: LocaleRef; opVariant: LocaleOperationVariant; nameMask: LocaleNameMask; nameIndex: ItemCount; maxNameLen: UniCharCount; var actualNameLen: UniCharCount; displayName: {variable-size-array} UniCharPtr; var displayLocale: LocaleRef ): OSStatus; external name '_LocaleGetIndName';
  403. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  404. {$ifc TARGET_CPU_64}
  405. {
  406. * LocaleGetRegionLanguageName() *** DEPRECATED ***
  407. *
  408. * Deprecated:
  409. * use CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes
  410. * and CFLocaleCopyDisplayNameForPropertyValue instead.
  411. *
  412. * Discussion:
  413. * This function is no longer recommended. Please use
  414. * CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes and
  415. * CFLocaleCopyDisplayNameForPropertyValue instead.
  416. *
  417. * Availability:
  418. * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.5
  419. * CarbonLib: in CarbonLib 1.0 and later
  420. * Non-Carbon CFM: in LocalesLib 9.0 and later
  421. }
  422. function LocaleGetRegionLanguageName( region: RegionCode; var languageName: Str255 ): OSStatus; external name '_LocaleGetRegionLanguageName';
  423. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_5, __IPHONE_NA, __IPHONE_NA) *)
  424. { Get names for a LocaleOperationClass}
  425. {$endc} {TARGET_CPU_64}
  426. {
  427. * LocaleOperationGetName()
  428. *
  429. * Availability:
  430. * Mac OS X: in version 10.0 and later in CoreServices.framework
  431. * CarbonLib: in CarbonLib 1.0 and later
  432. * Non-Carbon CFM: in LocalesLib 8.6 and later
  433. }
  434. function LocaleOperationGetName( opClass: LocaleOperationClass; displayLocale: LocaleRef; maxNameLen: UniCharCount; var actualNameLen: UniCharCount; displayName: {variable-size-array} UniCharPtr ): OSStatus; external name '_LocaleOperationGetName';
  435. (* __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA) *)
  436. {
  437. * LocaleOperationCountNames()
  438. *
  439. * Availability:
  440. * Mac OS X: in version 10.0 and later in CoreServices.framework
  441. * CarbonLib: in CarbonLib 1.0 and later
  442. * Non-Carbon CFM: in LocalesLib 8.6 and later
  443. }
  444. function LocaleOperationCountNames( opClass: LocaleOperationClass; var nameCount: ItemCount ): OSStatus; external name '_LocaleOperationCountNames';
  445. (* __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA) *)
  446. {
  447. * LocaleOperationGetIndName()
  448. *
  449. * Availability:
  450. * Mac OS X: in version 10.0 and later in CoreServices.framework
  451. * CarbonLib: in CarbonLib 1.0 and later
  452. * Non-Carbon CFM: in LocalesLib 8.6 and later
  453. }
  454. function LocaleOperationGetIndName( opClass: LocaleOperationClass; nameIndex: ItemCount; maxNameLen: UniCharCount; var actualNameLen: UniCharCount; displayName: {variable-size-array} UniCharPtr; var displayLocale: LocaleRef ): OSStatus; external name '_LocaleOperationGetIndName';
  455. (* __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA) *)
  456. {$endc} {TARGET_OS_MAC}
  457. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  458. end.
  459. {$endc} {not MACOSALLINCLUDE}