mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
Output directory list to stdout. Fixes #4149
This commit is contained in:
parent
dc228edc56
commit
8cee06da5a
@ -211,11 +211,11 @@ void TessdataManager::Clear() {
|
||||
|
||||
// Prints a directory of contents.
|
||||
void TessdataManager::Directory() const {
|
||||
tprintf("Version:%s\n", VersionString().c_str());
|
||||
printf("Version:%s\n", VersionString().c_str());
|
||||
auto offset = TESSDATA_NUM_ENTRIES * sizeof(int64_t);
|
||||
for (unsigned i = 0; i < TESSDATA_NUM_ENTRIES; ++i) {
|
||||
if (!entries_[i].empty()) {
|
||||
tprintf("%u:%s:size=%zu, offset=%zu\n", i, kTessdataFileSuffixes[i], entries_[i].size(),
|
||||
printf("%u:%s:size=%zu, offset=%zu\n", i, kTessdataFileSuffixes[i], entries_[i].size(),
|
||||
offset);
|
||||
offset += entries_[i].size();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user