tesseract  4.0.0-1-g2a2b
tesseract::RecodedCharID::RecodedCharIDHash Struct Reference

#include <unicharcompress.h>

Public Member Functions

size_t operator() (const RecodedCharID &code) const
 

Detailed Description

Definition at line 80 of file unicharcompress.h.

Member Function Documentation

◆ operator()()

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

Definition at line 81 of file unicharcompress.h.

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

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