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

Function OpenFile

data/dictionary/DictionaryPhraseSegmentationTest.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace {
25
26static FILE* OpenFile(const std::string& path) {
27#ifdef _MSC_VER
28 return _wfopen(UTF8Util::GetPlatformString(path).c_str(), L"rb");
29#else
30 return fopen(UTF8Util::GetPlatformString(path).c_str(), "rb");
31#endif
32}
33
34LexiconPtr LoadLexicon(const std::string& path) {
35 FILE* fp = OpenFile(path);

Callers 1

LoadLexiconFunction · 0.70

Calls 1

GetPlatformStringFunction · 0.85

Tested by

no test coverage detected