[fpc-devel] UnicodeStrings - Variant conversion

Alexander Shishkin alexvins at mail.ru
Mon Nov 28 15:37:52 CET 2011


14.11.2011 7:02, Alexander Shishkin пишет:
> Currently assigning UnicodeString to variant converts string to
> WideString and makes variant of type varOleStr.
> I think it should be varUString and w|o any conversion (also this is
> delphi compatible). But the question is which type should be if
> WideString=UnicodeString?
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
>
But real problem is that varUString is not supported by RTL. ( 
Variant<->UnicodeString assignment can be easily overriden with operator 
overloading). Sрould I write custom variant manager also to work with 
unicode?



More information about the fpc-devel mailing list