MCPcopy Create free account
hub / github.com/EasyIME/PIME / loadJsonFile

Function loadJsonFile

PIMELauncher/Utils.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace PIME {
8
9bool loadJsonFile(const std::wstring filename, Json::Value& result) {
10 std::ifstream fp(filename, std::ifstream::binary);
11 if (fp) {
12 fp >> result;
13 return true;
14 }
15 return false;
16}
17
18bool saveJsonFile(const std::wstring filename, Json::Value& data) {
19 std::ofstream fp(filename, std::ifstream::binary);

Callers 3

loadConfigMethod · 0.85
initBackendServersMethod · 0.85
initInputMethodsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected