| 58 | |
| 59 | #ifdef OPENCC_BENCHMARK_JIEBA_CONFIG_DIR |
| 60 | void SetPluginSearchPath(const char* path) { |
| 61 | if (path == nullptr || *path == '\0') { |
| 62 | return; |
| 63 | } |
| 64 | #ifdef _WIN32 |
| 65 | _putenv_s("OPENCC_SEGMENTATION_PLUGIN_PATH", path); |
| 66 | #else |
| 67 | setenv("OPENCC_SEGMENTATION_PLUGIN_PATH", path, 1); |
| 68 | #endif |
| 69 | } |
| 70 | #endif |
| 71 | |
| 72 | bool IsRegularFile(const std::string& path) { |
no test coverage detected