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

Method RestartParagraph

deps/tesseract/ccmain/pageiterator.cpp:109–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void PageIterator::RestartParagraph() {
110 if (it_->block() == NULL) return; // At end of the document.
111 PAGE_RES_IT para(page_res_);
112 PAGE_RES_IT next_para(para);
113 next_para.forward_paragraph();
114 while (next_para.cmp(*it_) <= 0) {
115 para = next_para;
116 next_para.forward_paragraph();
117 }
118 *it_ = para;
119 BeginWord(0);
120}
121
122bool PageIterator::IsWithinFirstTextlineOfParagraph() const {
123 PageIterator p_start(*this);

Callers 3

CurrentParagraphIsLtrMethod · 0.80

Calls 3

forward_paragraphMethod · 0.80
cmpMethod · 0.80
blockMethod · 0.45

Tested by

no test coverage detected