Convert a unicode string to TaggedText encoded unicode

Convert a unicode string to TaggedText encoded unicode

Name Type Default Description
Return char *    
dest char* - Destination Buffer. Buffer must have been allocated static or using the alloc function
src int* - source string
char * 	tagged = "Preisst<0x00F6>rer gro<0x00DF>";
int  	unicode[4096];
char 	reconverted[4096];
if (tagged_to_wchar (unicode, tagged) == 0) { showmessage ("Conversion failed"); return -1; }
if (wchar_to_tagged (reconverted, unicode) == 0) { showmessage ("Reconversion failed"); return -1; }
wlog ("", "Reconverted string: %s\n", reconverted); // => "Preisst<0x00F6>rer gro<0x00DF>"

Since
Version 2.1 R1100 (20. Dezember 2008)

Available
priint:comet InDesign® Plug-Ins, comet_pdf

Alphabetic index HTML hierarchy of classes or Java