Working with PUCS4Char and UCS4String

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Working with PUCS4Char and UCS4String

Ludo Brands
Message
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) ?
 
Ludo

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal