filename
This commit is contained in:
21
src/string_utils.hpp
Normal file
21
src/string_utils.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef STRING_UTILS_HPP
|
||||
#define STRING_UTILS_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace simple_object_storage {
|
||||
namespace utils {
|
||||
|
||||
/**
|
||||
* @brief Checks if a string ends with a specified suffix.
|
||||
*
|
||||
* @param value The string to check.
|
||||
* @param suffix The suffix to look for.
|
||||
* @return true if the string ends with the suffix, false otherwise.
|
||||
*/
|
||||
bool ends_with(const std::string& value, const std::string& suffix);
|
||||
|
||||
} // namespace utils
|
||||
} // namespace simple_object_storage
|
||||
|
||||
#endif // STRING_UTILS_HPP
|
Reference in New Issue
Block a user