convert

Returns a string converted from one format to another.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

string   convert(src,srctype,desttype)
string   src
int      srctype
int      desttype

Description

Returns a string that has been converted from one format to another. The currently support conversions are defined in trim.h.
cdty_charASCII characters.
cdty_utf8UTF-8 characters.
cdty_ucs2UCS-2 characters.

Example

Convert an ascii string to a UTF-8 string.
{
 char abuf[100];
 char ubuf[200];

 abuf = "This is a wonderful day";
 ubuf = convert(abuf,cdty_char,cdty_utf8);
}