| 24 | namespace { |
| 25 | |
| 26 | static 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 | |
| 34 | LexiconPtr LoadLexicon(const std::string& path) { |
| 35 | FILE* fp = OpenFile(path); |
no test coverage detected