#include <userver/utils/str_icase.hpp>
Case sensitive ASCII hashing functor.
Definition at line 22 of file str_icase.hpp.
Public Member Functions | |
StrCaseHash () | |
Generates a new random hash seed for each hasher instance. | |
StrCaseHash (HashSeed seed) noexcept | |
std::size_t | operator() (std::string_view s) const &noexcept |
template<class StringStrongTypedef > | |
auto | operator() (const StringStrongTypedef &s) const &noexcept -> decltype(operator()(std::string_view{s.GetUnderlying()})) |
HashSeed | GetSeed () const noexcept |
|
explicitnoexcept |
Uses the provided seed. Use with caution: a constant seed makes the hasher vulnerable to HashDOS attacks when arbitrary keys are allowed.
|
inlinenoexcept |
Definition at line 47 of file str_icase.hpp.
|
inlinenoexcept |
Definition at line 36 of file str_icase.hpp.