String-related utilities.
Classes | |
struct | CStrArray |
A helper structure to safely convert a std::vector<std::string> to char** . More... | |
Functions | |
std::vector< std::string > | split (const std::string &input, const std::string &delimiters="\n") |
Split a string given a set of character delimiters. More... | |
std::string | trim (const std::string &input, const std::string &characters="") |
Trim a string given a set of characters. More... | |
std::string | readFile (const std::string &filename) |
Read a text file. More... | |
std::string | readAuxFile (const std::string &filename) |
Read a text file from the auxiliary directory. More... | |
std::unique_ptr< char[]> | toCharPtr (const std::string &str) |
Copy a std::string into a std::unique_ptr<char[]> . More... | |