tesseract  4.00.00dev
tesseract::RadicalStrokedHash Struct Reference

Public Member Functions

size_t operator() (const RadicalStroke &rs) const
 

Detailed Description

Definition at line 49 of file unicharcompress.cpp.

Member Function Documentation

◆ operator()()

size_t tesseract::RadicalStrokedHash::operator() ( const RadicalStroke rs) const
inline

Definition at line 50 of file unicharcompress.cpp.

50  {
51  size_t result = rs.num_strokes;
52  for (int i = 0; i < rs.radical.length(); ++i) {
53  result ^= rs.radical[i] << (6 * i + 8);
54  }
55  return result;
56  }

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