#include "cl_sysdep.h"
// Specification.
-#include "cl_string.h"
+#include "cln/string.h"
// Implementation.
-#ifdef CL_IO_IOSTREAM
-
-#include "cl_io.h"
+#include "cln/io.h"
#include "cl_spushstring.h"
-#include <ctype.h>
+#include <cctype>
-#if ((defined(__sparc__) || defined(__rs6000__) || defined(__mips__)) && !defined(__GNUC__))
-// Sun C++ doesn't have istream::unget().
- #define unget() putback(c)
-#endif
+namespace cln {
-cl_istream operator>> (cl_istream stream, cl_string& str)
+std::istream& operator>> (std::istream& stream, cl_string& str)
{
var cl_spushstring buffer;
var int n = stream.width();
return stream;
}
-#endif
+} // namespace cln