[fpc-devel] Re: enumerators

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Nov 17 15:17:37 CET 2010


On 17 Nov 2010, at 13:44, Michael Schnell wrote:

> In fact I was not aware of the UTF-16 coding scheme. I _supposed_ it  
> would work similar as UTF-8 (highest bit set => 32 bit value  
> composed from the 31 remaining bits of this and the next word and  
> bit 31 reset) and thus could be decoded algorithmically. Seemingly I  
> was wrong and a huge table is needed to decode UTF16.

You don't need any table, see utf16toutf32 in http://svn.freepascal.org/svn/fpc/trunk/rtl/inc/wstrings.inc


Jonas



More information about the fpc-devel mailing list