Make changes
This commit is contained in:
@@ -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 <rim(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
|
||||
|
||||
Reference in New Issue
Block a user