Untitled
unknown
plain_text
2 years ago
281 B
5
Indexable
bool hasEnding (std::string const &fullString, std::string const &ending) {
if (fullString.length() >= ending.length()) {
return (0 == fullString.compare (fullString.length() - ending.length(), ending.length(), ending));
} else {
return false;
}
}Editor is loading...
Leave a Comment