tesseract  5.0.0
tesseract::BoxCharPtrSort Struct Reference

#include <boxchar.h>

Public Member Functions

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

Detailed Description

Definition at line 134 of file boxchar.h.

Member Function Documentation

◆ operator()()

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

Definition at line 135 of file boxchar.h.

135  {
136  if (box1->rtl_index() >= 0 && box2->rtl_index() >= 0) {
137  return box2->rtl_index() < box1->rtl_index();
138  }
139  return *box1 < *box2;
140  }

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