It would probably be nice if, like getline with stdlib iostreams,
Parser::GetNextDocument would return a bool to indicate if there is still a
document available, so you'd be able to
while (parser.GetNextDocument(doc)) {
// do something with doc
}
instead of
while (parser) {
parser.GetNextDocument(doc);
// ...
}
A patch is attached, seemed straightforward if I didn't miss anything ...
Original issue reported on code.google.com by stefan.walk on 29 Sep 2009 at 4:27
Original issue reported on code.google.com by
stefan.walk
on 29 Sep 2009 at 4:27Attachments: