Class NSLocale

    • Constructor Detail

      • NSLocale

        public NSLocale​(java.lang.String string)
      • NSLocale

        public NSLocale​(NSCoder decoder)
      • NSLocale

        public NSLocale​(java.util.Locale locale)
    • Method Detail

      • getCalendarIdentifier

        public java.lang.String getCalendarIdentifier()
        Since:
        Available in iOS 10.0 and later.
      • getAutoupdatingCurrentLocale

        public static NSLocale getAutoupdatingCurrentLocale()
        Since:
        Available in iOS 2.0 and later.
      • getCurrentLocale

        public static NSLocale getCurrentLocale()
      • getSystemLocale

        public static NSLocale getSystemLocale()
      • 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.
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • toLocale

        public java.util.Locale toLocale()
      • getLocaleIdentifier

        public java.lang.String getLocaleIdentifier()
      • getLanguageCode

        public java.lang.String getLanguageCode()
      • getCountryCode

        public java.lang.String getCountryCode()
      • getScriptCode

        public java.lang.String getScriptCode()
      • getVariantCode

        public java.lang.String getVariantCode()
      • getExemplarCharacterSet

        public NSCharacterSet getExemplarCharacterSet()
      • getCollationIdentifier

        public java.lang.String getCollationIdentifier()
      • usesMetricSystem

        public boolean usesMetricSystem()
      • getMeasurementSystem

        public java.lang.String getMeasurementSystem()
      • getDecimalSeparator

        public java.lang.String getDecimalSeparator()
      • getGroupingSeparator

        public java.lang.String getGroupingSeparator()
      • getCurrencySymbol

        public java.lang.String getCurrencySymbol()
      • getCurrencyCode

        public java.lang.String getCurrencyCode()
      • getCollatorIdentifier

        public java.lang.String getCollatorIdentifier()
        Since:
        Available in iOS 4.0 and later.
      • getQuotationBeginDelimiter

        public java.lang.String getQuotationBeginDelimiter()
        Since:
        Available in iOS 4.0 and later.
      • getQuotationEndDelimiter

        public java.lang.String getQuotationEndDelimiter()
        Since:
        Available in iOS 4.0 and later.
      • getAlternateQuotationBeginDelimiter

        public java.lang.String getAlternateQuotationBeginDelimiter()
        Since:
        Available in iOS 4.0 and later.
      • getAlternateQuotationEndDelimiter

        public java.lang.String getAlternateQuotationEndDelimiter()
        Since:
        Available in iOS 4.0 and later.
      • CurrentLocaleDidChangeNotification

        public static NSString CurrentLocaleDidChangeNotification()
        Since:
        Available in iOS 2.0 and later.
      • init

        protected long init​(java.lang.String string)
      • getComponentsFromLocaleIdentifier

        public static NSLocaleComponents getComponentsFromLocaleIdentifier​(java.lang.String string)
      • getLocaleIdentifierFromComponents

        public static java.lang.String getLocaleIdentifierFromComponents​(NSLocaleComponents dict)
      • getCanonicalLocaleIdentifier

        public static java.lang.String getCanonicalLocaleIdentifier​(java.lang.String string)
      • getCanonicalLanguageIdentifier

        public static java.lang.String getCanonicalLanguageIdentifier​(java.lang.String string)
      • getLocaleIdentifierFromWindowsLocaleCode

        public static java.lang.String getLocaleIdentifierFromWindowsLocaleCode​(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.
      • getCharacterDirection

        public static NSLocaleLanguageDirection getCharacterDirection​(java.lang.String isoLangCode)
        Since:
        Available in iOS 4.0 and later.
      • getLineDirection

        public static NSLocaleLanguageDirection getLineDirection​(java.lang.String isoLangCode)
        Since:
        Available in iOS 4.0 and later.
      • init

        protected long init​(NSCoder decoder)