Jump to content

UniMapCpToUcsCp: Difference between revisions

From EDM2
UniMapCpToUcsCp created
 
m formatting
Line 4: Line 4:


=== Parameters ===
=== Parameters ===
; codePage - [[OS2 API:DataType:ULONG|ULONG]] - input :
; codePage - [[OS2 API:DataType:ULONG|ULONG]] - input : The code page returned from [[OS2 API:DosQueryCp|DosQueryCp]].  If the value is zero, the current process code page is used to determine the Unicode string.
The code page returned from [[OS2 API:DosQueryCp|DosQueryCp]].  If the value is zero, the current process code page is used to determine the Unicode string.
; unicodeBuff - [[OS2 API:DataType:UniChar|UniChar]] - output : The output buffer for the Unicode string.
; unicodeBuff - [[OS2 API:DataType:UniChar|UniChar]] - output :
; unicodeBuffLen - (size_t) - input : The output buffer's length, in characters.  Must be, at minimum, 12 Unicode characters.
The output buffer for the Unicode string.
; unicodeBuffLen - (size_t) - input :
The output buffer's length, in characters.  Must be, at minimum, 12 Unicode characters.


=== Constants ===
=== Constants ===

Revision as of 06:51, 26 April 2006

UniMapCpToUcsCp

UniMapCpToUcsCp(codePage, unicodeBuff, unicodeBuffLen)

Convert a code page string to a UCS string for input to UniCreateUconvObject.

Parameters

codePage - ULONG - input
The code page returned from DosQueryCp. If the value is zero, the current process code page is used to determine the Unicode string.
unicodeBuff - UniChar - output
The output buffer for the Unicode string.
unicodeBuffLen - (size_t) - input
The output buffer's length, in characters. Must be, at minimum, 12 Unicode characters.

Constants

None

Returns

An integer with values of:

Module

Define (C/C++)

Export name/Ordinal

Calling conversion

Cdecl32

Example Code

ULONG   codePage;
UniChar unicodeBuff;
size_t  unicodeBuffLen;
integer rc;
...
rc = UniMapCpToUcsCp(codePage, unicodeBuff, unicodeBuffLen);
...

Related Functions

UniMapCtryToLocale

Notes

OS Version Introduced

OS/2 Warp