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

Function getUtf8EnvironmentVariables

PIMELauncher/BackendServer.cpp:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57static std::vector<std::string> getUtf8EnvironmentVariables() {
58 // build our own new environments
59 auto env_strs = GetEnvironmentStringsW();
60 vector<string> utf8Environ;
61 for (auto penv = env_strs; *penv; penv += wcslen(penv) + 1) {
62 utf8Environ.emplace_back(utf8Codec.to_bytes(penv));
63 }
64 FreeEnvironmentStringsW(env_strs);
65 return utf8Environ;
66}
67
68BackendServer::BackendServer(PipeServer* pipeServer, const Json::Value& info) :
69 pipeServer_{pipeServer},

Callers 1

startProcessMethod · 0.85

Calls 1

to_bytesMethod · 0.80

Tested by

no test coverage detected