GNUstep CoreBase Library 0.2
Typedefs | Enumerations | Variables
CFLocale Reference

CFLocale provides basic functionality for language and/or region specific operations. More...

Detailed Description

Locale-sensitive operations, such as collation, calendars and capitalization, may use CFLocale objects to provide language and/or region specific functionality.

CFLocale is "toll-free bridged" to NSLocale.

Typedefs

typedef const struct __CFLocale * CFLocaleRef
 
typedef CFIndex CFLocaleLanguageDirection
 

Enumerations

enum  {
  kCFLocaleLanguageDirectionUnknown = 0 , kCFLocaleLanguageDirectionLeftToRight = 1 , kCFLocaleLanguageDirectionRightToLeft = 2 , kCFLocaleLanguageDirectionTopToBottom = 3 ,
  kCFLocaleLanguageDirectionBottomToTop = 4
}
 

Variables

const CFStringRef kCFLocaleCurrentLocaleDidChangeNotification
 

CFLocale Property Keys

const CFStringRef kCFLocaleMeasurementSystem
 
const CFStringRef kCFLocaleDecimalSeparator
 
const CFStringRef kCFLocaleGroupingSeparator
 
const CFStringRef kCFLocaleCurrencySymbol
 
const CFStringRef kCFLocaleCurrencyCode
 
const CFStringRef kCFLocaleIdentifier
 
const CFStringRef kCFLocaleLanguageCode
 
const CFStringRef kCFLocaleCountryCode
 
const CFStringRef kCFLocaleScriptCode
 
const CFStringRef kCFLocaleVariantCode
 
const CFStringRef kCFLocaleExemplarCharacterSet
 
const CFStringRef kCFLocaleCalendarIdentifier
 
const CFStringRef kCFLocaleCalendar
 
const CFStringRef kCFLocaleCollationIdentifier
 
const CFStringRef kCFLocaleUsesMetricSystem
 
const CFStringRef kCFLocaleCollatorIdentifier
 
const CFStringRef kCFLocaleQuotationBeginDelimiterKey
 
const CFStringRef kCFLocaleQuotationEndDelimiterKey
 
const CFStringRef kCFLocaleAlternateQuotationBeginDelimiterKey
 
const CFStringRef kCFLocaleAlternateQuotationEndDelimiterKey
 

CFCalendar Identifiers

const CFStringRef kCFGregorianCalendar
 
const CFStringRef kCFBuddhistCalendar
 
const CFStringRef kCFChineseCalendar
 
const CFStringRef kCFHebrewCalendar
 
const CFStringRef kCFIslamicCalendar
 
const CFStringRef kCFIslamicCivilCalendar
 
const CFStringRef kCFJapaneseCalendar
 
const CFStringRef kCFRepublicOfChinaCalendar
 
const CFStringRef kCFPersianCalendar
 
const CFStringRef kCFIndianCalendar
 
const CFStringRef kCFISO8601Calendar
 

Creating a Locale

CFLocaleRef CFLocaleCopyCurrent (void)
 
CFLocaleRef CFLocaleCreate (CFAllocatorRef allocator, CFStringRef localeIdent)
 
CFLocaleRef CFLocaleCreateCopy (CFAllocatorRef allocator, CFLocaleRef locale)
 
CFLocaleRef CFLocaleGetSystem (void)
 

Getting System Locale Information

CFArrayRef CFLocaleCopyAvailableLocaleIdentifiers (void)
 

Getting ISO Information

CFArrayRef CFLocaleCopyISOCountryCodes (void)
 
CFArrayRef CFLocaleCopyISOLanguageCodes (void)
 
CFArrayRef CFLocaleCopyISOCurrencyCodes (void)
 
CFArrayRef CFLocaleCopyCommonISOCurrencyCodes (void)
 

Accessing Language Information

CFArrayRef CFLocaleCopyPreferredLanguages (void)
 
CFLocaleLanguageDirection CFLocaleGetLanguageCharacterDirection (CFStringRef isoLangCode)
 
CFLocaleLanguageDirection CFLocaleGetLanguageLineDirection (CFStringRef isoLangCode)
 

Getting Information About a Locale

CFStringRef CFLocaleCopyDisplayNameForPropertyValue (CFLocaleRef displayLocale, CFStringRef key, CFStringRef value)
 
CFTypeRef CFLocaleGetValue (CFLocaleRef locale, CFStringRef key)
 
CFStringRef CFLocaleGetIdentifier (CFLocaleRef locale)
 

Getting and Creating Locale Identifiers

CFStringRef CFLocaleCreateCanonicalLocaleIdentifierFromString (CFAllocatorRef allocator, CFStringRef localeIdent)
 
CFStringRef CFLocaleCreateCanonicalLanguageIdentifierFromString (CFAllocatorRef allocator, CFStringRef localeIdent)
 
CFDictionaryRef CFLocaleCreateComponentsFromLocaleIdentifier (CFAllocatorRef allocator, CFStringRef localeIdent)
 
CFStringRef CFLocaleCreateLocaleIdentifierFromComponents (CFAllocatorRef allocator, CFDictionaryRef dictionary)
 

Windows Locale Codes

CFStringRef CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode (CFAllocatorRef allocator, UInt32 lcid)
 
UInt32 CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier (CFStringRef localeIdent)
 

Getting the CFLocale Type ID

CFTypeID CFLocaleGetTypeID (void)
 

Variable Documentation

◆ kCFLocaleCurrentLocaleDidChangeNotification

const CFStringRef kCFLocaleCurrentLocaleDidChangeNotification

CFLocale Change Notification