On Tue, Feb 9, 2010 at 8:50 AM, Honza <befelemepesev...@gmail.com> wrote:
> Probably just reinventing the wheel - I was not able to quickly find a
> String builder/buffer elsewhere.
>
> Source code for anyone possible interested is published on a blog (no
> ads there, so I hope it's OK to post the link):
>
> http://freepascal-bits.blogspot.com/2010/02/simple-string-buffer.html
>
> -bflm

Hello,
I guess ads wouldn't be a problem anyway ;-)
I find a class like this very useful (for some tasks), thanks! This
has been suggested on the list a couple of times and I even intended
to implement something but didn't have the need since.
Some (hopefully constructive) commentaries (and then I would suggest
to add to LCL or FCL):
1) It could be called really TStringBuffer;
2) The 'W' methods could be called 'Append';
3) The GetS method could truncate the string to avoid the copy, as I
think the common use will not be Append+Read+Append+Read, but
Append+Append+...+Read...

Best regards,
Flávio
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to