Return that there is no such object at a given level. */
| 346 | |
| 347 | /** Return that there is no such object at a given level. */ |
| 348 | bool 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. */ |
| 357 | PolyBlockType PageIterator::BlockType() const { |
no test coverage detected