Both
    bool StringHelper::endsWith(const std::string& s, const std::string& suffix)
and
    bool StringHelper::endsWith(const std::wstring& s, const std::wstring& suffix)
should be like this:
      return s.compare(s.length() - suffix.length(), suffix.length(), suffix) == 0;

and not
      return suffix.compare(s.length() - suffix.length(), suffix.length(), s) == 0;

--
/Björn Carlsson
VersionSupport.com

Reply via email to