[fpc-devel] assign constant text to widestring

JoshyFun joshyfun at gmail.com
Fri Oct 24 11:07:38 CEST 2008


Hello Jonas,

Friday, October 24, 2008, 10:27:23 AM, you wrote:

JM> On 24 Oct 2008, at 01:46, Felipe Monteiro de Carvalho wrote:
>> I agree with Daniël on this one. Simplify. ë --> Ë always
>>
>> If you need something which takes into consideration the language then
>> build another routine with more parameters.
JM> UpperCase and LowerCase are mapped to OS routines which do take into
JM> account the current locale (at least on *nix). So unless those  
JM> routines always do ë -> Ë regardless of the locale, you will not get
JM> this behaviour.

Last time I cheked it on Windows no UpperCase is performed for
WideString for codepoints > 127, maybe it has been changed recently (1
month). And yes default case conversion for "ë" is "Ë" as default
conversions are right in around 99% cases in most common languages,
only a few exceptions are available. Sort engine is much more
complicated and much more language tied (To be conforman with each
language) but default case always do a reasonable result for most cases.

-- 
Best regards,
 JoshyFun




More information about the fpc-devel mailing list