| Framework | CoreServices/CoreServices.h |
| Declared in | MacLocales.h |
Unicode operations such as collation and text boundary determination can be affected by the conventions of a particular language or region. You can use Locale Utilities to specify language-specific or region-specific information for locale-sensitive Unicode operations. The Locale Utilities provide support for obtaining available locales, obtaining localized locale names, and converting among locale data formats.
Carbon supports the Locales Utilities.
LocaleGetName
LocaleGetIndName
LocaleCountNames
LocaleOperationGetName
LocaleOperationGetIndName
LocaleOperationCountNames
LocaleGetRegionLanguageName Deprecated in Mac OS X v10.5
LocaleRefFromLangOrRegionCode
LocaleRefFromLocaleString
LocaleRefGetPartString
LocaleStringToLangAndRegionCodes
Obtains the total count of all available localized names for a locale and/or operation variant.
OSStatus LocaleCountNames ( LocaleRef locale, LocaleOperationVariant opVariant, LocaleNameMask nameMask, ItemCount *nameCount );
A LocaleRef value identifying the locale for which you are requesting a localized name.
A LocaleOperationVariant value identifying the operation variant for which you are requesting a localized name. Pass 0 to obtain the default operation variant.
A LocaleNameMask value specifying the parts of the name that you are requesting: the name of the locale alone, the name of the operation variant alone, or the name for the combination of the two.
A pointer to an ItemCount value. On return, the value is set to the total count of all available localized names for the locale and/or operation variant.
A result code. The LocaleCountNames function can return paramErr if nameCount is NULL.
This function provides a count of all available localized names for a given locale, operation variant, or locale-and-variant combination, for use in the function LocaleGetIndName. You must call this function prior to calling LocaleGetIndName.
This function can move memory in Carbon and Mac OS 9.
MacLocales.h
Obtains a localized name for a locale and/or operation variant, based on an index into the list of all available localized names.
OSStatus LocaleGetIndName ( LocaleRef locale, LocaleOperationVariant opVariant, LocaleNameMask nameMask, ItemCount nameIndex, UniCharCount maxNameLen, UniCharCount *actualNameLen, UniChar displayName[], LocaleRef *displayLocale );
A LocaleRef value identifying the locale for which you are requesting a localized name.
A LocaleOperationVariant value identifying the operation variant for which you are requesting a localized name. Pass 0 to obtain the default operation variant.
A LocaleNameMask value specifying the parts of the name that you are requesting: the name of the locale alone, the name of the operation variant alone, or the name for the combination of the two.
An ItemCount index value identifying an entry in the list of available localized names. You can obtain a count of all available localized names from the nameCount parameter of the function LocaleCountNames. Note that index values must be in the range from 0 to nameCount -1. To create a list of all available localized names that correspond to the locale and operation variant you request, you can call the LocaleGetIndName function starting with an index value of 0, then increment the index value with each successive call to LocaleGetIndName, continuing to nameCount-1.
A UniCharCount value specifying the length of the UniChar array being passed in the displayName parameter. An array of 32 characters is typically adequate if you request just a single name (that is, the name for a locale or an operation variant), or 64 characters if you request both names.
A pointer to a UniCharCount value. On return, the value contains the actual length of the name produced in the displayName parameter.
An array of UniChar values. On return, the array contains the requested name as localized for a particular display locale.
A pointer to a LocaleRef value. On return, the value indicates the language of the name produced in the displayName parameter.
A result code. If the value specified in the maxNameLen parameter is too small for the requested string, LocaleGetIndName returns kLocalesBufferTooSmallErr (-30001).
The LocaleGetIndName function obtains a localized name for a locale, operation variant, or locale-and-variant combination. LocaleGetIndName produces the name based on a requested locale, an operation variant, and an index into the count of all available localized names for the locale and/or operation variant. The language for the obtained name is produced on return.
You can use repeated calls to the LocaleGetIndName function to create a list of all available localized names (that is, the names from all available display locales), that correspond to a given locale and operation variant. Alternately, for a particular locale, operation variant, or locale-and-variant combination, the function LocaleGetName obtains the corresponding name as localized for a particular display locale.
Note that, in some languages, the name for a language or locale may have several different grammatical forms, where the correct form depends on the usage or context. For example, Swedish uses different forms of a language name depending on whether the name is applied to a collation order, to text break rules, or to keyboard layouts. However, the Locale Utilities functions only return one form of a language or locale name—typically that name which would be used for the language name alone. Therefore, this name may not be the correct form for some usages in some languages.
This function can move memory in Carbon and Mac OS 9.
MacLocales.h
Obtains the localized name for a locale and/or operation variant, based on the requested language for the localized name.
OSStatus LocaleGetName ( LocaleRef locale, LocaleOperationVariant opVariant, LocaleNameMask nameMask, LocaleRef displayLocale, UniCharCount maxNameLen, UniCharCount *actualNameLen, UniChar displayName[] );
A LocaleRef value identifying the locale for which you are requesting a localized name.
A LocaleOperationVariant value identifying the operation variant for which you are requesting a localized name. Pass 0 to obtain the default operation variant.
A LocaleNameMask value specifying the parts of the name that you are requesting: the name of the locale alone, the name of the operation variant alone, or the name for the combination of the two.
A LocaleRef value indicating the requested language for the name produced in the displayName parameter. If LocaleGetName cannot find a name in the requested language, it produces a name in the default display locale.
A UniCharCount value specifying the length of the UniChar array being passed in the displayName parameter. An array of 32 characters is typically adequate if you request just a single name (that is, the name for a locale or an operation variant), or 64 characters if you request both names.
A pointer to a UniCharCount value. On return, the value contains the actual length of the name produced in the displayName parameter.
An array of UniChar values. On return, the array contains the requested name as localized for a particular display locale.
A result code. If LocaleGetName cannot find a name that matches the language specified in the displayLocale parameter, it returns kLocalesDefaultDisplayStatus (-30029). If the value specified in the maxNameLen parameter is too small for the requested string, LocaleGetName returns kLocalesBufferTooSmallErr (-30001).
For a particular locale, operation variant, or locale-and-variant combination, the LocaleGetName function obtains the corresponding name as localized for a particular display locale. Alternately, you can use repeated calls to the function LocaleGetIndName to iterate through all of the available display locales to create a list of the corresponding names as localized in each of the display locales.
Note that, in some languages, the name for a language or locale may have several different grammatical forms, where the correct form depends on the usage or context. For example, Swedish uses different forms of a language name depending on whether the name is applied to a collation order, to text break rules, or to keyboard layouts. However, the Locale Utilities functions only return one form of a language or locale name—typically that name which would be used for the language name alone. Therefore, this name may not be the correct form for some usages in some languages.
This function can move memory in Carbon and Mac OS 9.
MacLocales.h
Obtains the total count of locale-and-variant combinations available for a given class of operation.
OSStatus LocaleOperationCountLocales ( LocaleOperationClass opClass, ItemCount *localeCount );
A LocaleOperationClass value identifying the operation class for which you are requesting availability information.
A pointer to an ItemCount value. On return, the value is set to the total count of all available locale-and-variant combinations for the specified class of operation.
A result code. The LocaleOperationCountLocales function returns paramErr if the opClass parameter is 0 or if the localeCount parameter is NULL.
The LocaleOperationCountLocales function counts the total number of locale-and-variant combinations available for a given operation class. You should call LocaleOperationCountLocales before the function LocaleOperationGetLocales in order to determine how much memory to allocate for the list LocaleOperationGetLocales produces.
MacLocales.h
Obtains the total count of all available localized names for an operation class.
OSStatus LocaleOperationCountNames ( LocaleOperationClass opClass, ItemCount *nameCount );
A LocaleOperationClass value identifying the operation class for which you are requesting a localized name.
A pointer to an ItemCount value. On return, the value is set to the total count of all available localized names for the operation class.
A result code. The LocaleOperationCountNames function returns paramErr if nameCount is NULL.
This function provides a count of all available localized names for a given operation class, for use in the function LocaleOperationGetIndName. You must call this function prior to calling LocaleOperationGetIndName.
This function can move memory in Carbon and Mac OS 9.
MacLocales.h
Obtains a localized name for an operation class, based on an index into the list of all available localized names.
OSStatus LocaleOperationGetIndName ( LocaleOperationClass opClass, ItemCount nameIndex, UniCharCount maxNameLen, UniCharCount *actualNameLen, UniChar displayName[], LocaleRef *displayLocale );
A LocaleOperationClass value identifying the operation class for which you are requesting a localized name.
An ItemCount index value identifying an entry in the list of available localized names. You can obtain a count of all available localized names from the nameCount parameter of the function LocaleOperationCountNames. Note that index values must be in the range from 0 to nameCount -1. To create a list of all available localized names that correspond to the requested operation class, you can call the LocaleOperationGetIndName function starting with an index value of 0, then increment the index value with each successive call to LocaleOperationGetIndName, continuing to nameCount-1.
A UniCharCount value specifying the length of the UniChar array being passed in the displayName parameter.
A pointer to a UniCharCount value. On return, the value contains the actual length of the name produced in the displayName parameter.
An array of UniChar values. On return, the array contains the requested name as localized for a particular display locale.
A pointer to a LocaleRef value. On return, the value indicates the language of the name produced in the displayName parameter.
A result code. If the value specified in the maxNameLen parameter is too small for the requested string, LocaleOperationGetIndName returns kLocalesBufferTooSmallErr (-30001).
The LocaleOperationGetIndName function obtains a localized name for an operation class based on an index into the count of all available localized names for the operation class. The language for the obtained name is produced on return.
You can use repeated calls to the LocaleOperationGetIndName function to create a list of all available localized names (that is, the names from all available display locales), that correspond to a given operation class. Alternately, for a particular operation class, the function LocaleOperationGetName obtains the corresponding name as localized for a particular display locale.
This function can move memory in Carbon and Mac OS 9.
MacLocales.h
Obtains the list of available locale-and-variant combinations for a given class of operation.
OSStatus LocaleOperationGetLocales ( LocaleOperationClass opClass, ItemCount maxLocaleCount, ItemCount *actualLocaleCount, LocaleAndVariant localeVariantList[] );
A LocaleOperationClass value identifying the operation class for which you are requesting availability information.
An ItemCount value specifying the size of the array passed in the localeVariantList parameter. To determine how much memory to allocate for the list, you can call the function LocaleOperationCountLocales. LocaleOperationCountLocales produces a count of the locale-and-variant combinations available for a given operation class in its localeCount parameter.
A pointer to an ItemCount value. On return, the value contains the actual length of the list produced in the localeVariantList parameter.
An array of LocaleAndVariant values. On return, the array contains a list of the available combinations of locale and operation variant for a specified operation class. The LocaleAndVariant.opVariant field may be 0 for entries that do not have a specific operation variant.
A result code. If the value specified in the maxLocaleCount parameter is too small for the complete list, LocaleOperationGetLocales returns kLocalesBufferTooSmallErr (-30001). The function returns paramErr if opClass is 0 or if either the actualLocaleCount or localeVariantList parameter is NULL.
The LocaleOperationGetLocales function provides a list of all the combinations of locales and operation variants that are available for a given class of operations, such as collation.
MacLocales.h
Obtains the localized name for an operation class, based on the requested language for the localized name.
OSStatus LocaleOperationGetName ( LocaleOperationClass opClass, LocaleRef displayLocale, UniCharCount maxNameLen, UniCharCount *actualNameLen, UniChar displayName[] );
A LocaleOperationClass value identifying the operation class for which you are requesting a localized name.
A LocaleRef value indicating the requested language for the name produced in the displayName parameter. If LocaleOperationGetName cannot find a name in the requested language, it produces a name in the default display locale.
A UniCharCount value specifying the length of the UniChar array being passed in the displayName parameter. An array of 64 characters is typically adequate.
A pointer to a UniCharCount value. On return, the value contains the actual length of the name produced in the displayName parameter.
An array of UniChar values. On return, the array contains the requested name as localized for a particular display locale.
A result code. If LocaleOperationGetName cannot find a name that matches the language specified in the displayLocale parameter, it returns kLocalesDefaultDisplayStatus (-30029). If the value specified in the maxNameLen parameter is too small for the requested string, LocaleOperationGetName returns kLocalesBufferTooSmallErr (-30001).
For a particular operation class, the LocaleOperationGetName function obtains the corresponding name as localized for a particular display locale. Alternately, you can use repeated calls to the function LocaleOperationGetIndName to iterate through all of the available display locales to create a list of the corresponding names as localized in each of the display locales.
This function can move memory in Carbon and Mac OS 9.
MacLocales.h
Converts a Mac OS language or region code to a locale reference.
OSStatus LocaleRefFromLangOrRegionCode ( LangCode lang, RegionCode region, LocaleRef *locale );
A Mac OS LangCode value, specifying the language for which to create a LocaleRef. If you wish to specify only a region, not a language as well, you can pass the constant kTextLanguageDontCare (from TextCommon.h). The LocaleRefFromLangOrRegionCode function requires values for either the lang or region parameters, or both.
A Mac OS RegionCode value, specifying the region for which to create a LocaleRef. If you wish to specify only a language, not a region as well, you can pass the constant kTextRegionDontCare (from TextCommon.h). The LocaleRefFromLangOrRegionCode function requires values for either the lang or region parameters, or both.
A pointer to a value of type LocaleRef. On return, the LocaleRef value contains a valid reference to locale data. Note that the LocaleRefFromLangOrRegionCode function can move memory, so the locale parameter should not point to memory that can move.
A result code. The LocaleRefFromLangOrRegionCode function returns paramErr if no value is provided for either the lang or region parameters, or if both values are provided but they are inconsistent, or if a value provided is invalid. The function returns paramErr if the locale parameter is NULL. It can also return memory errors or resource errors. Finally, if the tables used for mapping language and region codes are invalid, the function returns kLocalesTableFormatErr (-30002) in CarbonLib and Mac OS 9 (in Mac OS 8.6, paramErr is returned).
A LocaleRef is an opaque type that references static locale data. You typically provide a LocaleRef value to the locale-sensitive Unicode Utilities functions and to some Locale Utilities functions such as LocaleGetName and LocaleOperationGetName.
You can use the LocaleRefFromLangOrRegionCode function to convert a Mac OS language and/or region code to a LocaleRef value. Additionally, you can use the function LocaleRefFromLocaleString to convert a locale part string—or an Internet language tag or POSIX/Java locale string—to a LocaleRef value.
You should not save LocaleRef values in a file or other persistent storage, because a given LocaleRef is not guaranteed to be valid across multiple launches of your application. For persistent storage, you can either save the original value or string used to construct the LocaleRef, or you can use the function LocaleRefGetPartString to convert a LocaleRef to a locale part string and save that.
MacLocales.h
Converts a string containing locale data to a locale reference.
OSStatus LocaleRefFromLocaleString ( const char localeString[], LocaleRef *locale );
An ASCII string containing an Internet RFC 1766-style language tag, or a POSIX-style or Java-style locale string, or a Mac OS locale part string. A locale part string is an ASCII string whose full form is “lan-var.sc-v_rg-v”, where “lan-var” specifies the language and variant, “.sc-v” specifies the script & variant, and “_rg-v” specifies the region and variant. Any of those three parts can be omitted furthermore, the variant part “-var” or “-v” within any of those parts may be omitted.
A pointer to a value of type LocaleRef. On return, the LocaleRef value contains a valid reference to locale data. Note that the LocaleRefFromLocaleString function can move memory, so the locale parameter should not point to memory that can move.
A result code. The function returns paramErr if the localeString or locale parameters are NULL, or if the value provided in localeString is invalid. It can also return memory errors.
A LocaleRef is an opaque type that references static locale data. You typically provide a LocaleRef value to the locale-sensitive Unicode Utilities functions and to some Locale Utilities functions such as LocaleGetName and LocaleOperationGetName.
You can use the LocaleRefFromLocaleString function to convert a locale part string—or an Internet language tag or POSIX/Java locale string—to a LocaleRef value. Additionally, you can use the function LocaleRefFromLangOrRegionCode to convert a Mac OS language and/or region code to a LocaleRef value.
You should not save LocaleRef values in a file or other persistent storage, because a given LocaleRef is not guaranteed to be valid across multiple launches of your application. For persistent storage, you can either save the original value or string used to construct the LocaleRef, or you can use the function LocaleRefGetPartString to convert a LocaleRef back to a locale part string and save that.
MacLocales.h
Converts a locale reference to a string containing locale data.
OSStatus LocaleRefGetPartString ( LocaleRef locale, LocalePartMask partMask, ByteCount maxStringLen, char partString[] );
The LocaleRef value to convert to string format. You can pass NULL for the default system locale.
A LocalePartMask value specifying the kinds of locale information to include in the string. Available kinds of locale information include language, script, region, and their respective variants.
A ByteCount value specifying the length of the char array being passed in the partString parameter. The amount of storage should typically be at least 4 times the number of parts requested.
An array of char values. On return, the array contains the new part string. The full form of the returned string is “lan-var.sc-v_rg-v” where “lan-var” specifies the language and variant, “.sc-v” specifies the script & variant, and “_rg-v” specifies the region and variant. Fields not specified by the partMask parameter (as well as any field separator that precedes them) are not included in the returned string.
A result code. The function returns paramErr if the partString parameter is NULL, or if the locale is invalid. It returns kLocalesBufferTooSmallErr (-30001) if the value supplied in the maxStringLen parameter is too small for the requested string.
The LocaleRefGetPartString function converts a LocaleRef value to a string containing locale information. You can use a locale part string to tag or specify language or locale in persistent storage.
MacLocales.h
Converts a string containing locale data to Mac OS language and region codes.
OSStatus LocaleStringToLangAndRegionCodes ( const char localeString[], LangCode *lang, RegionCode *region );
An ASCII string containing an Internet RFC 1766-style language tag, or a POSIX-style or Java-style locale string, or a Mac OS locale part string. If you have a LocaleRef value, you can obtain a locale string from the function LocaleRefGetPartString. A locale part string is an ASCII string whose full form is “lan-var.sc-v_rg-v”, where “lan-var” specifies the language and variant, “.sc-v” specifies the script & variant, and “_rg-v” specifies the region and variant. Any of those three parts can be omitted furthermore, the variant part “-var” or “-v” within any of those parts may be omitted.
A pointer to a LangCode value, or pass NULL, if you do not want to obtain a language code. On return, LocaleStringToLangAndRegionCodes produces the appropriate Mac OS language code for the locale part string provided in the localeString parameter. Note that you can set either the lang or the region parameter to NULL, but not both.
A pointer to a RegionCode value or pass NULL, if you do not want to obtain a region code. On return, LocaleStringToLangAndRegionCodes produces the appropriate Mac OS region code for the locale part string provided in the localeString parameter. Note that you can set either the region or the lang parameter to NULL, but not both.
A result code. If the localeString parameter is NULL or if the string cannot be mapped to an existing language code and region code, the LocaleStringToLangAndRegionCodes function returns paramErr. If the required resource is invalid, the function can return kLocalesTableFormatErr (-30002). The function can also return Resource Manager errors.
The LocaleStringToLangAndRegionCodes function maps from a locale string to a combination of Mac OS language code and region code.
MacLocales.hIdentifies a specific locale and/or sub-class of locale-sensitive operations.
struct LocaleAndVariant {
LocaleRef locale;
LocaleOperationVariant opVariant;
};
typedef struct LocaleAndVariant LocaleAndVariant;
localeA LocaleRef value,
encapsulating information regarding language, script, and/or region.
opVariantA LocaleOperationVariant value,
identifying an individual sub-class of locale-sensitive operations.
The opVariant field of
a LocaleAndVariant value may
be 0 for entries that do not have a specific operation variant.
You use the function LocaleOperationGetLocales
to obtain a list of all the locale-and-variant combinations available
for a given class of operations. The LocaleOperationGetLocales function
specifies these combinations using the LocaleAndVariant type.
MacLocales.h
Specifies named parts of locale data.
typedef UInt32 LocaleNameMask;
The bits set in a LocaleNameMask value
determine the kind of localized names that are produced by the functions
LocaleGetName and
LocaleGetIndName. For
a description of the LocaleNameMask values,
see “Locale Name Masks.”
MacLocales.h
Identifies individual classes of locale-sensitive operations.
typedef FourCharCode LocaleOperationClass;
Locale-sensitive Unicode Utilities operations fall into several
classes, such as collation, text break determination, and date and
time formatting. You use the LocaleOperationClass type
to specify these classes.
Specific LocaleOperationClass values
depend on the Locale Utilities client. Values from Unicode Utilities
include kUnicodeCollationClass
( 'ucol') and kUnicodeTextBreakClass ( 'ubrk').
For example, the locales and collation variants available for collation
operations can be determined by calling the functions LocaleOperationCountLocales
and LocaleOperationGetLocales
with the opClass parameter
set to the kUnicodeCollationClass constant.
MacLocales.h
Identifies individual sub-classes of locale-sensitive operations.
typedef FourCharCode LocaleOperationVariant;
Locale-sensitive Unicode Utilities operations fall into several
classes, such as collation, text break determination, and date and
time formatting. You use the type LocaleOperationClass to specify these
classes. Some of these classes also have sub-classes of their operations.
For example, sub-classes of collation operations include dictionary
vs. bibliographic collation, and radical-stroke vs. pinyin collation.
For classes such as collation, the LocaleOperationVariant type
provides an operation-specific variant field. This field is analogous
to the @variant part
of a POSIX locale string or the final _VARIANT part
of a Java locale string.
You can use LocaleOperationVariant values
in the functions LocaleGetName ,
LocaleGetIndName ,
and LocaleCountNames to
obtain localized names for operation variants.
MacLocales.h
Specifies kinds of locale data.
typedef UInt32 LocalePartMask;
The bits set in a LocalePartMask value
determine the kinds of locale information that are produced by the
function LocaleRefGetPartString.
For a description of the LocalePartMask values,
see “Locale Part Masks.”
MacLocales.h
An opaque type that refers to locale information.
typedef struct OpaqueLocaleRef * LocaleRef;
A LocaleRef is
an opaque type that references static locale data. You typically
provide a LocaleRef value
to the locale-sensitive Unicode Utilities functions and to some
Locale Utilities functions such as LocaleGetName and LocaleOperationGetName.
To obtain a LocaleRef,
you can use the function LocaleRefFromLangOrRegionCode
to convert a Mac OS language and/or region code to a LocaleRef value.
Additionally, you can use the function LocaleRefFromLocaleString to convert
a locale part string—or an Internet language tag or POSIX/Java
locale string—to a LocaleRef value.
You should not save LocaleRef values
in a file or other persistent storage, since a given LocaleRef is
not guaranteed to be valid across multiple launches of your application.
For persistent storage, you can either save the original value or
string used to construct the LocaleRef,
or you can use the function LocaleRefGetPartString
to convert a LocaleRef to a
locale part string and save that.
MacLocales.hSpecify named parts of locale data.
enum {
kLocaleNameMask = 1L << 0,
kLocaleOperationVariantNameMask = 1L << 1,
kLocaleAndVariantNameMask = 0x00000003
};
kLocaleNameMaskIf the bit specified by this mask is set, then the name for a locale is specified.
Available in Mac OS X v10.0 and later.
Declared in MacLocales.h.
kLocaleOperationVariantNameMaskIf the bit specified by this mask is set, then the name for an operation variant is specified.
Available in Mac OS X v10.0 and later.
Declared in MacLocales.h.
kLocaleAndVariantNameMaskIf the bits specified by this mask are set, then the name for a locale-and-variant combination is specified.
Available in Mac OS X v10.0 and later.
Declared in MacLocales.h.
The bits set in a LocaleNameMask value
determine the kind of localized names that are produced by the functions
LocaleGetName and
LocaleGetIndName. With
a LocaleNameMask value,
you can specify the name of a locale alone, the name of an operation
variant alone, or the name for the combination of the two.
Specify kinds of locale data.
enum {
kLocaleLanguageMask = 1L << 0,
kLocaleLanguageVariantMask = 1L << 1,
kLocaleScriptMask = 1L << 2,
kLocaleScriptVariantMask = 1L << 3,
kLocaleRegionMask = 1L << 4,
kLocaleRegionVariantMask = 1L << 5,
kLocaleAllPartsMask = 0x0000003F
};
kLocaleLanguageMaskIf the bit specified by this mask is set, then a ISO 639-1 or -2 language code is specified.
Available in Mac OS X v10.0 and later.
Declared in MacLocales.h.
kLocaleLanguageVariantMaskIf the bit specified by this mask is set, then a custom string for a language variant is specified.
Available in Mac OS X v10.0 and later.
Declared in MacLocales.h.
kLocaleScriptMaskIf the bit specified by this mask is set, then a ISO 15924 script code is specified.
Available in Mac OS X v10.0 and later.
Declared in MacLocales.h.
kLocaleScriptVariantMaskIf the bit specified by this mask is set, then a custom string for a script variant is specified.
Available in Mac OS X v10.0 and later.
Declared in MacLocales.h.
kLocaleRegionMaskIf the bit specified by this mask is set, then a ISO 3166 country/region code is specified.
Available in Mac OS X v10.0 and later.
Declared in MacLocales.h.
kLocaleRegionVariantMaskIf the bit specified by this mask is set, then a custom string for a region variant is specified.
Available in Mac OS X v10.0 and later.
Declared in MacLocales.h.
kLocaleAllPartsMaskIf the bits specified by this mask are set, then all types (language and variant, script and variant, and region and variant) of locale information are specified.
Available in Mac OS X v10.0 and later.
Declared in MacLocales.h.
The bits set in a LocalePartMask value
determine the kinds of locale information that are produced by the
function LocaleRefGetPartString.
© 2002 Apple Computer, Inc. All Rights Reserved. (Last updated: 2002-01-24)