split by regexp and [rl]tring added

This commit is contained in:
2021-03-24 00:18:27 +01:00
parent 2c68861451
commit b0ff9dd934
7 changed files with 89 additions and 19 deletions

View File

@@ -12,4 +12,8 @@ void replace_substring(std::string &src, const std::string &substr, const std::s
// Returns true if where contains regex
bool regexp_search(const std::string &where, const std::string &regex_str);
std::vector<std::string> regexp_strsplit(const std::string &string_to_split, const std::string &rgx_str);
std::string trim(std::string s, const std::string &chars_to_trim, const std::string &rltrim);
std::string string_padd(const std::string & str, int pad_len, char fill_char, bool from_right);