uLaunch/Common/Source/util/util_String.cpp
2019-10-05 22:44:05 +02:00

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);
}
}