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 88 of file unicharcompress.h.

Member Function Documentation

◆ operator()()

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

Definition at line 89 of file unicharcompress.h.

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

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