📅  最后修改于: 2022-03-11 14:44:56.789000             🧑  作者: Mango
switch(str2int("my string"))
{
case str2int("my string")):
{
}
break;
}
constexpr unsigned int str2int(const char* str, int h = 0)
{
return !str[h] ? 5381 : (str2int(str, h+1) * 33) ^ str[h];
}