Go to the documentation of this file.Go to the SVN repository for this file.
108 if (! in_)
return in_;
110 const char *pbuf = 0;
112 while (getline (in_, str_)) {
113 for (pbuf = str_.c_str (); *pbuf !=
'\0' &&
isspace (*pbuf); pbuf++);
114 if (*pbuf !=
'\0' && *pbuf != t_)
break;
118 size_t pos = str_.find (t_, 0);
119 if (pos < str_.size ()) str_.erase (pos, str_.size ());
149 for (string::iterator
i = s.begin ();
i != s.end ();
i++) *
i =
tolower (*
i);
161 stringstream
str (s);
164 if (
str.fail ()) in_.setstate (ios_base::failbit);
static const char * str(char *buf, int n)
NCBI C++ stream class wrappers for triggering between "new" and "old" C++ stream libraries.
static const Format FORMAT
static const char TERMINATOR
void setFormat(Format format_)
std::istream & in(std::istream &in_, double &x_)
std::istream & getLine(std::istream &in_, std::string &str_, const char t_=getTerminator())
void setTerminator(char t_)