If
suffix.length() is bigger than s.length() you'll get std::out_of_range
exception, because s.length() - suffix.length() will yield a *very* big
value.
(but I
haven't looked at the source code to see whether the arguments are being checked
by the caller, so sorry for my comment, if that's the case)
Cheers,
Stoyan
|
Title: Message
- Corrected bug in StringHelper::endsWith on CVS HEAD 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