[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strstr speedup
From: |
Eric Blake |
Subject: |
Re: strstr speedup |
Date: |
Thu, 10 Jan 2008 20:33:44 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Bruno Haible on 1/10/2008 8:04 PM:
|
| I dislike strcasestr because it _appears_ to be locale dependent if you test
| it with some old locales - but it does not work with the majority of locales
| in use today. The only reason to support it in gnulib is that BSD and glibc
| systems have it.
You raise some good points; programs worried about i18n should generally
avoid strcasestr. However, gnulib already has a strcasestr module, so
should I go ahead and prepare a patch for strcasestr, c-strcasestr, and
memcasecmp to utilize str-two-way.h?
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHhuOY84KuGfSFAYARAoCDAKCKeE/KD186aBiGvQb2GrPeysJY4QCfXWnD
r8QuByrFyqmA+eaPJmvsD38=
=Kpd0
-----END PGP SIGNATURE-----
- strstr speedup, Eric Blake, 2008/01/10
- Re: strstr speedup, Bruno Haible, 2008/01/10
- Re: strstr speedup, Bruno Haible, 2008/01/10
- Re: strstr speedup,
Eric Blake <=
- Re: strstr speedup, Eric Blake, 2008/01/12
- Re: strstr speedup, Bruno Haible, 2008/01/12
- Re: strstr speedup, Eric Blake, 2008/01/12
Re: strstr speedup, Bruno Haible, 2008/01/11