libcppwrap
A collection of C++ wrappers for native APIs
Loading...
Searching...
No Matches
Namespaces | Functions
slurp.hpp File Reference
#include <filesystem>
#include <string>
#include <string_view>
Include dependency graph for slurp.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  wx
 

Functions

std::string wx::read_file_as_string (const char *path)
 Reads the contents of a file as a string. More...
 
std::string wx::read_file_as_string (const std::string &path)
 Reads the contents of a file as a string. More...
 
std::string wx::slurp (const char *path)
 Reads the contents of a file as a string with trailing whitespace removed. More...
 
std::string wx::slurp (const std::string &path)
 Reads the contents of a file as a string with trailing whitespace removed. More...
 
std::string wx::slurp (const std::filesystem::path &path)
 Reads the contents of a file as a string with trailing whitespace removed. More...
 
void wx::spew (const char *path, std::string_view str)
 Writes a string to a file. More...
 
void wx::spew (const std::string &path, std::string_view str)
 Writes a string to a file. More...
 
void wx::spew (const std::filesystem::path &path, std::string_view str)
 Writes a string to a file. More...