Fixed Nz::String's implementation of std::geltine (#136)
* Fix Nz::String's std::getline * Bugfix * Bugfix again
This commit is contained in:
parent
2cd9fa2b7a
commit
4f0435754f
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue