Electroneum
Language::WordHash Struct Reference

#include <language_base.h>

Public Member Functions

std::size_t operator() (const epee::wipeable_string &s) const
 

Detailed Description

Definition at line 144 of file language_base.h.

Member Function Documentation

◆ operator()()

std::size_t Language::WordHash::operator() ( const epee::wipeable_string s) const
inline

Definition at line 146 of file language_base.h.

147  {
148  const epee::wipeable_string sc = utf8canonical(s);
149  return epee::fnv::FNV1a(sc.data(), sc.size());
150  }
size_t size() const noexcept
T utf8canonical(const T &s)
Definition: language_base.h:78
uint64_t FNV1a(const char *ptr, size_t sz)
Definition: fnv1.h:36
const char * data() const noexcept
Here is the call graph for this function:

The documentation for this struct was generated from the following file: