Closed GoogleCodeExporter closed 9 years ago
Original comment by dmel...@gmail.com
on 7 May 2011 at 5:09
Can you take a look at this one too? You probably should bounce the potential
implementation off of the developers list, as there have been lots of
efficiency concerns about Strings and their implementation.
Original comment by dmel...@gmail.com
on 5 Sep 2011 at 2:53
Original comment by dmel...@gmail.com
on 16 Dec 2011 at 10:08
I needed the readStringUntil method for some other work I've been doing, so
thought I'd propose a patch.
The attached issue454-patch.txt includes the changes needed, and
readStringExamples.ino is a simple sketch to allow testing of it.
Original comment by adrian.m...@gmail.com
on 15 May 2012 at 1:17
Attachments:
Thanks Adrian! I'll try to squeeze these in for Arduino 1.0.1. We might want
to optimize the functions later (i.e. allocate the memory in larger chunks
instead of one character at a time), but this seems like a good implementation
to start with.
Original comment by dmel...@gmail.com
on 15 May 2012 at 3:36
Yeah, I did wonder about allocating memory in larger chunks at a time, but
there didn't seem to be an obvious chunk size to choose. I'm hoping (though
haven't checked) that most of the time the string will just be able to grow in
place and so not fragment things.
Original comment by adrian.m...@gmail.com
on 15 May 2012 at 9:57
https://github.com/arduino/Arduino/commit/39eed5acc2f3a62f35bd83df71df2d9ed422a8
a8
Original comment by dmel...@gmail.com
on 16 May 2012 at 7:40
Original issue reported on code.google.com by
dmel...@gmail.com
on 8 Jan 2011 at 5:22