Merge pull request #10 from gunyarakun/fix-invalid-return
[cocotron.git] / CoreFoundation / CFLocale.h
blob0c4c6e9f450e49d31b0ca6741414ac0f4de8ca61
1 /* Copyright (c) 2008-2009 Christopher J. W. Lloyd
3 Permission is hereby granted,free of charge,to any person obtaining a copy of this software and associated documentation files (the "Software"),to deal in the Software without restriction,including without limitation the rights to use,copy,modify,merge,publish,distribute,sublicense,and/or sell copies of the Software,and to permit persons to whom the Software is furnished to do so,subject to the following conditions:
5 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7 THE SOFTWARE IS PROVIDED "AS IS",WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED,INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER LIABILITY,WHETHER IN AN ACTION OF CONTRACT,TORT OR OTHERWISE,ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
9 typedef struct __NSLocale *CFLocaleRef;
11 #import <CoreFoundation/CFBase.h>
12 #import <CoreFoundation/CFArray.h>
13 #import <CoreFoundation/CFDictionary.h>
15 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleIdentifier;
16 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleLanguageCode;
17 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleCountryCode;
18 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleScriptCode;
19 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleVariantCode;
20 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleExemplarCharacterSet;
21 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleCalendarIdentifier;
22 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleCalendar;
23 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleCollationIdentifier;
24 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleUsesMetricSystem;
26 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleMeasurementSystem;
27 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleDecimalSeparator;
28 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleGroupingSeparator;
29 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleCurrencySymbol;
30 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleCurrencyCode;
32 COREFOUNDATION_EXPORT const CFStringRef kCFGregorianCalendar;
33 COREFOUNDATION_EXPORT const CFStringRef kCFBuddhistCalendar;
34 COREFOUNDATION_EXPORT const CFStringRef kCFChineseCalendar;
35 COREFOUNDATION_EXPORT const CFStringRef kCFHebrewCalendar;
36 COREFOUNDATION_EXPORT const CFStringRef kCFIslamicCalendar;
37 COREFOUNDATION_EXPORT const CFStringRef kCFIslamicCivilCalendar;
38 COREFOUNDATION_EXPORT const CFStringRef kCFJapaneseCalendar;
40 COREFOUNDATION_EXPORT const CFStringRef kCFLocaleCurrentLocaleDidChangeNotification;
42 COREFOUNDATION_EXPORT CFTypeID CFLocaleGetTypeID(void);
43 COREFOUNDATION_EXPORT CFArrayRef CFLocaleCopyAvailableLocaleIdentifiers(void);
44 COREFOUNDATION_EXPORT CFArrayRef CFLocaleCopyCommonISOCurrencyCodes(void);
45 COREFOUNDATION_EXPORT CFLocaleRef CFLocaleCopyCurrent(void);
46 COREFOUNDATION_EXPORT CFArrayRef CFLocaleCopyISOCountryCodes(void);
47 COREFOUNDATION_EXPORT CFArrayRef CFLocaleCopyISOCurrencyCodes(void);
48 COREFOUNDATION_EXPORT CFArrayRef CFLocaleCopyISOLanguageCodes(void);
49 COREFOUNDATION_EXPORT CFArrayRef CFLocaleCopyPreferredLanguages(void);
50 COREFOUNDATION_EXPORT CFLocaleRef CFLocaleGetSystem(void);
52 COREFOUNDATION_EXPORT CFLocaleRef CFLocaleCreate(CFAllocatorRef allocator, CFStringRef identifier);
53 COREFOUNDATION_EXPORT CFStringRef CFLocaleCreateCanonicalLanguageIdentifierFromString(CFAllocatorRef allocator, CFStringRef identifier);
54 COREFOUNDATION_EXPORT CFStringRef CFLocaleCreateCanonicalLocaleIdentifierFromString(CFAllocatorRef allocator, CFStringRef identifier);
55 COREFOUNDATION_EXPORT CFDictionaryRef CFLocaleCreateComponentsFromLocaleIdentifier(CFAllocatorRef allocator, CFStringRef identifier);
57 COREFOUNDATION_EXPORT CFLocaleRef CFLocaleCreateCopy(CFAllocatorRef allocator, CFLocaleRef self);
59 COREFOUNDATION_EXPORT CFStringRef CFLocaleCopyDisplayNameForPropertyValue(CFLocaleRef self, CFStringRef key, CFStringRef value);
60 COREFOUNDATION_EXPORT CFStringRef CFLocaleCreateLocaleIdentifierFromComponents(CFAllocatorRef allocator, CFDictionaryRef dictionary);
61 COREFOUNDATION_EXPORT CFStringRef CFLocaleGetIdentifier(CFLocaleRef self);
62 COREFOUNDATION_EXPORT CFTypeRef CFLocaleGetValue(CFLocaleRef self, CFStringRef key);