4 #include "base/cl_sysdep.h"
7 #include "cln/string.h"
13 #include "base/string/cl_spushstring.h"
18 std::istream& operator>> (std::istream& stream, cl_string& str)
20 var cl_spushstring buffer;
21 var int n = stream.width();
22 // Handling of eofp is tricky: EOF is reached when (!stream.good()) || (stream.eof()).
25 while (stream.good()) {
31 // stream.width()==1, means no characters.
35 // If stream.width()==0, n gets negative and never 0.
40 // Read non-whitespace.
41 while (stream.good()) {
55 str = buffer.contents();