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

Function SetPluginSearchPath

src/benchmark/Performance.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59#ifdef OPENCC_BENCHMARK_JIEBA_CONFIG_DIR
60void 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
72bool IsRegularFile(const std::string& path) {

Callers 2

ResolveConfigPathFunction · 0.85
RunCommandLineConversionFunction · 0.85

Calls 1

setenvFunction · 0.85

Tested by

no test coverage detected