Jump to content

UniLocaleTokenToStr: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
No edit summary
 
Line 1: Line 1:
Convert a locale token to a locale specific string.
Convert a locale token to a locale specific string.
  UniLocaleTokenToStr(localeToken, localeStrType, result)
 
=== Syntax ===
  UniLocaleTokenToStr(localeToken, localeStrType, result);


=== Parameters ===
=== Parameters ===

Latest revision as of 18:50, 26 July 2017

Convert a locale token to a locale specific string.

Syntax

UniLocaleTokenToStr(localeToken, localeStrType, result);

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

Cdecl32

Example Code

LocaleToken localeToken;
integer     localeStrType;
PVOID       result;
integer     rc;
...
rc = UniLocaleTokenToStr(localeToken, localeStrType, result);
...

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

Related Functions