Angus Leeming <[EMAIL PROTECTED]> writes: | On Friday 03 May 2002 11:13 am, Lars Gullik Bjønnes wrote: >> Angus Leeming <[EMAIL PROTECTED]> writes: >> | On Friday 03 May 2002 7:09 am, Andre Poenitz wrote: >> >> On Thu, May 02, 2002 at 08:18:32PM +0200, Lars Gullik Bjønnes wrote: >> >> > I think that >> >> > >> >> > str.substr(0) == str >> >> > str.substr(0, <number larger than leght of str>) == str >> >> > >> >> > easy to check though. >> >> >> >> 21.3.6.7 basic_string::substr [lib.string::substr] >> >> >> >> basic_string<charT,traits,Allocator> >> >> substr(size_type pos = 0, size_type n = npos) const; >> >> >> >> Requires: >> >> pos <= size() >> >> Throws: >> >> out_of_range if pos > size(). >> >> Effects: >> >> Determines the effective length rlen of the string to copy as the >> >> smaller of n and size() - pos. >> >> >> >> Looks as though you are right. >> >> ('you' here is _me_ not _you_) >> >> >> Andre' >> | >> | Lars, since it appears that I was correct about this, >> >> You mean: "since it appears that I was NOT correct" >> >> | here's the patch that >> | will make Herbert happy and which is safe. May I commit it please? >> >> no. > | Ahaa. I should read things more closely. How about the original patch: > | lyxerr << "Scanstring: " << str.substr(0,60) << endl; > | Can I commit that?
yes. -- Lgb