Add new function

This commit is contained in:
2024-01-05 22:54:34 +08:00
parent 63992e1238
commit 117f6b335c
2 changed files with 15 additions and 0 deletions

View File

@@ -33,5 +33,12 @@ namespace str_util {
* @return Output
*/
std::string str_hex(std::string input);
/**
* @brief Check if a string ends with a pattern
* @param input Input data
* @param pattern Pattern
* @return true if input ends with pattern
*/
bool str_endswith(std::string input, std::string pattern);
}
#endif