doShell/helper/helper_string.cc
bool String::EndsWith(std::string const &str, std::string const &ending) {
  return ending.empty()
      || (ending.size() <= str.size()
          && std::equal(ending.rbegin(), ending.rend(), str.rbegin()));
}
// Check whether given string ends w/ given string
Check whether given string ends w/ given string
Check whether given string ends w / given string
bool String::EndsWith(std::string const &str, std::string const &ending) {
  return ending.empty()
      || (ending.size() <= str.size()
          && std::equal(ending.rbegin(), ending.rend(), str.rbegin()));
}
bool String :: EndsWith ( std :: string const & str , std :: string const & ending ) { return ending . empty ( ) || ( ending . size ( ) <= str . size ( ) && std :: equal ( ending . rbegin ( ) , ending . rend ( ) , str . rbegin ( ) ) ) ; }
Check whether given string ends w/ given string
Check whether given string ends w / given string