27#include "Converter.hpp"
29#include "StreamWindow.hpp"
68 std::vector<std::string> sources;
69 std::vector<AmbiguousSpan> ambiguities;
100ConvertWithAmbiguities(
const Converter& converter, std::string_view text);
121 std::vector<AmbiguousSpan> ambiguities;
122 std::vector<std::string> newSources;
126 bool analyzed =
true;
130 ConverterPtr converter,
131 size_t maxKeepChars = internal::kDefaultStreamKeepChars);
135 Chunk ConvertChunk(std::string_view input);
138 Chunk Finish(std::string_view input);
144 size_t SourceCount()
const;
147 Chunk ConvertWindow(std::string_view window);
150 std::unique_ptr<Impl> impl;
Streaming variant of ConvertWithAmbiguities() with bounded memory.
Definition: ConversionAmbiguities.hpp:117
Abstract base for full-text converters.
Definition: Converter.hpp:48
Definition: ConversionAmbiguities.hpp:119
One span of the converted output whose source maps to more than one candidate (a one-to-many dictiona...
Definition: ConversionAmbiguities.hpp:46
Result of ConvertWithAmbiguities(): the converted text plus the spans where the conversion is one-to-...
Definition: ConversionAmbiguities.hpp:66
bool analyzed
False when the converter could not be analyzed (no single conversion chain, e.g.
Definition: ConversionAmbiguities.hpp:73