This commit is contained in:
2024-01-07 10:58:30 +08:00
parent 2515ccdb54
commit 4a75daa77d
4 changed files with 171 additions and 14 deletions

View File

@@ -58,6 +58,12 @@ namespace str_util {
* @return true if input ends with pattern
*/
bool str_endswith(std::string input, std::string pattern);
/**
* @brief Trim a string
* @param input Input string
* @return Result
*/
std::string str_trim(std::string input);
/**
* @brief Remove quote from a string
* @param input Input string