Package org.robovm.apple.corefoundation
Class CFLocale
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.corefoundation.CFLocale
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CFLocale extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CFLocale.CFLocalePtr
static class
CFLocale.Notifications
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CFLocale()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CFLocale
create(java.lang.String localeIdentifier)
static CFLocale
create(CFAllocator allocator, java.lang.String localeIdentifier)
static CFLocale
createCopy(CFAllocator allocator, CFLocale locale)
static CFLocale
createCopy(CFLocale locale)
static NSString
CurrentLocaleDidChangeNotification()
static java.util.List<java.lang.String>
getAvailableLocaleIdentifiers()
static java.lang.String
getCanonicalLanguageIdentifier(java.lang.String localeIdentifier)
protected static java.lang.String
getCanonicalLanguageIdentifier(CFAllocator allocator, java.lang.String localeIdentifier)
static java.lang.String
getCanonicalLocaleIdentifier(short lcode, short rcode)
static java.lang.String
getCanonicalLocaleIdentifier(java.lang.String localeIdentifier)
protected static java.lang.String
getCanonicalLocaleIdentifier(CFAllocator allocator, short lcode, short rcode)
protected static java.lang.String
getCanonicalLocaleIdentifier(CFAllocator allocator, java.lang.String localeIdentifier)
static long
getClassTypeID()
static java.util.List<java.lang.String>
getCommonISOCurrencyCodes()
CFType
getComponent(CFLocaleComponent key)
java.lang.String
getComponentDisplayName(CFLocaleComponent key, java.lang.String value)
static CFLocaleComponents
getComponentsFromLocaleIdentifier(java.lang.String localeID)
protected static CFLocaleComponents
getComponentsFromLocaleIdentifier(CFAllocator allocator, java.lang.String localeID)
static CFLocale
getCurrent()
java.lang.String
getIdentifier()
static java.util.List<java.lang.String>
getISOCountryCodes()
static java.util.List<java.lang.String>
getISOCurrencyCodes()
static java.util.List<java.lang.String>
getISOLanguageCodes()
static CFLocaleLanguageDirection
getLanguageCharacterDirection(java.lang.String isoLangCode)
static CFLocaleLanguageDirection
getLanguageLineDirection(java.lang.String isoLangCode)
protected static java.lang.String
getLocaleIdentifierFromComponents(CFAllocator allocator, CFLocaleComponents dictionary)
static java.lang.String
getLocaleIdentifierFromComponents(CFLocaleComponents components)
static java.lang.String
getLocaleIdentifierFromWindowsLocaleCode(int lcid)
protected static java.lang.String
getLocaleIdentifierFromWindowsLocaleCode(CFAllocator allocator, int lcid)
static java.util.List<java.lang.String>
getPreferredLanguages()
static CFLocale
getSystem()
static int
getWindowsLocaleCodeFromLocaleIdentifier(java.lang.String localeIdentifier)
-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
-
-
-
Method Detail
-
getCanonicalLanguageIdentifier
public static java.lang.String getCanonicalLanguageIdentifier(java.lang.String localeIdentifier)
-
getCanonicalLocaleIdentifier
public static java.lang.String getCanonicalLocaleIdentifier(java.lang.String localeIdentifier)
-
getCanonicalLocaleIdentifier
public static java.lang.String getCanonicalLocaleIdentifier(short lcode, short rcode)
-
getLocaleIdentifierFromWindowsLocaleCode
public static java.lang.String getLocaleIdentifierFromWindowsLocaleCode(int lcid)
- Since:
- Available in iOS 4.0 and later.
-
getComponentsFromLocaleIdentifier
public static CFLocaleComponents getComponentsFromLocaleIdentifier(java.lang.String localeID)
-
getLocaleIdentifierFromComponents
public static java.lang.String getLocaleIdentifierFromComponents(CFLocaleComponents components)
-
create
public static CFLocale create(java.lang.String localeIdentifier)
-
CurrentLocaleDidChangeNotification
public static NSString CurrentLocaleDidChangeNotification()
- Since:
- Available in iOS 2.0 and later.
-
getClassTypeID
public static long getClassTypeID()
-
getSystem
public static CFLocale getSystem()
-
getCurrent
public static CFLocale getCurrent()
-
getAvailableLocaleIdentifiers
public static java.util.List<java.lang.String> getAvailableLocaleIdentifiers()
-
getISOLanguageCodes
public static java.util.List<java.lang.String> getISOLanguageCodes()
-
getISOCountryCodes
public static java.util.List<java.lang.String> getISOCountryCodes()
-
getISOCurrencyCodes
public static java.util.List<java.lang.String> getISOCurrencyCodes()
-
getCommonISOCurrencyCodes
public static java.util.List<java.lang.String> getCommonISOCurrencyCodes()
- Since:
- Available in iOS 2.0 and later.
-
getPreferredLanguages
public static java.util.List<java.lang.String> getPreferredLanguages()
- Since:
- Available in iOS 2.0 and later.
-
getCanonicalLanguageIdentifier
protected static java.lang.String getCanonicalLanguageIdentifier(CFAllocator allocator, java.lang.String localeIdentifier)
-
getCanonicalLocaleIdentifier
protected static java.lang.String getCanonicalLocaleIdentifier(CFAllocator allocator, java.lang.String localeIdentifier)
-
getCanonicalLocaleIdentifier
protected static java.lang.String getCanonicalLocaleIdentifier(CFAllocator allocator, short lcode, short rcode)
-
getLocaleIdentifierFromWindowsLocaleCode
protected static java.lang.String getLocaleIdentifierFromWindowsLocaleCode(CFAllocator allocator, int lcid)
- Since:
- Available in iOS 4.0 and later.
-
getWindowsLocaleCodeFromLocaleIdentifier
public static int getWindowsLocaleCodeFromLocaleIdentifier(java.lang.String localeIdentifier)
- Since:
- Available in iOS 4.0 and later.
-
getLanguageCharacterDirection
public static CFLocaleLanguageDirection getLanguageCharacterDirection(java.lang.String isoLangCode)
- Since:
- Available in iOS 4.0 and later.
-
getLanguageLineDirection
public static CFLocaleLanguageDirection getLanguageLineDirection(java.lang.String isoLangCode)
- Since:
- Available in iOS 4.0 and later.
-
getComponentsFromLocaleIdentifier
protected static CFLocaleComponents getComponentsFromLocaleIdentifier(CFAllocator allocator, java.lang.String localeID)
-
getLocaleIdentifierFromComponents
protected static java.lang.String getLocaleIdentifierFromComponents(CFAllocator allocator, CFLocaleComponents dictionary)
-
create
public static CFLocale create(CFAllocator allocator, java.lang.String localeIdentifier)
-
createCopy
public static CFLocale createCopy(CFAllocator allocator, CFLocale locale)
-
getIdentifier
public java.lang.String getIdentifier()
-
getComponent
public CFType getComponent(CFLocaleComponent key)
-
getComponentDisplayName
public java.lang.String getComponentDisplayName(CFLocaleComponent key, java.lang.String value)
-
-