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

Function OpenFile

data/dictionary/DictionaryTest.cpp:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#endif
34
35static FILE* OpenFile(const std::string& path) {
36#ifdef _MSC_VER
37 return _wfopen(UTF8Util::GetPlatformString(path).c_str(), L"rb");
38#else
39 return fopen(UTF8Util::GetPlatformString(path).c_str(), "rb");
40#endif
41}
42
43class DictionaryTest : public ::testing::Test {
44protected:

Callers 1

TEST_FFunction · 0.70

Calls 1

GetPlatformStringFunction · 0.85

Tested by

no test coverage detected