ENH: New OutputParser::Process() signature

This overload accepts a null-terminated string instead of requiring a
length.  It is useful to pass some fake process output before and after
the real process output.
This commit is contained in:
Brad King 2009-07-10 11:07:27 -04:00
parent f673294a36
commit c0e8c0f5aa
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ public:
in any more data and false if it is done. */
bool Process(const char* data, int length)
{ return this->ProcessChunk(data, length); }
bool Process(const char* data)
{ return this->Process(data, static_cast<int>(strlen(data))); }
virtual ~OutputParser() {}
protected: