70 bool moreAvailable =
true;
71 while (toReport.length() == 0) {
72 const std::string::size_type idx =
myStrBuffer.find(
'\n');
78 if (idx != std::string::npos) {
89 noBytes = noBytes > 1024 ? 1024 : noBytes;
94 moreAvailable =
false;
96 return lh.
report(toReport);
102 int idx = (int)toReport.length() - 1;
103 while (idx >= 0 && toReport[idx] < 32) {
107 toReport = toReport.substr(0, idx + 1);
112 if (!lh.
report(toReport)) {
115 return moreAvailable;
121 std::string toReport;
122 while (toReport.length() == 0 &&
myStrm.good()) {
123 const std::string::size_type idx =
myStrBuffer.find(
'\n');
129 if (idx != std::string::npos) {
140 noBytes = noBytes > 1024 ? 1024 : noBytes;
146 if (toReport ==
"") {
156 int idx = (int)toReport.length() - 1;
157 while (idx >= 0 && toReport[idx] < 32) {
161 toReport = toReport.substr(0, idx + 1);
197 myStrm.unsetf(std::ios::skipws);
198 myStrm.seekg(0, std::ios::end);
200 myStrm.seekg(0, std::ios::beg);
209 myStrm.seekg(pos, std::ios::beg);