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

Function OpenInputFile

plugins/jieba/deps/cppjieba/include/cppjieba/UnicodeFile.hpp:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51#endif
52
53inline void OpenInputFile(std::ifstream& ifs, const std::string& path) {
54#ifdef _WIN32
55 std::wstring widePath;
56 if (Utf8ToWidePath(path, widePath)) {
57 ifs.open(widePath.c_str());
58 return;
59 }
60 ifs.setstate(std::ios::failbit);
61 return;
62#endif
63 ifs.open(path.c_str());
64}
65
66} // namespace cppjieba
67

Callers 7

CopyFileFunction · 0.85
LoadUserDictMethod · 0.85
BuildDictCacheEntryMethod · 0.85
LoadModelMethod · 0.85
LoadIdfDictMethod · 0.85
LoadStopWordDictMethod · 0.85
LoadStopWordDictMethod · 0.85

Calls 2

Utf8ToWidePathFunction · 0.85
openMethod · 0.45

Tested by 1

CopyFileFunction · 0.68