tesseract  5.0.0-alpha-619-ge9db
tesseract::RecodedCharID::RecodedCharIDHash Struct Reference

#include <unicharcompress.h>

Public Member Functions

uint64_t operator() (const RecodedCharID &code) const
 

Detailed Description

Definition at line 80 of file unicharcompress.h.

Member Function Documentation

◆ operator()()

uint64_t tesseract::RecodedCharID::RecodedCharIDHash::operator() ( const RecodedCharID code) const
inline

Definition at line 81 of file unicharcompress.h.

81  {
82  uint64_t result = 0;
83  for (int i = 0; i < code.length_; ++i) {
84  result ^= static_cast<uint64_t>(code(i)) << (7 * i);
85  }
86  return result;
87  }

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