Go to file
Nat Goodspeed e92c311354 Add LLProcess::ReadPipe::find() methods, with corresponding npos.
If it's useful to have contains() to tell you whether incoming data contains a
particular substring, and if it's useful for contains() and peek() to accept
an offset within that data, then it's useful to allow you to get the offset of
a desired substring within that data. But of course a find() returning offset
needs something like std::string::npos for "not found"; borrow that
convention.
Support both find(const std::string&) and find(char); the latter permits a
more efficient implementation. In fact, make find(string) recognize a string
of length 1 and leverage the find(char) implementation.
Given that, reimplement contains(mumble) as shorthand for find(mumble) != npos.
Implement find() overloads using std::search() and std::find() on
boost::asio::streambuf character iterators, rather than copying to std::string
and then using string search like previous contains() implementation.
Reimplement WritePipeImpl::tick() and ReadPipeImpl::tick() to write/read
directly from/to boost::asio::streambuf data, instead of copying to/from a
temporary flat buffer.
As long as ReadPipeImpl::tick() keeps successfully filling buffers, keep
reading. Previous implementation would only handle a long child write over
successive tick() calls. Stop on read error or when we come up short.
2012-02-16 16:05:04 -05:00
doc merge changes for storm-1799 2012-01-23 14:17:21 -05:00
etc
…
indra Add LLProcess::ReadPipe::find() methods, with corresponding npos. 2012-02-16 16:05:04 -05:00
scripts fix typo in flag for -u option 2011-10-06 16:30:32 -04:00
.hgignore Adding *.diff to ignored files. 2011-10-19 00:35:18 +01:00
.hgtags Added tag 3.2.9-start for changeset 37dd400ad721 2012-02-06 10:00:15 -05:00
BuildParams update build params for oz viewer-trial build 2011-12-19 15:25:39 -05:00
autobuild.xml Update viewer to official builds of http://hg.secondlife.com/3p-apr. 2012-02-11 06:16:39 -05:00
build.sh Re-indent teamcity service messages when scanning build logs to fix incredibuild formatting. 2011-07-20 11:48:57 -07:00