Class CFLocale

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class CFLocale
    extends CFType
    • Constructor Detail

      • CFLocale

        protected CFLocale()
    • 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)
      • getIdentifier

        public java.lang.String getIdentifier()
      • getComponentDisplayName

        public java.lang.String getComponentDisplayName​(CFLocaleComponent key,
                                                        java.lang.String value)