MCPcopy Create free account
hub / github.com/creatale/node-dv / Cmp

Method Cmp

deps/tesseract/ccmain/pageiterator.cpp:234–243  ·  view source on GitHub ↗

* Returns whether this iterator is positioned * before other: -1 * equal to other: 0 * after other: 1 */

Source from the content-addressed store, hash-verified

232 * after other: 1
233 */
234int PageIterator::Cmp(const PageIterator &other) const {
235 int word_cmp = it_->cmp(*other.it_);
236 if (word_cmp != 0)
237 return word_cmp;
238 if (blob_index_ < other.blob_index_)
239 return -1;
240 if (blob_index_ == other.blob_index_)
241 return 0;
242 return 1;
243}
244
245// ============= Accessing data ==============.
246// Coordinate system:

Callers

nothing calls this directly

Calls 1

cmpMethod · 0.80

Tested by

no test coverage detected