27#ifndef __COREFOUNDATION_CFLOCALE__
28#define __COREFOUNDATION_CFLOCALE__ 1
30#include <CoreFoundation/CFBase.h>
32#include <CoreFoundation/CFArray.h>
33#include <CoreFoundation/CFDictionary.h>
35#if OS_API_VERSION(MAC_OS_X_VERSION_10_3, GS_API_LATEST)
51typedef const struct __CFLocale *CFLocaleRef;
57 kCFLocaleLanguageDirectionUnknown = 0,
58 kCFLocaleLanguageDirectionLeftToRight = 1,
59 kCFLocaleLanguageDirectionRightToLeft = 2,
60 kCFLocaleLanguageDirectionTopToBottom = 3,
61 kCFLocaleLanguageDirectionBottomToTop = 4
63typedef CFIndex CFLocaleLanguageDirection;
68CF_EXPORT
const CFStringRef kCFLocaleMeasurementSystem;
69CF_EXPORT
const CFStringRef kCFLocaleDecimalSeparator;
70CF_EXPORT
const CFStringRef kCFLocaleGroupingSeparator;
71CF_EXPORT
const CFStringRef kCFLocaleCurrencySymbol;
72CF_EXPORT
const CFStringRef kCFLocaleCurrencyCode;
73#if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST)
74CF_EXPORT
const CFStringRef kCFLocaleIdentifier;
75CF_EXPORT
const CFStringRef kCFLocaleLanguageCode;
76CF_EXPORT
const CFStringRef kCFLocaleCountryCode;
77CF_EXPORT
const CFStringRef kCFLocaleScriptCode;
78CF_EXPORT
const CFStringRef kCFLocaleVariantCode;
79CF_EXPORT
const CFStringRef kCFLocaleExemplarCharacterSet;
80CF_EXPORT
const CFStringRef kCFLocaleCalendarIdentifier;
81CF_EXPORT
const CFStringRef kCFLocaleCalendar;
82CF_EXPORT
const CFStringRef kCFLocaleCollationIdentifier;
83CF_EXPORT
const CFStringRef kCFLocaleUsesMetricSystem;
85#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
86CF_EXPORT
const CFStringRef kCFLocaleCollatorIdentifier;
87CF_EXPORT
const CFStringRef kCFLocaleQuotationBeginDelimiterKey;
88CF_EXPORT
const CFStringRef kCFLocaleQuotationEndDelimiterKey;
89CF_EXPORT
const CFStringRef kCFLocaleAlternateQuotationBeginDelimiterKey;
90CF_EXPORT
const CFStringRef kCFLocaleAlternateQuotationEndDelimiterKey;
97CF_EXPORT
const CFStringRef kCFGregorianCalendar;
98#if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST)
99CF_EXPORT
const CFStringRef kCFBuddhistCalendar;
100CF_EXPORT
const CFStringRef kCFChineseCalendar;
101CF_EXPORT
const CFStringRef kCFHebrewCalendar;
102CF_EXPORT
const CFStringRef kCFIslamicCalendar;
103CF_EXPORT
const CFStringRef kCFIslamicCivilCalendar;
104CF_EXPORT
const CFStringRef kCFJapaneseCalendar;
106#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
107CF_EXPORT
const CFStringRef kCFRepublicOfChinaCalendar;
108CF_EXPORT
const CFStringRef kCFPersianCalendar;
109CF_EXPORT
const CFStringRef kCFIndianCalendar;
110CF_EXPORT
const CFStringRef kCFISO8601Calendar;
124CFLocaleCopyCurrent (
void);
128 CFStringRef localeIdent);
135CFLocaleGetSystem (
void);
141#if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST)
143CFLocaleCopyAvailableLocaleIdentifiers (
void);
150#if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST)
152CFLocaleCopyISOCountryCodes (
void);
155CFLocaleCopyISOLanguageCodes (
void);
158CFLocaleCopyISOCurrencyCodes (
void);
161#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
163CFLocaleCopyCommonISOCurrencyCodes (
void);
170#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
172CFLocaleCopyPreferredLanguages (
void);
175#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
176CF_EXPORT CFLocaleLanguageDirection
177CFLocaleGetLanguageCharacterDirection (CFStringRef isoLangCode);
179CF_EXPORT CFLocaleLanguageDirection
180CFLocaleGetLanguageLineDirection (CFStringRef isoLangCode);
188CFLocaleCopyDisplayNameForPropertyValue (CFLocaleRef displayLocale,
193CFLocaleGetValue (CFLocaleRef locale,
197CFLocaleGetIdentifier (CFLocaleRef locale);
204CFLocaleCreateCanonicalLocaleIdentifierFromString (
CFAllocatorRef allocator,
205 CFStringRef localeIdent);
207#if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST)
209CFLocaleCreateCanonicalLanguageIdentifierFromString (
CFAllocatorRef allocator,
210 CFStringRef localeIdent);
212CF_EXPORT CFDictionaryRef
213CFLocaleCreateComponentsFromLocaleIdentifier (
CFAllocatorRef allocator,
214 CFStringRef localeIdent);
217CFLocaleCreateLocaleIdentifierFromComponents (
CFAllocatorRef allocator,
218 CFDictionaryRef dictionary);
225#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
227CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode (
CFAllocatorRef allocator,
231CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier (CFStringRef localeIdent);
239CFLocaleGetTypeID (
void);
signed long CFIndex
Definition CFBase.h:165
const struct __CFAllocator * CFAllocatorRef
A reference to a CFAllocator object.
Definition CFBase.h:301
const struct __CFArray * CFArrayRef
Reference to an immutable array object.
Definition CFArray.h:37
const CFStringRef kCFLocaleCurrentLocaleDidChangeNotification
Definition CFLocale.h:116