Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-04

Working with PUCS4Char and UCS4String

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ludo Brands

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

Reply by email