Syntax
VM_CHSET_CONVERT_RESULT vm_chset_convert(
    VM_CHSET_ENCODING source_type, 
    VM_CHSET_ENCODING destination_type, 
    const VMCHAR* source, 
    VMCHAR* destination, 
    VMINT destination_size
);
ContentsIndex
PreviousUpNext
vm_chset_convert
Syntax
VM_CHSET_CONVERT_RESULT vm_chset_convert(
    VM_CHSET_ENCODING source_type, 
    VM_CHSET_ENCODING destination_type, 
    const VMCHAR* source, 
    VMCHAR* destination, 
    VMINT destination_size
);
Description

Converts a string between 2 character sets, and add the corresponding terminate character to the destination string. The caller should ensure that the size of the destination buffer is large enough to contain the resulting string. If not, the conversion will only convert a part of the source string up to the size of the destination buffer. In other words, the resulting string is a truncated string up to the size of the destination buffer.

Parameters
Parameters 
Description 
VM_CHSET_ENCODING source_type 
[IN] The character set of the source string. 
VM_CHSET_ENCODING destination_type 
[IN] The character set of the resulting string. 
const VMCHAR* source 
[IN] The source string. 
VMCHAR* destination 
[OUT] The resulting string. 
VMINT destination_size 
[IN] The size of the destination buffer in bytes. 
Returns
File

vmchset.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.