Jump to content

KernStrFromUcs: Difference between revisions

From EDM2
Created page with "==Synopsis== APIRET APIENTRY KernStrFromUcs(KEEUnicodeStruct* ucs, PCHAR trgt, PCHAR usrc, ULONG trgtsize, ULONG srcsize); ==Description== This converts a string from Unicode..."
 
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This converts a string from Unicode to ASCII.
==Synopsis==
==Synopsis==
APIRET APIENTRY KernStrFromUcs(KEEUnicodeStruct* ucs, PCHAR trgt, PCHAR usrc, ULONG trgtsize, ULONG srcsize);
APIRET APIENTRY KernStrFromUcs(KEEUnicodeStruct* ucs, PCHAR trgt, PCHAR usrc, ULONG trgtsize, ULONG srcsize);
 
==Description==
This converts a string from Unicode to ASCII.


==Parameters==
==Parameters==
;''ucs'' (KEEUnicodeStruct*) - input:Pointer to the Unicode conversion object created with [[KernCreateUconvObject]].
;''trgt'' ([[PCHAR]]) - input:Pointer to the ASCII buffer
;''usrc'' ([[PCHAR]]) - input:Pointer to the Unicode buffer
;''trgtsize'' ([[ULONG]]) - input:Length of the target buffer
;''srcsize'' ([[ULONG]]) - input:Length of the source buffer


ucs
[[Category:KEE]]
    Pointer to the Unicode conversion object created with KernCreateUconvObject.
trgt
    Pointer to the ASCII buffer
usrc
    Pointer to the Unicode buffer
trgtsize
    length of the target buffer
srcsize
    length of the source buffer
 
[[Category:The OS/2 API Project]]

Latest revision as of 03:47, 28 May 2025

This converts a string from Unicode to ASCII.

Synopsis

APIRET APIENTRY KernStrFromUcs(KEEUnicodeStruct* ucs, PCHAR trgt, PCHAR usrc, ULONG trgtsize, ULONG srcsize);

Parameters

ucs (KEEUnicodeStruct*) - input
Pointer to the Unicode conversion object created with KernCreateUconvObject.
trgt (PCHAR) - input
Pointer to the ASCII buffer
usrc (PCHAR) - input
Pointer to the Unicode buffer
trgtsize (ULONG) - input
Length of the target buffer
srcsize (ULONG) - input
Length of the source buffer