mirror of
https://github.com/XorTroll/uLaunch
synced 2024-11-27 06:10:20 +00:00
14 lines
No EOL
331 B
C++
14 lines
No EOL
331 B
C++
#include <util/util_String.hpp>
|
|
|
|
namespace util
|
|
{
|
|
bool StringStartsWith(const std::string &base, std::string str)
|
|
{
|
|
return (base.substr(0, str.length()) == str);
|
|
}
|
|
|
|
bool StringEndsWith(const std::string &base, std::string str)
|
|
{
|
|
return (base.substr(base.length() - str.length()) == str);
|
|
}
|
|
} |