This commit is contained in:
jpirnay
2026-04-01 10:41:56 +02:00
parent fb4d0c6572
commit ed02f20c36
4 changed files with 15 additions and 15 deletions
@@ -1,15 +1,15 @@
#include "ChapterXPathForwardMapper.h"
#include "ChapterXPathIndexerInternal.h"
#include "ChapterXPathIndexerState.h"
#include <HalStorage.h>
#include <Logging.h>
#include <expat.h>
#include <algorithm>
#include <unordered_map>
#include <string>
#include <unordered_map>
#include "ChapterXPathIndexerInternal.h"
#include "ChapterXPathIndexerState.h"
namespace ChapterXPathIndexerInternal {
+4 -4
View File
@@ -1,9 +1,5 @@
#include "ChapterXPathIndexer.h"
#include "ChapterXPathForwardMapper.h"
#include "ChapterXPathIndexerInternal.h"
#include "ChapterXPathReverseMapper.h"
#include <Logging.h>
#include <cctype>
@@ -11,6 +7,10 @@
#include <limits>
#include <string>
#include "ChapterXPathForwardMapper.h"
#include "ChapterXPathIndexerInternal.h"
#include "ChapterXPathReverseMapper.h"
using namespace ChapterXPathIndexerInternal;
// Public facade used by ProgressMapper. It intentionally stays thin and delegates
+2 -2
View File
@@ -1,11 +1,11 @@
#pragma once
#include "ChapterXPathIndexerInternal.h"
#include <string>
#include <unordered_map>
#include <vector>
#include "ChapterXPathIndexerInternal.h"
namespace ChapterXPathIndexerInternal {
// Shared parser state used by both forward and reverse mappers.
@@ -1,8 +1,5 @@
#include "ChapterXPathReverseMapper.h"
#include "ChapterXPathIndexerInternal.h"
#include "ChapterXPathIndexerState.h"
#include <HalStorage.h>
#include <Logging.h>
#include <expat.h>
@@ -11,6 +8,9 @@
#include <cstdlib>
#include <string>
#include "ChapterXPathIndexerInternal.h"
#include "ChapterXPathIndexerState.h"
namespace ChapterXPathIndexerInternal {
namespace {
@@ -225,8 +225,8 @@ bool findProgressForXPathInternal(const std::shared_ptr<Epub>& epub, const int s
outIntraSpineProgress = std::max(0.0f, std::min(1.0f, outIntraSpineProgress));
}
LOG_DBG("KOX", "Reverse: spine=%d %s match offset=%zu/%zu -> progress=%.3f for '%s'", spineIndex,
state.bestTierName, state.bestOffset, state.totalTextBytes, outIntraSpineProgress, xpath.c_str());
LOG_DBG("KOX", "Reverse: spine=%d %s match offset=%zu/%zu -> progress=%.3f for '%s'", spineIndex, state.bestTierName,
state.bestOffset, state.totalTextBytes, outIntraSpineProgress, xpath.c_str());
return true;
}