MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / ConvertWithTrace

Method ConvertWithTrace

src/ConversionChain.cpp:93–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93std::vector<SegmentsPtr>
94ConversionChain::ConvertWithTrace(const SegmentsPtr& input) const {
95 std::vector<SegmentsPtr> trace;
96 trace.reserve(conversions.size());
97 SegmentsPtr output = input;
98 for (auto conversion : conversions) {
99 output = conversion->Convert(output);
100 trace.push_back(output);
101 }
102 return trace;
103}

Callers 1

InspectMethod · 0.80

Calls 4

reserveMethod · 0.45
sizeMethod · 0.45
ConvertMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected