bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

case-insensitive hash of strings


From: Eric Blake
Subject: case-insensitive hash of strings
Date: Tue, 21 Aug 2007 13:27:05 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A couple of questions.  First, in hash-pjw.c, should we be using unsigned
char instead of char to iterate through the NUL-terminated string?

Second, would it be worth adding a case-insensitive version of hash_pjw,
so that strings can be hashed to the same value regardless of their case?
 It only makes sense for single-byte locales, but that's all the more that
hash_pjw accommodates at the moment.

- --
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

iD8DBQFGyzyJ84KuGfSFAYARAkEuAJoDN+KC/8IeoHrCyCS8MSt50rrc5wCePSqd
KvrPdLfH54f6xaTUHXgxbGE=
=Xt3m
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]