UniMapCtryToLocale: Difference between revisions
Appearance
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
== UniMapCtryToLocale == | == UniMapCtryToLocale == | ||
; UniMapCtryToLocale(cntryCode, result, resultSize) : Convert the ulCntryCode to a locale name to be used in other [[ | ; UniMapCtryToLocale(cntryCode, result, resultSize) : Convert the ulCntryCode to a locale name to be used in other [[Unicode]] APIs. | ||
=== Parameters === | === Parameters === | ||
; cntryCode - [[ | ; cntryCode - [[ULONG]] - input : The OS/2 country code. | ||
; result - [[ | ; result - [[UniChar]] - output : The [[OS2 API:Unicode|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 15: | Line 15: | ||
* [[OS2 API:Unicode:error#ULS_INVALID|ULS_INVALID]] | * [[OS2 API:Unicode:error#ULS_INVALID|ULS_INVALID]] | ||
* [[OS2 API:Unicode:error#ULS_SUCCESS|ULS_SUCCESS]] | * [[OS2 API:Unicode:error#ULS_SUCCESS|ULS_SUCCESS]] | ||
=== Calling conversion === | === Calling conversion === | ||
Line 26: | Line 20: | ||
=== Example Code === | === Example Code === | ||
ULONG cntryCode; | |||
UniChar result; | |||
size_t resultSize; | size_t resultSize; | ||
integer rc; | integer rc; | ||
Line 35: | Line 29: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[UniMapCpToUcsCp]] | ||
=== OS Version Introduced === | === OS Version Introduced === | ||
OS/2 Warp | OS/2 Warp | ||
[[Category:Uni]] | |||
[[Category: |
Revision as of 04:30, 5 December 2016
UniMapCtryToLocale
- UniMapCtryToLocale(cntryCode, result, resultSize)
- Convert the ulCntryCode to a locale name to be used in other Unicode APIs.
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 conversion
Example Code
ULONG cntryCode; UniChar result; size_t resultSize; integer rc; ... rc = UniMapCntryToLocale(cntryCode, result, resultSize); ...
Related Functions
OS Version Introduced
OS/2 Warp