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

Function OpenSerializableFileUtf8

src/SerializableDict.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace opencc {
26
27FILE* OpenSerializableFileUtf8(const std::string& fileName,
28 const char* mode) {
29#if defined(_WIN32) || defined(_WIN64)
30 return _wfopen(internal::WideFromUtf8(fileName).c_str(),
31 internal::WideFromUtf8(mode).c_str());
32#else
33 return fopen(fileName.c_str(), mode);
34#endif
35}
36
37} // namespace opencc

Callers 2

SerializeToFileFunction · 0.85
TryLoadFromFileFunction · 0.85

Calls 1

WideFromUtf8Function · 0.70

Tested by

no test coverage detected