MCPcopy Create free account
hub / github.com/chigraph/chigraph / read_all

Function read_all

test/codegen/codegentester.cpp:40–49  ·  view source on GitHub ↗

read a whole stream to a string

Source from the content-addressed store, hash-verified

38
39// read a whole stream to a string
40std::string read_all(std::istream& i) {
41 std::string one;
42 std::string ret;
43 while (std::getline(i, one).good()) {
44 ret += one;
45 ret += "\n";
46 }
47 ret += one;
48 return ret;
49}
50
51std::string areArrayEqualUnordered(json lhs, json rhs) {
52 std::vector<json> objects;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected