On 21 August 2012 11:32, Marco van de Voort <mar...@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).

-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to