Class CFLocale

All Implemented Interfaces:
AutoCloseable

public class CFLocale
extends CFType
  • Constructor Details

    • CFLocale

      protected CFLocale()
  • Method Details

    • getCanonicalLanguageIdentifier

      public static String getCanonicalLanguageIdentifier​(String localeIdentifier)
    • getCanonicalLocaleIdentifier

      public static String getCanonicalLocaleIdentifier​(String localeIdentifier)
    • getCanonicalLocaleIdentifier

      public static String getCanonicalLocaleIdentifier​(short lcode, short rcode)
    • getLocaleIdentifierFromWindowsLocaleCode

      public static String getLocaleIdentifierFromWindowsLocaleCode​(int lcid)
      Since:
      Available in iOS 4.0 and later.
    • getComponentsFromLocaleIdentifier

      public static CFLocaleComponents getComponentsFromLocaleIdentifier​(String localeID)
    • getLocaleIdentifierFromComponents

      public static String getLocaleIdentifierFromComponents​(CFLocaleComponents components)
    • create

      public static CFLocale create​(String localeIdentifier)
    • createCopy

      public static CFLocale createCopy​(CFLocale locale)
    • CurrentLocaleDidChangeNotification

      public static NSString CurrentLocaleDidChangeNotification()
    • getClassTypeID

      public static long getClassTypeID()
    • getSystem

      public static CFLocale getSystem()
    • getCurrent

      public static CFLocale getCurrent()
    • getAvailableLocaleIdentifiers

      public static List<String> getAvailableLocaleIdentifiers()
    • getISOLanguageCodes

      public static List<String> getISOLanguageCodes()
    • getISOCountryCodes

      public static List<String> getISOCountryCodes()
    • getISOCurrencyCodes

      public static List<String> getISOCurrencyCodes()
    • getCommonISOCurrencyCodes

      public static List<String> getCommonISOCurrencyCodes()
    • getPreferredLanguages

      public static List<String> getPreferredLanguages()
    • getCanonicalLanguageIdentifier

      protected static String getCanonicalLanguageIdentifier​(CFAllocator allocator, String localeIdentifier)
    • getCanonicalLocaleIdentifier

      protected static String getCanonicalLocaleIdentifier​(CFAllocator allocator, String localeIdentifier)
    • getCanonicalLocaleIdentifier

      protected static String getCanonicalLocaleIdentifier​(CFAllocator allocator, short lcode, short rcode)
    • getLocaleIdentifierFromWindowsLocaleCode

      protected static String getLocaleIdentifierFromWindowsLocaleCode​(CFAllocator allocator, int lcid)
    • getWindowsLocaleCodeFromLocaleIdentifier

      public static int getWindowsLocaleCodeFromLocaleIdentifier​(String localeIdentifier)
    • getLanguageCharacterDirection

      public static CFLocaleLanguageDirection getLanguageCharacterDirection​(String isoLangCode)
    • getLanguageLineDirection

      public static CFLocaleLanguageDirection getLanguageLineDirection​(String isoLangCode)
    • getComponentsFromLocaleIdentifier

      protected static CFLocaleComponents getComponentsFromLocaleIdentifier​(CFAllocator allocator, String localeID)
    • getLocaleIdentifierFromComponents

      protected static String getLocaleIdentifierFromComponents​(CFAllocator allocator, CFLocaleComponents dictionary)
    • create

      public static CFLocale create​(CFAllocator allocator, String localeIdentifier)
    • createCopy

      public static CFLocale createCopy​(CFAllocator allocator, CFLocale locale)
    • getIdentifier

      public String getIdentifier()
    • getComponent

      public CFType getComponent​(CFLocaleComponent key)
    • getComponentDisplayName

      public String getComponentDisplayName​(CFLocaleComponent key, String value)