Jump to content

UniMapCtryToLocale: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
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 [[OS2 API:Unicode|Unicode]] APIs.
; UniMapCtryToLocale(cntryCode, result, resultSize) : Convert the ulCntryCode to a locale name to be used in other [[Unicode]] APIs.


=== Parameters ===
=== Parameters ===
; cntryCode - [[OS2 API:DataType:ULONG|ULONG]] - input : The OS/2 country code.
; cntryCode - [[ULONG]] - input : The OS/2 country code.
; result - [[OS2 API:DataType:UniChar|UniChar]] - output : The [[OS2 API:Unicode|Unicode]] locale name.
; 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 [[OS2 API:Unicode|Unicode]] characters.
; 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]]
=== Module ===
=== Define (C/C++) ===
=== Export name/Ordinal ===


=== Calling conversion ===
=== Calling conversion ===
Line 26: Line 20:


=== Example Code ===
=== Example Code ===
  [[OS2 API:DataType:ULONG|ULONG]]   cntryCode;
  ULONG  cntryCode;
  [[OS2 API:DataType:UniChar|UniChar]] result;
  UniChar result;
  size_t  resultSize;
  size_t  resultSize;
  integer rc;
  integer rc;
Line 35: Line 29:


=== Related Functions ===
=== Related Functions ===
[[OS2 API:UniMapCpToUcsCp|UniMapCpToUcsCp]]
*[[UniMapCpToUcsCp]]
 
=== Notes ===


=== OS Version Introduced ===
=== OS Version Introduced ===
OS/2 Warp
OS/2 Warp


 
[[Category:Uni]]
 
[[OS2_API | Back to OS/2 API]]
 
 
[[Category:The OS/2 API Project]]

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

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