#include <util.h>
Definition at line 32 of file util.h.
◆ operator()()
size_t StringHash::operator() |
( |
const std::string & |
s | ) |
const |
|
inline |
Definition at line 33 of file util.h.
35 const char* str = s.c_str();
36 for (
int ch = 0; str[ch] != 0; ++ch) {
37 hash_code += str[ch] << (ch % 24);
The documentation for this struct was generated from the following file:
- /usr/src/tesseract-ocr.master/src/training/util.h