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

Method Empty

deps/tesseract/ccmain/pageiterator.cpp:348–354  ·  view source on GitHub ↗

Return that there is no such object at a given level. */

Source from the content-addressed store, hash-verified

346
347/** Return that there is no such object at a given level. */
348bool PageIterator::Empty(PageIteratorLevel level) const {
349 if (it_->block() == NULL) return true; // Already at the end!
350 if (it_->word() == NULL && level != RIL_BLOCK) return true; // image block
351 if (level == RIL_SYMBOL && blob_index_ >= word_length_)
352 return true; // Zero length word, or already at the end of it.
353 return false;
354}
355
356/** Returns the type of the current block. See apitypes.h for PolyBlockType. */
357PolyBlockType PageIterator::BlockType() const {

Callers 12

TransformResultMethod · 0.45
CurrentParagraphIsLtrMethod · 0.45
IsAtFinalElementMethod · 0.45
IsAtFinalElementMethod · 0.45
DetectParagraphsFunction · 0.45
GetUTF8TextMethod · 0.45
GetHOCRTextMethod · 0.45
GetTSVTextMethod · 0.45
GetPDFTextObjectsMethod · 0.45

Calls 2

blockMethod · 0.45
wordMethod · 0.45

Tested by

no test coverage detected