22 #ifndef COMMON_HASH_STR_H 23 #define COMMON_HASH_STR_H 25 #include "common/hashmap.h" 26 #include "common/str.h" 30 uint hashit(
const char *str);
31 uint hashit_lower(
const char *str);
32 inline uint hashit_lower(
const String &str) {
return hashit_lower(str.c_str()); }
41 uint operator()(
const String& x)
const {
return x.hash(); }
46 bool operator()(
const String& x,
const String& y)
const {
return x.equalsIgnoreCase(y); }
50 uint operator()(
const String& x)
const {
return hashit_lower(x.c_str()); }
61 uint operator()(
const String& s)
const {
68 uint operator()(
const U32String& s)
const {
74 struct Hash<const char *> {
75 uint operator()(
const char *s)
const {
bool equals(const BaseString &x) const
Definition: hash-str.h:40
Definition: algorithm.h:29
Definition: hash-str.h:49
Definition: hash-str.h:45
Definition: hash-str.h:36