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

Function CanOpenFileUtf8

src/Config.cpp:143–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143bool CanOpenFileUtf8(const std::string& path) {
144 FILE* fp = OpenFileUtf8(path, "rb");
145 if (fp == nullptr) {
146 return false;
147 }
148 fclose(fp);
149 return true;
150}
151
152std::string ReadFileUtf8(const std::string& path) {
153 FILE* fp = OpenFileUtf8(path, "rb");

Callers 1

FindConfigFileMethod · 0.85

Calls 1

OpenFileUtf8Function · 0.70

Tested by

no test coverage detected