UniLocaleTokenToStr: Difference between revisions
Appearance
m Ak120 moved page OS2 API:UniLocaleTokenToStr to UniLocaleTokenToStr |
|||
Line 18: | Line 18: | ||
* [[OS2 API:Unicode:error#ULS_SUCCESS|ULS_SUCCESS]] | * [[OS2 API:Unicode:error#ULS_SUCCESS|ULS_SUCCESS]] | ||
=== Calling | === Calling Convention === | ||
[[Cdecl32]] | [[Cdecl32]] | ||
Revision as of 19:21, 18 January 2017
UniLocaleTokenToStr
- UniLocaleTokenToStr(localeToken, localeStrType, result)
- Convert a locale token to a locale specific string.
Parameters
- localeToken - LocaleToken - input
- A locale token.
- localeStrType - integer - input
- Requested string locale format.
- result - PVOID - output
- The result of the locale conversion.
Constants
These constants are for localeStrType.
Returns
An integer with values of:
Calling Convention
Example Code
LocaleToken localeToken; integer localeStrType; PVOID result; integer rc; ... rc = UniLocaleTokenToStr(localeToken, localeStrType, result); ...
Related Functions
Notes
UniLocaleTokenToStr allocates the memory for the result of the locale string conversion. It is the responsibility to call UniFreeMem when it is no longer needed. If no local string can be generated for the given token, the value returned is undefined.
OS Version Introduced
OS/2 Warp