UniMapCtryToLocale: Difference between revisions
Appearance
m Ak120 moved page OS2 API:UniMapCtryToLocale to UniMapCtryToLocale |
mNo edit summary |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
Convert the ulCntryCode to a locale name to be used in other [[Unicode]] APIs. | |||
=== Syntax === | |||
UniMapCtryToLocale(cntryCode, result, resultSize) | |||
=== Parameters === | === Parameters === | ||
; cntryCode - [[ULONG]] - input : The OS/2 country code. | ;cntryCode - [[ULONG]] - input : The OS/2 country code. | ||
; result - [[UniChar]] - output : The [[ | ;result - [[UniChar]] - output : The [[Universal Language Support Functions|Unicode]] locale name. | ||
; resultSize - size_t - input : The character size of the result buffer. The '''must''' be, at minimum, eight [[Unicode]] characters. | ;resultSize - size_t - input : The character size of the result buffer. The '''must''' be, at minimum, eight [[Unicode]] characters. | ||
=== Constants === | === Constants === | ||
Line 12: | Line 14: | ||
=== Returns === | === Returns === | ||
An integer with values of: | An integer with values of: | ||
* [[ | * [[Unicode Errors#ULS_BUFFERFULL|ULS_BUFFERFULL]] | ||
* [[ | * [[Unicode Errors#ULS_INVALID|ULS_INVALID]] | ||
* [[ | * [[Unicode Errors#ULS_SUCCESS|ULS_SUCCESS]] | ||
=== Calling | === Calling Convention === | ||
[[Cdecl32]] | [[Cdecl32]] | ||
Latest revision as of 18:19, 4 December 2019
Convert the ulCntryCode to a locale name to be used in other Unicode APIs.
Syntax
UniMapCtryToLocale(cntryCode, result, resultSize)
Parameters
- cntryCode - ULONG - input
- The OS/2 country code.
- result - UniChar - output
- The Unicode locale name.
- resultSize - size_t - input
- The character size of the result buffer. The must be, at minimum, eight Unicode characters.
Constants
None
Returns
An integer with values of:
Calling Convention
Example Code
ULONG cntryCode; UniChar result; size_t resultSize; integer rc; ... rc = UniMapCntryToLocale(cntryCode, result, resultSize); ...
Related Functions
OS Version Introduced
OS/2 Warp