mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +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