tesseract  5.0.0-alpha-619-ge9db
tesseract::BoxCharPtrSort Struct Reference

#include <boxchar.h>

Public Member Functions

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

Detailed Description

Definition at line 121 of file boxchar.h.

Member Function Documentation

◆ operator()()

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

Definition at line 122 of file boxchar.h.

122  {
123  bool operator()(const BoxChar* box1, const BoxChar* box2) const {
124  if (box1->rtl_index() >= 0 && box2->rtl_index() >= 0)
125  return box2->rtl_index() < box1->rtl_index();
126  return *box1 < *box2;

The documentation for this struct was generated from the following file:
tesseract::BoxCharPtrSort::operator()
bool operator()(const BoxChar *box1, const BoxChar *box2) const
Definition: boxchar.h:122