Re[2]: [fpc-pascal] Case insensitive comparison of strings with non-ascii characters

2009-07-26 Thread theo
> lowercasemapping(a)=lowercasemapping(b) > > is the same as: > > IsSameText(a,b) > > is wrong at unicode levels. > > @JoshyFun It depends on what you excpect from such a function and with which sort of input data you have to deal. I wouldn't say it is wrong. It is not really accurate for all

Re[2]: [fpc-pascal] Case insensitive comparison of strings with non-ascii characters

2009-07-25 Thread JoshyFun
Hello FPC-Pascal, Thursday, July 23, 2009, 2:02:38 PM, you wrote: LAPC> Hi, i'm aware that the performance is bad although had not tested like LAPC> you did, but at this point i'd like to stick with a solution that fpc LAPC> provides natively since it's being used in a fpc component LAPC> (TSqli

Re[2]: [fpc-pascal] Case insensitive comparison of strings with non-ascii characters

2009-07-25 Thread JoshyFun
Hello FPC-Pascal, Saturday, July 25, 2009, 5:46:39 PM, you wrote: t> @Luiz Americo t> Your code t> WideCompareText(UTF8Decode(Key), UTF8Decode(Str)) t> will work, but if speed matters, then it's rather bad. That's not right, the assumption that: lowercasemapping(a)=lowercasemapping(b) is the