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

Function IsReadableFile

plugins/jieba/tests/JiebaPluginIntegrationTest.cpp:102–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102bool IsReadableFile(const std::string& path) {
103 std::ifstream ifs(path.c_str());
104 return ifs.is_open();
105}
106
107} // namespace
108#else

Callers 2

PluginDirectoryMethod · 0.70
MergedJiebaDictPathMethod · 0.70

Calls 1

is_openMethod · 0.45

Tested by

no test coverage detected