|
|
Sponsor |
Re: bug in stringhelper: msg#00029apache.logging.log4cxx.user
Hi, sorry - I meant endsWith, which does not work. This was the fix for the bug I found. I will look at Cppunit. I haven't used it before. And also at Jira. I don't know it either. Tommi Am Freitag, 14. Januar 2005 06:03 schrieb Curt Arnold: > The patch you sent seems to be modifying StringHelper::endsWith, not > > ::startsWith and then intent was that > > StringHelper::endsWith("foobar", "bar") == true > > I believe the existing code would do that and the patched version would > not but haven't had a chance to create a unit test case for those > functions. > > Could you describe the symptom that you believe that a bug in > StringHelper is causing? It would be helpful if you could also create a > test case for every bug that you fix so that we can detect regressions. > I'd also prefer that you use Jira to submit patches. > > On Jan 13, 2005, at 2:50 PM, Tommi Mäkitalo wrote: > > Hi, > > > > There is a bug in StringHelper::startsWith: > > "std::string::compare(size_type pos, size_type len, const std::string& > > s)" compares a substring of the string with s and not vice versa. > > > > Here is a patch. > > > > After that it works at least with easy cases on my x86-64. > > > > Thank you Curt. I vote for a 0.9.8 soon. > > > > > > Tommi > > <stringhelper.diff>
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: bug in stringhelper, Curt Arnold |
|---|---|
| Next by Date: | Problem compiling on FreeBSD 5.3, Keith Bottner |
| Previous by Thread: | Re: bug in stringhelper, Curt Arnold |
| Next by Thread: | Problem compiling on FreeBSD 5.3, Keith Bottner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|