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

Function OpenFile

data/dictionary/DictionaryReverseMappingTest.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace {
21
22static FILE* OpenFile(const std::string& path) {
23#ifdef _MSC_VER
24 return _wfopen(UTF8Util::GetPlatformString(path).c_str(), L"rb");
25#else
26 return fopen(UTF8Util::GetPlatformString(path).c_str(), "rb");
27#endif
28}
29
30void ExpectRevComplete(const std::string& phrasesName) {
31 std::unique_ptr<Runfiles> runfiles(Runfiles::CreateForTest());

Callers 1

ExpectRevCompleteFunction · 0.70

Calls 1

GetPlatformStringFunction · 0.85

Tested by

no test coverage detected