On 11/06/2013 01:40 PM, Martin Schreiber wrote:
>   string8, string16 and string32.
> string8 is utf-8 encoded, string16 utf-16, string32 ucs4.
This ask for three versions of RTL provided classes like TStringlist 
(and in fact TStrings) , so that the user who decides to use one of the 
three throughout his program does not suffer from necessary conversions.

I doubt that there is a decent way to have the compiler decide which 
class to use.

If multiple explicit classes are not to be used in all places, a kind of 
automation would be necessary. Either introducing "overloading" of 
properties according to the type of the assignment partner (I did see 
such requests in other instances)  or adding a kind of encoding aware 
string type (or "variant String") that "know" that he "is" one of the 
three.

-Michael

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to