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

Function GetProcessIdString

src/benchmark/Performance.cpp:90–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90std::string GetProcessIdString() {
91#ifdef _WIN32
92 return std::to_string(_getpid());
93#else
94 return std::to_string(getpid());
95#endif
96}
97
98std::string GetBaseNameWithoutExtension(const std::string& path) {
99 const std::string::size_type slash_pos = path.find_last_of("/\\");

Callers 2

BuildTempPathMethod · 0.85
CreateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected