| 144 | } |
| 145 | |
| 146 | std::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 | |
| 157 | std::string ResolveTextDictionaryPath(const std::string& dict_file_name) { |
| 158 | const std::string text_file_name = |
no test coverage detected