| 852 | int Epub::getTocIndexForSpineIndex(const int spineIndex) const { return getSpineItem(spineIndex).tocIndex; } |
| 853 | |
| 854 | size_t Epub::getBookSize() const { |
| 855 | if (!bookMetadataCache || !bookMetadataCache->isLoaded() || bookMetadataCache->getSpineCount() == 0) { |
| 856 | return 0; |
| 857 | } |
| 858 | return getCumulativeSpineItemSize(getSpineItemsCount() - 1); |
| 859 | } |
| 860 | |
| 861 | int Epub::getSpineIndexForTextReference() const { |
| 862 | if (!bookMetadataCache || !bookMetadataCache->isLoaded()) { |
no test coverage detected