31 Ssiz_t end, cur = strm.tellg();
32 strm.seekg(0, std::ios::end);
107 if (!strm.good())
break;
136 UInt_t wid = strm.width(0);
140 strm.get(
c).good() && (hitSpace = isspace((
Int_t)
c)) == 0) {
165 return s.ReadToken(strm);
174 if (os.tie()) os.tie()->flush();
177 wid = (len < wid) ? wid - len : 0;
179 long flags = os.flags();
180 if (wid && !(flags & std::ios::left))
182 os.write((
char*)
s.Data(),
s.Length());
183 if (wid && (flags & std::ios::left))
187 if (os.flags() & std::ios::unitbuf)
206 if (fgets(buf,
sizeof(buf), fp) == 0)
break;
209 }
while (!ferror(fp) && !feof(fp) && strchr(buf,
'\n') == 0);
std::ostream & operator<<(std::ostream &os, const TString &s)
Write string to stream.
std::istream & operator>>(std::istream &strm, TString &s)
Read string from stream.
Bool_t Gets(FILE *fp, Bool_t chop=kTRUE)
Read one line from the stream, including the , or until EOF.
std::istream & ReadToDelim(std::istream &str, char delim='\n')
Read up to an EOF, or a delimiting character, whichever comes first.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
static TString * ReadString(TBuffer &b, const TClass *clReq)
Read TString object from buffer.
static Ssiz_t AdjustCapacity(Ssiz_t oldCap, Ssiz_t newCap)
Calculate a nice capacity greater than or equal to newCap.
void Puts(FILE *fp)
Write string to the stream.
std::istream & ReadFile(std::istream &str)
Replace string with the contents of strm, stopping at an EOF.
std::istream & ReadToken(std::istream &str)
Read a token, delimited by whitespace, from the input stream.
void Clobber(Ssiz_t nc)
Clear string and make sure it has a capacity of nc.
std::istream & ReadLine(std::istream &str, Bool_t skipWhite=kTRUE)
Read a line from stream upto newline skipping any whitespace.
static constexpr double s