Fixed Nz::String's implementation of std::geltine (#136)

* Fix Nz::String's std::getline

* Bugfix

* Bugfix again
This commit is contained in:
S6066 2017-09-30 14:23:42 +02:00 committed by Jérôme Leclercq
parent 2cd9fa2b7a
commit 4f0435754f
1 changed files with 5 additions and 14 deletions

View File

@ -5975,20 +5975,7 @@ namespace std
istream& getline(istream& is, Nz::String& str)
{
str.Clear();
char c;
for (;;)
{
is.get(c);
if (c != '\n' && c != '\0')
str += c;
else
break;
}
return is;
return getline(is, str, is.widen('\n'));
}
/*!
@ -6012,8 +5999,12 @@ namespace std
if (c != delim && c != '\0')
str += c;
else
{
if (c == '\0')
is.setstate(std::ios_base::eofbit);
break;
}
}
return is;
}