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) {
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))
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::istream & ReadFile(std::istream &str)
Replace string with the contents of strm, stopping at an EOF.
std::istream & ReadLine(std::istream &str, Bool_t skipWhite=kTRUE)
Read a line from stream upto newline skipping any whitespace.
std::istream & ReadToken(std::istream &str)
Read a token, delimited by whitespace, from the input stream.
std::istream & operator>>(std::istream &strm, TString &s)
Read string from stream.
static TString * ReadString(TBuffer &b, const TClass *clReq)
Read TString object from buffer.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
Bool_t Gets(FILE *fp, Bool_t chop=kTRUE)
Read one line from the stream, including the , or until EOF.
void Clobber(Ssiz_t nc)
Clear string and make sure it has a capacity of nc.
friend TBuffer & operator<<(TBuffer &b, const TString *obj)
Write TString or derived to TBuffer.
void Puts(FILE *fp)
Write string to the stream.
std::istream & ReadToDelim(std::istream &str, char delim='\n')
Read up to an EOF, or a delimiting character, whichever comes first.
static Ssiz_t AdjustCapacity(Ssiz_t oldCap, Ssiz_t newCap)
Calculate a nice capacity greater than or equal to newCap.
const char * Data() const