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

Function ReadFile

src/benchmark/Performance.cpp:306–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306std::string ReadFile(const std::string& path) {
307 std::ifstream stream(path.c_str(), std::ios::binary);
308 return std::string((std::istreambuf_iterator<char>(stream)),
309 std::istreambuf_iterator<char>());
310}
311
312class TemporaryTextConfigRegistry {
313public:

Callers 2

CreateMethod · 0.70
ParseMeasuredResultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected