71 bool moreAvailable =
true;
72 while (toReport.length() == 0) {
73 const std::string::size_type idx =
myStrBuffer.find(
'\n');
79 if (idx != std::string::npos) {
90 noBytes = noBytes > 1024 ? 1024 : noBytes;
95 moreAvailable =
false;
97 return lh.
report(toReport);
103 int idx = (int)toReport.length() - 1;
104 while (idx >= 0 && toReport[idx] < 32) {
108 toReport = toReport.substr(0, idx + 1);
113 if (!lh.
report(toReport)) {
116 return moreAvailable;
122 std::string toReport;
123 while (toReport.length() == 0 &&
myStrm.good()) {
124 const std::string::size_type idx =
myStrBuffer.find(
'\n');
130 if (idx != std::string::npos) {
141 noBytes = noBytes > 1024 ? 1024 : noBytes;
147 if (toReport ==
"") {
157 int idx = (int)toReport.length() - 1;
158 while (idx >= 0 && toReport[idx] < 32) {
162 toReport = toReport.substr(0, idx + 1);
198 myStrm.unsetf(std::ios::skipws);
199 myStrm.seekg(0, std::ios::end);
201 myStrm.seekg(0, std::ios::beg);
210 myStrm.seekg(pos, std::ios::beg);