[fpc-devel] Unicode resource strings

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Aug 21 12:58:06 CEST 2012

On 21 August 2012 11:32, Marco van de Voort <marcov at stack.nl> wrote:
> All routines like capitalization (routinely used for case insensitve
> comparison) get a lot more complicated.

Obviously Unicode is a lot more complicated, because it is design for
_all_ spoken and non-spoken languages. ASCII is minute in comparison.

Good news is that Unicode can do lots of other things too which could
help performance.
eg: You don't need to attempt to capitalise characters if they are
outside a Unicode category "Letter" and "Uppercase". Or for a Unicode
StrToInt() implementation, simply do a simple "Number" or "Decimal
Digit" category check before you attempt the conversion.

Unicode categories are very useful, and they are simple lookup tables
- and already available for FPC to use (implemented in Object Pascal).

  - Graeme -

fpGUI - a cross-platform Free Pascal GUI toolkit

More information about the fpc-devel mailing list