summaryrefslogtreecommitdiff
path: root/src/input/TextInputStream.cxx
AgeCommit message (Collapse)Author
2018-11-19check.h: remove obsolete headerMax Kellermann
Since we switched from autotools to Meson in commit 94592c14062d5afc9482d11baa401648082022c0, we don't need to include `config.h` early to properly enable large file support. Meson passes the required macros on the compiler command line instead of defining them in `config.h`. This means we can include `config.h` at any time, whenever we want to check its macros, and there are no ordering constraints.
2018-10-31*: copyright year 2018Max Kellermann
2018-01-20input/TextInputStream: ReadLine() throws exception on errorMax Kellermann
2018-01-20input/TextInputStream: add "noexcept"Max Kellermann
2017-12-19Main, ...: catch any exception, not just std::runtime_errorMax Kellermann
2017-11-10util/{Const,Writable}Buffer, ...: rename IsEmpty() to empty(), imitating STLMax Kellermann
2017-01-03update copyright yearMax Kellermann
2016-10-12Fix for TextInputStream consuming file without producing lineshawken
2016-09-16input/InputStream: migrate from class Error to C++ exceptionsMax Kellermann
2016-02-26update copyright year to 2016Max Kellermann
2016-02-21playlist/Plugin: pass InputStreamPtr&& to open_stream()Max Kellermann
Obsolete class CloseSongEnumerator, which was a kludge.
2015-01-01Copyright year 2015Max Kellermann
2014-10-28TextInputStream: don't ignore unterminated last lineMax Kellermann
2014-10-19TextInputStream: manually shift the buffer before readingMax Kellermann
Fixes truncated lines in m3u and cue files (regression by commit 67958f7).
2014-08-07input/TextInputStream: move ReadBufferedLine() to util/TextFile.hxxMax Kellermann
2014-08-07TextInputStream: don't stripMax Kellermann
Let the caller decide whether to strip. Only remove \n and \r (end-of-line markers).
2014-08-07TextInputStream: move code to ReadBufferedLine()Max Kellermann
Look at the buffer first, before trying to read from the file. This reduces overhead because we don't refill the buffer after every line.
2014-08-07util/StringUtil: add StripRight() overload with "end" argumentMax Kellermann
2014-08-07util/CharUtil: add IsWhitespaceFast()Max Kellermann
2014-08-07input/TextInputStream: return char*Max Kellermann
Revert to the old API before commit e9e55b08, removing unnecessary bloat.
2014-03-01util/{Const,Writable}Buffer: add operator[]Max Kellermann
2014-01-24Input*: move to input/Max Kellermann