tesseract  5.0.0-alpha-619-ge9db
StringHash Struct Reference

#include <util.h>

Public Member Functions

size_t operator() (const std::string &s) const
 

Detailed Description

Definition at line 30 of file util.h.

Member Function Documentation

◆ operator()()

size_t StringHash::operator() ( const std::string s) const
inline

Definition at line 46 of file util.h.

46  {
47  hash_code += str[ch] << (ch % 24);
48  }
49  return hash_code;
50  }
51  bool operator()(const std::string& s1, const std::string& s2) const {
52  return s1 == s2;
53  }

The documentation for this struct was generated from the following file:
string
std::string string
Definition: equationdetect_test.cc:21
StringHash::operator()
size_t operator()(const std::string &s) const
Definition: util.h:46