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

Function OpenFileUtf8

src/Config.cpp:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134FILE* OpenFileUtf8(const std::string& path, const char* mode) {
135#if defined(_WIN32) || defined(_WIN64)
136 return _wfopen(internal::WideFromUtf8(path).c_str(),
137 internal::WideFromUtf8(mode).c_str());
138#else
139 return fopen(path.c_str(), mode);
140#endif
141}
142
143bool CanOpenFileUtf8(const std::string& path) {
144 FILE* fp = OpenFileUtf8(path, "rb");

Callers 2

CanOpenFileUtf8Function · 0.70
ReadFileUtf8Function · 0.70

Calls 1

WideFromUtf8Function · 0.70

Tested by

no test coverage detected