Make changes

This commit is contained in:
2024-01-01 15:57:40 +01:00
parent bb602a56c8
commit e020fccf58
2 changed files with 74 additions and 27 deletions

View File

@@ -131,6 +131,26 @@ std::string concatpath(const std::string &left, const std::string &right);
// A function that prints the structure of a sparse matrix to screen.
void print_sp_matrix_structure(const arma::sp_cx_mat &A);
// A function that splits a string using a delimiter
std::vector<std::string> split(const std::string &s, char delim);
// trim from left
std::string &ltrim(std::string &s, const char *t = " \t\n\r\f\v");
// trim from right
std::string &rtrim(std::string &s, const char *t = " \t\n\r\f\v");
// trim from left & right
std::string &trim(std::string &s, const char *t = " \t\n\r\f\v");
// copying versions
std::string ltrim_copy(std::string s, const char *t = " \t\n\r\f\v");
std::string rtrim_copy(std::string s, const char *t = " \t\n\r\f\v");
std::string trim_copy(std::string s, const char *t = " \t\n\r\f\v");
} // namespace utils
#endif