[fpc-devel] assign constant text to widestring
daniel.mantione at freepascal.org
Thu Oct 23 17:34:59 CEST 2008
Op Thu, 23 Oct 2008, schreef JoshyFun:
> Hello Michael,
> Thursday, October 23, 2008, 1:46:48 PM, you wrote:
>>> More importantly, most of such routines will be implicitely tied to a
>>> certain language or language group already.
> MS> Which kind of UCS2 based function do you think are tied to a
> MS> language(group) ?
> UpperCase, LowerCase, CapitalCase, WordBreak, ParagraphBreak, ...
> almost all have some language exceptions.
Don't overexagerate, this is true with plain ASCII as well. Non-English
software exists already for over 5 decades and nothing has stopped us to
write code that performs the functions you name.
Example: In Dutch uppercase characters generally do not get tremas:
Daniël becomes DANIEL. Should an uppercase routine worry? No, this is a
spelling convention, the correct uppercase of ë is Ë, we should not
confuse spelling with uppercasing.
If someone wants to write language spelling convention specific uppercase
routines he is free, FPC's runtime library should simply return the
correct uppercase of the characters of a string and so should software
working with lower/uppercase characters not bother in most circumstances.
More information about the fpc-devel