|
stc
|
Functions | |
| std::istream & | getline (std::istream &is, std::string &str) |
|
inline |
Implementation of std::getline that handles \r,
, and \r
.
This lets you consume arbitrary files of unknown line endings without breaking hard because you're accidentally parsing a CRLF file on Linux, where getline only checks for
.
| is | An input stream to get the line from | |
| [out] | str | The string to put the line in. |