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

Function OpenFileUtf8

src/tools/PlatformIO.cpp:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67} // namespace
68
69FILE* OpenFileUtf8(const std::string& fileName, const char* mode) {
70#ifdef _WIN32
71 return _wfopen(internal::WideFromUtf8(fileName).c_str(),
72 internal::WideFromUtf8(mode).c_str());
73#else
74 return fopen(fileName.c_str(), mode);
75#endif
76}
77
78FILE* CreateTempFileNearUtf8(const std::string& targetFileName,
79 std::string* fileName) {

Callers 3

WriteMeasuredResultFunction · 0.70
GetOutputStreamFunction · 0.70
ConvertFileFunction · 0.70

Calls 1

WideFromUtf8Function · 0.50

Tested by

no test coverage detected