String class usage cleanup

svn-id: r23582
This commit is contained in:
Max Horn 2006-07-23 15:08:48 +00:00
parent 602548cea3
commit 4fcdbb9349
6 changed files with 9 additions and 12 deletions

View file

@ -57,21 +57,16 @@ namespace Common {
uint hashit(const char *p) {
uint hash = 0;
byte c;
hash = 0;
while ((c = *p++))
hash = (hash * 31 + c);
return hash;
}
uint hashit_lower(const char *p) {
uint hash = 0;
byte c;
while ((c = *p++))
hash = (hash * 31 + tolower(c));
return hash;
}