Jump to content

UniMapCtryToLocale: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
== UniMapCtryToLocale ==
Convert the ulCntryCode to a locale name to be used in other [[Unicode]] APIs.
; UniMapCtryToLocale(cntryCode, result, resultSize) : 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 [[OS2 API:Unicode|Unicode]] locale name.
;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:
* [[OS2 API:Unicode:error#ULS_BUFFERFULL|ULS_BUFFERFULL]]
* [[Unicode Errors#ULS_BUFFERFULL|ULS_BUFFERFULL]]
* [[OS2 API:Unicode:error#ULS_INVALID|ULS_INVALID]]
* [[Unicode Errors#ULS_INVALID|ULS_INVALID]]
* [[OS2 API:Unicode:error#ULS_SUCCESS|ULS_SUCCESS]]
* [[Unicode Errors#ULS_SUCCESS|ULS_SUCCESS]]


=== Calling conversion ===
=== 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

Cdecl32

Example Code

ULONG   cntryCode;
UniChar result;
size_t  resultSize;
integer rc;
...
rc = UniMapCntryToLocale(cntryCode, result, resultSize);
...

Related Functions

OS Version Introduced

OS/2 Warp