Re: case-insensitive hash of strings

2007-08-22 Thread Jim Meyering
Eric Blake <[EMAIL PROTECTED]> wrote: > 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? I'd rather not change it, unless there's a problem. Have you found inputs for which it doesn't work well?

Re: case-insensitive hash of strings

2007-08-21 Thread Bruno Haible
Eric, > 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? I believe it should usually have no effect on the average number of collisions (= average length of a non-empty hash bucket), but I would be more

case-insensitive hash of strings

2007-08-21 Thread Eric Blake
-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