tesseract  4.00.00dev
tesseract::RecodedCharID::RecodedCharIDHash Struct Reference

#include <unicharcompress.h>

Public Member Functions

size_t operator() (const RecodedCharID &code) const
 

Detailed Description

Definition at line 86 of file unicharcompress.h.

Member Function Documentation

◆ operator()()

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

Definition at line 87 of file unicharcompress.h.

87  {
88  size_t result = 0;
89  for (int i = 0; i < code.length_; ++i) {
90  result ^= code(i) << (7 * i);
91  }
92  return result;
93  }

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