[fpc-pascal] Working with PUCS4Char and UCS4String

Ludo Brands ludo.brands at free.fr
Wed Apr 27 19:14:05 CEST 2011

I'm getting a pointer to wchar_t which is PUCS4Char on linux and osx. To
convert an UCS4String to WideString there is UCS4StringToWideString. But how
can I convert PUCS4Char to UCS4String? UCS4String is a dynamic array. Direct
assignment isn't supported and a simple typecast isn't going to work. Is
there already existing something or do I need to write a
PUCS4CharToWideString (I'm not interested in the intermediate UCS4String) ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110427/5208e161/attachment.html>

More information about the fpc-pascal mailing list