src/ccstruct/boxword.cpp
void BoxWord::InsertBox(unsigned index, const TBOX &box) {
  if (index < length_) {
    boxes_.insert(boxes_.begin() + index, box);
  } else {
    boxes_.push_back(box);
  }
  length_ = boxes_.size();
  ComputeBoundingBox();
}
// Inserts a new box before the given index.
// Recomputes the bounding box.
Inserts a new box before the given index.
Recomputes the bounding box.
Inserts a new box before the given index . Recomputes the bounding box .
void BoxWord::InsertBox(unsigned index, const TBOX &box) {
  if (index < length_) {
    boxes_.insert(boxes_.begin() + index, box);
  } else {
    boxes_.push_back(box);
  }
  length_ = boxes_.size();
  ComputeBoundingBox();
}
void BoxWord :: InsertBox ( unsigned index , const TBOX & box ) { if ( index < length_ ) { boxes_ . insert ( boxes_ . begin ( ) + index , box ) ; } else { boxes_ . push_back ( box ) ; } length_ = boxes_ . size ( ) ; ComputeBoundingBox ( ) ; }
Inserts a new box before the given index.
Inserts a new box before the given index .