tesseract  5.0.0
tesseract::RecodedCharID::RecodedCharIDHash Struct Reference

#include <unicharcompress.h>

Public Member Functions

uint64_t operator() (const RecodedCharID &code) const
 

Detailed Description

Definition at line 91 of file unicharcompress.h.

Member Function Documentation

◆ operator()()

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

Definition at line 92 of file unicharcompress.h.

92  {
93  uint64_t result = 0;
94  for (int i = 0; i < code.length_; ++i) {
95  result ^= static_cast<uint64_t>(code(i)) << (7 * i);
96  }
97  return result;
98  }

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