42 #ifdef CHECK_MEMORY_LEAKS
44 #endif // CHECK_MEMORY_LEAKS
82 bool moreAvailable =
true;
83 while (toReport.length() == 0) {
90 if (idx != std::string::npos) {
101 noBytes = noBytes > 1024 ? 1024 : noBytes;
106 moreAvailable =
false;
107 if (toReport ==
"") {
108 return lh.
report(toReport);
114 int idx = (
int)toReport.length() - 1;
115 while (idx >= 0 && toReport[idx] < 32) {
119 toReport = toReport.substr(0, idx + 1);
124 if (!lh.
report(toReport)) {
127 return moreAvailable;
133 std::string toReport;
134 bool moreAvailable =
true;
135 while (toReport.length() == 0 &&
myStrm.good()) {
142 if (idx != std::string::npos) {
153 noBytes = noBytes > 1024 ? 1024 : noBytes;
159 moreAvailable =
false;
160 if (toReport ==
"") {
170 int idx = (
int)toReport.length() - 1;
171 while (idx >= 0 && toReport[idx] < 32) {
175 toReport = toReport.substr(0, idx + 1);
211 myStrm.unsetf(std::ios::skipws);
212 myStrm.seekg(0, std::ios::end);
214 myStrm.seekg(0, std::ios::beg);
223 myStrm.seekg(pos, std::ios::beg);