UniLocaleTokenToStr: Difference between revisions
Appearance
No edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
=== Parameters === | === Parameters === | ||
; localeToken - [[ | ; localeToken - [[LocaleToken]] - input : A locale token. | ||
; localeStrType - integer - input : Requested string locale format. | ; localeStrType - integer - input : Requested string locale format. | ||
; result - [[ | ; result - [[PVOID]] - output : The result of the locale conversion. | ||
=== Constants === | === Constants === | ||
These constants are for localeStrType. | These constants are for localeStrType. | ||
* [[ | *[[UNI#UNI_MBS_STRING_POINTER|UNI_MBS_STRING_POINTER]] | ||
* [[ | *[[UNI#UNI_UCS_STRING_POINTER|UNI_UCS_STRING_POINTER]] | ||
=== Returns === | === Returns === | ||
Line 17: | Line 17: | ||
* [[OS2 API:Unicode:error#ULS_NOMEMORY|ULS_NOMEMORY]] | * [[OS2 API:Unicode:error#ULS_NOMEMORY|ULS_NOMEMORY]] | ||
* [[OS2 API:Unicode:error#ULS_SUCCESS|ULS_SUCCESS]] | * [[OS2 API:Unicode:error#ULS_SUCCESS|ULS_SUCCESS]] | ||
=== Calling conversion === | === Calling conversion === | ||
Line 28: | Line 22: | ||
=== Example Code === | === Example Code === | ||
LocaleToken localeToken; | |||
integer localeStrType; | integer localeStrType; | ||
PVOID result; | |||
integer rc; | integer rc; | ||
... | ... | ||
Line 37: | Line 31: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[UniLocaleStrToToken]] | ||
=== Notes === | === 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 Version Introduced === | ||
OS/2 Warp | OS/2 Warp | ||
[[Category:Uni]] | |||
[[Category: |
Revision as of 04:25, 5 December 2016
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 conversion
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