| Index: src/Utils.cpp |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/src/Utils.cpp |
| @@ -0,0 +1,13 @@ |
| +#include <sstream> |
| +#include <string> |
| + |
| +#include "Utils.h" |
| + |
| +using namespace AdblockPlus; |
| + |
| +std::string Utils::Slurp(std::istream& stream) |
| +{ |
| + std::stringstream content; |
| + content << stream.rdbuf(); |
| + return content.str(); |
| +} |