UniMapCtryToLocale: Difference between revisions
Appearance
m added resultSize data type |
mNo edit summary |
||
(7 intermediate revisions by 2 users 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 - [[ | ;cntryCode - [[ULONG]] - input : The OS/2 country code. | ||
; result - [[ | ;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 [[ | ;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]] | ||
=== Example Code === | === Example Code === | ||
ULONG cntryCode; | |||
UniChar result; | |||
size_t resultSize; | size_t resultSize; | ||
integer rc; | integer rc; | ||
Line 35: | Line 31: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[UniMapCpToUcsCp]] | ||
=== OS Version Introduced === | === OS Version Introduced === | ||
OS/2 Warp | OS/2 Warp | ||
[[Category:Uni]] |
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