header_utils
|
Functions | |
std::string | ghassanpl::formats::text::load_file (std::filesystem::path const &from, std::error_code &ec) |
Returns the contents of a text file as a string. | |
std::string | ghassanpl::formats::text::load_file (std::filesystem::path const &from) |
Returns the contents of a text file as a string. | |
expected< std::string, std::error_code > | ghassanpl::formats::text::try_load_file (std::filesystem::path const &from) |
Returns the contents of a text file as a string. | |
bool | ghassanpl::formats::text::save_file (std::filesystem::path const &to, std::string_view string, std::error_code &ec) |
void | ghassanpl::formats::text::save_file (std::filesystem::path const &to, std::string_view string) |
|
inline |
Returns the contents of a text file as a string.
std::runtime_error | if file not found |
Definition at line 32 of file json_helpers.h.
|
inline |
Returns the contents of a text file as a string.
ec | is filled with the error if any happens |
Definition at line 24 of file json_helpers.h.
|
inline |
Definition at line 57 of file json_helpers.h.
|
inline |
Definition at line 49 of file json_helpers.h.
|
inline |
Returns the contents of a text file as a string.
Definition at line 42 of file json_helpers.h.