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

Function InlineSingleStepConfig

src/ConfigTest.cpp:170–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170std::string InlineSingleStepConfig(const std::string& segmentationEntries,
171 const std::string& conversionDict) {
172 return std::string("{\n"
173 " \"name\": \"Inline Dict Test\",\n"
174 " \"segmentation\": {\n"
175 " \"type\": \"mmseg\",\n"
176 " \"dict\": {\n"
177 " \"type\": \"inline\",\n"
178 " \"entries\": ") +
179 segmentationEntries +
180 "\n"
181 " }\n"
182 " },\n"
183 " \"conversion_chain\": [{\n"
184 " \"dict\": " +
185 conversionDict +
186 "\n"
187 " }]\n"
188 "}\n";
189}
190
191std::string FindOcd2DictionaryDir(const std::string& configTestDirPath) {
192 std::vector<fs::path> candidates;

Callers 1

TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected