MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / readAll

Function readAll

engine/Evaluator/Validate.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static std::string readAll(const std::string& path)
65{
66 std::ifstream f(path);
67 if (!f.is_open())
68 return "";
69 std::stringstream ss;
70 ss << f.rdbuf();
71 return ss.str();
72}
73
74struct CodeBlock
75{

Callers 3

validateBookFunction · 0.85
validateRefFunction · 0.85

Calls 1

strMethod · 0.80

Tested by

no test coverage detected