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

Function ResolveConfigPath

src/benchmark/Performance.cpp:146–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146std::string ResolveConfigPath(const std::string& config_name) {
147#ifdef OPENCC_BENCHMARK_JIEBA_CONFIG_DIR
148 if (config_name == "s2twp_jieba") {
149 SetPluginSearchPath(OPENCC_BENCHMARK_JIEBA_PLUGIN_DIR);
150 return std::string(OPENCC_BENCHMARK_JIEBA_CONFIG_DIR) + "/" + config_name +
151 ".json";
152 }
153#endif
154 return std::string(PROJECT_SOURCE_DIR) + "/data/config/" + config_name + ".json";
155}
156
157std::string ResolveTextDictionaryPath(const std::string& dict_file_name) {
158 const std::string text_file_name =

Callers 1

BuildBenchmarkConfigsFunction · 0.85

Calls 1

SetPluginSearchPathFunction · 0.85

Tested by

no test coverage detected