diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-12-01 13:03:03 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-12-01 13:03:03 -0800 |
commit | 1458563f00deebbbcf3e8049dc90157fb825fae3 (patch) | |
tree | bc50379e732fe594f163ffd14d541cb99a1173d5 /src/common/io.hpp | |
parent | 6af0112e304be73e7e4ee9332c8280bd46ea0fd0 (diff) | |
download | tmwa-1458563f00deebbbcf3e8049dc90157fb825fae3.tar.gz tmwa-1458563f00deebbbcf3e8049dc90157fb825fae3.tar.bz2 tmwa-1458563f00deebbbcf3e8049dc90157fb825fae3.tar.xz tmwa-1458563f00deebbbcf3e8049dc90157fb825fae3.zip |
Add some debug printers for scripts
Diffstat (limited to 'src/common/io.hpp')
-rw-r--r-- | src/common/io.hpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/common/io.hpp b/src/common/io.hpp deleted file mode 100644 index 27bf4e2..0000000 --- a/src/common/io.hpp +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef TMWA_COMMON_IO_HPP -#define TMWA_COMMON_IO_HPP - -#include <istream> -#include <ostream> - -#include "../strings/fstring.hpp" - -namespace io -{ - inline - std::istream& getline(std::istream& in, FString& line) - { - std::string s; - if (std::getline(in, s)) - { - std::string::const_iterator begin = s.cbegin(), end = s.cend(); - if (begin != end && end[-1] == '\r') - --end; - line = FString(begin, end); - } - return in; - } -} // namespace io - -#endif //TMWA_COMMON_IO_HPP |