Re: [AGGREGATED PATCH] Fix in-place editing functions in convert.c
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Oct 5, 2007, 19:33 UTC
- Message-ID
- <alpine.LFD.0.999.0710051232300.23684@woody.linux-foundation.org>
- In-Reply-To
- <37fcd2780710051227n96d29a9v543831ca8292c862@mail.gmail.com>
On Fri, 5 Oct 2007, Dmitry Potapov wrote:
Show 6 quoted lines
> > On the other hand, I don't see what is the problem with using C string > routines with it. ::data() returns a pointer and :capacity () returns > allocated size of the buffer. ::resize() changes the size of the string. > If you need a greater allocated size, you can use ::reserve(). > Or did I miss something?
No, you didn't miss anything. Except for the fact that the original point was that it's just a damn lot simpler and more straightforward to code just using "sb->buf" for the data. IOW, go back two or three emails in the thread.
Linus