MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / LoadEntireTextFile

Function LoadEntireTextFile

src/discord/Util.cpp:99–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99std::string LoadEntireTextFile(const std::string& fileName)
100{
101 char* data = nullptr;
102 size_t size = 0;
103 if (!ReadEntireFile(fileName, &data, &size, false))
104 return "";
105
106 std::string str(data, size);
107 delete[] data;
108 return str;
109}
110
111std::string HttpEncodeString(std::string str)
112{

Callers 1

LoadMethod · 0.85

Calls 1

ReadEntireFileFunction · 0.85

Tested by

no test coverage detected