UniCreateLocaleObject: Difference between revisions
New entry |
More to come later. |
||
Line 43: | Line 43: | ||
=== Notes === | === Notes === | ||
[[OS2 API:UniCreateLocaleObject|UniCreateLocaleObject]] create the locale object for the locale specified by localeSpec. The [[OS2 API:DataType:LocaleObject|LocaleObject]] contains all the data and methods necessary to perform locale specific operations or accept the localeObj. Upon successful creation, all categories are created and initialized. | [[OS2 API:UniCreateLocaleObject|UniCreateLocaleObject]] create the locale object for the locale specified by localeSpec. The [[OS2 API:DataType:LocaleObject|LocaleObject]] contains all the data and methods necessary to perform locale specific operations or accept the localeObj. Upon successful creation, all categories are created and initialized. | ||
When localeSpec is a character string (multi-byte or UCS), it identifies the locale to be used for initialization. The locale name UNIV is reserved and refers to the definitions provide default behavior for functions. | |||
If localeSpec is NULL, the locale name UNIV is used. | |||
When localeSpec is a locale token as indicated by localeSpecType, the token identifies the locale to be initialized. | |||
If localeSpec is an empty character string (multi-byte or UCS), the locale object is initialized using the settings in the locale environment variables. | |||
Not completed. | Not completed. |
Revision as of 06:58, 21 August 2008
UniCreateLocaleObject
- UniCreateLocaleObject(localeSpecType, localeSpec, result)
- This function creates a locale object.
Parameters
- localeSpecType - integer - input
- Specifies the type of value of localeSpec.
- localeSpec - PVOID - input
- The specific type or locale token as defined by localeSpecType.
- result - LocaleObject - output
- The locale object for use.
Constants
The constants for use for localeSpecType:
Returns
An integer with values of:
Module
Define (C/C++)
Export name/Ordinal
Calling conversion
Example Code
integer localeSpecType; PVOID localeSpec; LocaleObject localeObj; integer rc; ... rc = UniCreateLocaleObject(localeSpecType, localeSpec, localeObj); ...
Related Functions
Notes
UniCreateLocaleObject create the locale object for the locale specified by localeSpec. The LocaleObject contains all the data and methods necessary to perform locale specific operations or accept the localeObj. Upon successful creation, all categories are created and initialized.
When localeSpec is a character string (multi-byte or UCS), it identifies the locale to be used for initialization. The locale name UNIV is reserved and refers to the definitions provide default behavior for functions.
If localeSpec is NULL, the locale name UNIV is used.
When localeSpec is a locale token as indicated by localeSpecType, the token identifies the locale to be initialized.
If localeSpec is an empty character string (multi-byte or UCS), the locale object is initialized using the settings in the locale environment variables.
Not completed.
OS Version Introduced
OS/2 Warp