[fpc-devel] Unicode functions

Daniël Mantione daniel.mantione at freepascal.org
Tue Aug 26 09:03:03 CEST 2008



Op Tue, 26 Aug 2008, schreef Graeme Geldenhuys:

> On Tue, Aug 26, 2008 at 12:15 AM, JoshyFun <joshyfun at gmail.com> wrote:
>>
>> returns exactly the same string (WinXP FPC 2.2.2), as this functions
>> seens to not be implemented right now I started to work in some
>> functions for this job at least for the simple cases, this means one
>> low case char has one upper case char, which should solve 95% of the
>> cases.
>
> I'm just curious how this works with Unicode characters. I guess the
> Unicode website should cover this in detail (though I haven't searched
> for it yet).  How do you convert from lower to upper case? Is there a
> set formula per Unicode Block?

There is only one way to case convert Unicode characters: tables.  A 
trivial solution would be an array[widechar] of widechar, but one might 
want a more memory efficient solution.

Daniël


More information about the fpc-devel mailing list