String class usage cleanup
svn-id: r23582
This commit is contained in:
parent
602548cea3
commit
4fcdbb9349
6 changed files with 9 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue