tesseract  4.0.0-1-g2a2b
tesseract::BoxCharPtrSort Struct Reference

#include <boxchar.h>

Public Member Functions

bool operator() (const BoxChar *box1, const BoxChar *box2) const
 

Detailed Description

Definition at line 122 of file boxchar.h.

Member Function Documentation

◆ operator()()

bool tesseract::BoxCharPtrSort::operator() ( const BoxChar box1,
const BoxChar box2 
) const
inline

Definition at line 123 of file boxchar.h.

123  {
124  if (box1->rtl_index() >= 0 && box2->rtl_index() >= 0)
125  return box2->rtl_index() < box1->rtl_index();
126  return *box1 < *box2;
127  }

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