MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / getContents

Method getContents

deps/Catch/catch.hpp:12080–12088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12078 }
12079
12080 std::string TempFile::getContents() {
12081 std::stringstream sstr;
12082 char buffer[100] = {};
12083 std::rewind(m_file);
12084 while (std::fgets(buffer, sizeof(buffer), m_file)) {
12085 sstr << buffer;
12086 }
12087 return sstr.str();
12088 }
12089
12090 OutputRedirect::OutputRedirect(std::string& stdout_dest, std::string& stderr_dest) :
12091 m_originalStdout(dup(1)),

Callers 1

~OutputRedirectMethod · 0.80

Calls 1

strMethod · 0.80

Tested by

no test coverage detected