[fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support
theo
xpde at theo.ch
Wed Sep 16 09:09:18 CEST 2009
> I suppose converting a combined character into a single character is not
> possible as it would need a huge table.
Michael Schnell, I thought you'd know about character.pas http://wiki.lazarus.freepascal.org/Theodp
It does normalization:
class function Normalize_NFD(AString: UTF8String): UTF8String;
class function Normalize_NFC(AString: UTF8String): UTF8String;
class function Normalize_NFKD(AString: UTF8String): UTF8String;
class function Normalize_NFKC(AString: UTF8String): UTF8String;
See the charandscan example at:
Combined Chars: ÅÅ'
Cheers
Theo
More information about the fpc-devel
mailing list