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; |
- RE: Corrected bug in StringHelper::endsWith on CVS HEA... Björn Carlsson
- RE: Corrected bug in StringHelper::endsWith on CV... Stoyan Damov
- Re: Corrected bug in StringHelper::endsWith o... BjÃrn Carlsson
- Re: Corrected bug in StringHelper::endsWi... Curt Arnold