Up
Authors
- Generated by Gregory John Casamento,,,
-
Date: Generated at 2023-12-20 19:35:39 -0500
- Declared in:
- Foundation/NSLocale.h
- Conforms to:
- NSCoding
- NSCopying
Availability: MacOS-X 10.4.0
Provides information describing language, date and
time, and currency information.
Method summary
+ (
NSArray*)
ISOCountryCodes;
Availability: MacOS-X 10.4.0
Returns an array of NSString representing all known
country codes.
+ (
NSArray*)
ISOCurrencyCodes;
Availability: MacOS-X 10.4.0
Returns an array of NSString representing all known
currency codes.
+ (
NSArray*)
ISOLanguageCodes;
Availability: MacOS-X 10.4.0
Returns an array of NSString representing all known
language codes.
+ (id)
autoupdatingCurrentLocale;
Availability: MacOS-X 10.5.0
Returns a version of the current locale which
automatically updates when locale settngs are
changed.
+ (
NSArray*)
availableLocaleIdentifiers;
Availability: MacOS-X 10.4.0
Returns an array of NSStrings with all the
available locale identifiers.
+ (
NSString*)
canonicalLanguageIdentifierFromString: (
NSString*)string;
Availability: MacOS-X 10.4.0
Returns the caoninical identifier for a language
represented by the supplied string.
+ (
NSString*)
canonicalLocaleIdentifierFromString: (
NSString*)string;
Availability: MacOS-X 10.4.0
Returns the canonical identifier for a locale
represented by the supplied string.
+ (
NSLocaleLanguageDirection)
characterDirectionForLanguage: (
NSString*)isoLangCode;
Availability: MacOS-X 10.4.0
Returns the direction in which the language is
written.
+ (
NSArray*)
commonISOCurrencyCodes;
Availability: MacOS-X 10.5.0
Returns a list of available ISO currency code
strings.
+ (
NSDictionary*)
componentsFromLocaleIdentifier: (
NSString*)string;
Availability: MacOS-X 10.4.0
Parses the supplied locale identifier and returns a
dictionary containing its components.
Components are NSLocaleLanguageCode,
NSLocaleCountryCode, NSLocaleCalendar.
+ (instancetype)
currentLocale;
Availability: MacOS-X 10.4.0
Returns the current locale information.
+ (
NSLocaleLanguageDirection)
lineDirectionForLanguage: (
NSString*)isoLangCode;
Availability: MacOS-X 10.4.0
Returns the direction in which lines of text in the
specified language are written.
+ (
NSString*)
localeIdentifierFromComponents: (
NSDictionary*)dict;
Availability: MacOS-X 10.4.0
Builds and returns a locale idntifier from the
individual components supplied in
dict.
Components are
NSLocaleLanguageCode,
NSLocaleCountryCode, NSLocaleCalendar.
+ (
NSString*)
localeIdentifierFromWindowsLocaleCode: (uint32_t)lcid;
Availability: MacOS-X 10.6.0
Returns the standard locale identifier for the
windows locale code.
+ (instancetype)
localeWithLocaleIdentifier: (
NSString*)string;
Availability: MacOS-X 10.6.0
Returns a locale initialised with the given locale
identifier.
+ (
NSArray*)
preferredLanguages;
Availability: MacOS-X 10.5.0
Returns an array of preferred languages. Sorted
from most preferred to leave preferred.
+ (instancetype)
systemLocale;
Availability: MacOS-X 10.4.0
Returns the the system locale.
+ (uint32_t)
windowsLocaleCodeFromLocaleIdentifier: (
NSString*)localeIdentifier;
Availability: MacOS-X 10.6.0
Returns the windows locale code corresponding to
the staqndard locale identifier.
- (
NSString*)
collationIdentifier;
Availability: MacOS-X 10.12.0
Description forthcoming.
- (
NSString*)
collatorIdentifier;
Availability: MacOS-X 10.12.0
Description forthcoming.
- (
NSString*)
countryCode;
Availability: MacOS-X 10.12.0
Description forthcoming.
- (
NSString*)
displayNameForKey: (
NSString*)key
value: (id)value;
Availability: MacOS-X 10.4.0
Returns the localised representation of the
supplied value converted on the basis
that it represents information whose type is specified
by the key.
- (
NSCharacterSet*)
exemplarCharacterSet;
Availability: MacOS-X 10.12.0
Description forthcoming.
- (instancetype)
initWithLocaleIdentifier: (
NSString*)string;
Availability: MacOS-X 10.4.0
Initialises the receiver to be the locale
specified by the identifier. This may result in
replacement of the receiver by an existing
locale.
- (
NSString*)
languageCode;
Availability: MacOS-X 10.12.0
Description forthcoming.
- (
NSString*)
localeIdentifier;
Availability: MacOS-X 10.4.0
Returns the canonical identifier for the receiver
(which may differ from the identifgier used to
create the receiver since different identifiers may
map to the same locale).
- (id)
objectForKey: (id)key;
Availability: MacOS-X 10.4.0
Returns the named object from the receiver locale.
- (
NSString*)
scriptCode;
Availability: MacOS-X 10.12.0
Description forthcoming.
- (
NSString*)
variantCode;
Availability: MacOS-X 10.12.0
Description forthcoming.
Up