15 #include "lineStreamBuf.h" 17 #ifndef HAVE_STREAMSIZE 19 typedef int streamsize;
61 size_t nl = _data.find(
'\n');
62 if (nl == string::npos) {
65 string result = _data;
71 string result = _data.substr(0, nl);
72 _data = _data.substr(nl + 1);
85 streamsize n = pptr() - pbase();
86 write_chars(pbase(), n);
99 streamsize n = pptr() - pbase();
101 if (n != 0 && sync() != 0) {
string get_line()
Extracts the next line of text from the LineStreamBuf, and sets the has_newline() flag according to w...