22#ifndef COMMON_HASH_STR_H
23#define COMMON_HASH_STR_H
25#include "common/hashmap.h"
26#include "common/str.h"
30uint hashit(
const char *str);
31uint hashit_lower(
const char *str);
32inline uint hashit_lower(
const String &str) {
return hashit_lower(str.c_str()); }
37 bool operator()(
const String& x,
const String& y)
const {
return x.equals(y); }
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 {
75 uint operator()(
const char *s)
const {
Definition: algorithm.h:29
Definition: hash-str.h:36
Definition: hash-str.h:40
Definition: hash-str.h:45
Definition: hash-str.h:49