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 possible
They should, since the uppercase version of i is İ there (i.e., a
capital I with a dot on top). See e.g.
http://www.i18nguy.com/unicode/turkish-i18n.html
Oh, Goodness. ;-)
Thanks for the information.
Regards
Theo
___
fpc-pascal maillist -
Hello FPC-Pascal,
Sunday, July 26, 2009, 9:43:06 AM, you wrote:
t In your strict sense, AnsiCompareText didn't work either.
Yes, Ansi does not work fine also for some usual languages. But we are
used to simulate a comparetext using lowercase(a)=lowercase(b) where
the same character could have
Hello FPC-Pascal,
Sunday, July 26, 2009, 9:43:06 AM, you wrote:
The code is not optimized but if somebody wants to use them please ask
t Yes please!
I had uploaded the sources to zshare server with the link:
http://www.zshare.net/download/63185150b6099e5d/
The code is not an example of how
I had uploaded the sources to zshare server with the link:
Thanks, I'll have a look at it.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
@Luiz Americo
Your code
WideCompareText(UTF8Decode(Key), UTF8Decode(Str))
will work, but if speed matters, then it's rather bad.
I've tried to make a faster function for UTF-8:
uses unicodeinfo, LCLProc;
function UTF8CompareText(s1, s2: UTF8String): Integer;
var u1, u2: Ucs4Char;
u1l, u2l:
theo escreveu:
@Luiz Americo
Your code
WideCompareText(UTF8Decode(Key), UTF8Decode(Str))
will work, but if speed matters, then it's rather bad.
Hi, i'm aware that the performance is bad although had not tested like
you did, but at this point i'd like to stick with a solution that fpc
On 25 Jul 2009, at 19:03, theo wrote:
Do turkish systems behave differently for WideLowerCase('I')?
Will they return $0131 instead of $0069 ?
They should, since the uppercase version of i is İ there (i.e., a
capital I with a dot on top). See e.g.
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
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
Luiz Americo Pereira Camara escreveu:
JoshyFun escreveu:
Hello FPC-Pascal,
Tuesday, July 21, 2009, 6:45:03 AM, you wrote:
LAPC I'm trying to fix bug
LAPC http://bugs.freepascal.org/view.php?id=14135 but LAPC could
not get a way to do case insensitive comparison of UTF8 strings
LAPC with non
Hi,
I'm trying to fix bug http://bugs.freepascal.org/view.php?id=14135 but
could not get a way to do case insensitive comparison of UTF8 strings
with non ascii characters (in the test even ansi strings failed).
See the attached test program. I tried StrIComp, AnsiCompareText,
CompareText
Hello FPC-Pascal,
Tuesday, July 21, 2009, 6:45:03 AM, you wrote:
LAPC I'm trying to fix bug
LAPC http://bugs.freepascal.org/view.php?id=14135 but
LAPC could not get a way to do case insensitive comparison of UTF8 strings
LAPC with non ascii characters (in the test even ansi strings failed).
JoshyFun escreveu:
Hello FPC-Pascal,
Tuesday, July 21, 2009, 6:45:03 AM, you wrote:
LAPC I'm trying to fix bug
LAPC http://bugs.freepascal.org/view.php?id=14135 but
LAPC could not get a way to do case insensitive comparison of UTF8 strings
LAPC with non ascii characters (in the test even
14 matches
Mail list logo