aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/TextInputStream.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-10-28TextInputStream: don't ignore unterminated last lineMax Kellermann1-4/+16
2014-10-19TextInputStream: manually shift the buffer before readingMax Kellermann1-0/+2
Fixes truncated lines in m3u and cue files (regression by commit 67958f7).
2014-08-07input/TextInputStream: move ReadBufferedLine() to util/TextFile.hxxMax Kellermann1-19/+3
2014-08-07TextInputStream: don't stripMax Kellermann1-3/+3
Let the caller decide whether to strip. Only remove \n and \r (end-of-line markers).
2014-08-07TextInputStream: move code to ReadBufferedLine()Max Kellermann1-34/+42
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 Kellermann1-4/+3
2014-08-07util/CharUtil: add IsWhitespaceFast()Max Kellermann1-1/+1
2014-08-07input/TextInputStream: return char*Max Kellermann1-12/+13
Revert to the old API before commit e9e55b08, removing unnecessary bloat.
2014-03-01util/{Const,Writable}Buffer: add operator[]Max Kellermann1-1/+1
2014-01-24Input*: move to input/Max Kellermann1-0/+0
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-11-28include cleanup using iwyuMax Kellermann1-1/+0
2013-10-23input_stream: rename struct to InputStreamMax Kellermann1-1/+1
2013-10-19Util/CharUtil: new library replacing g_ascii_isX()Max Kellermann1-3/+2
2013-10-15util/FifoBuffer: C++ version of the fifo_buffer libraryMax Kellermann1-29/+17
2013-10-02Log: new logging library APIMax Kellermann1-1/+2
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-09-05InputLegacy: move functions to the input_stream classMax Kellermann1-3/+2
2013-09-04util/Error: new error passing libraryMax Kellermann1-6/+6
Replaces GLib's GError.
2013-09-03input_stream.h: rename to InputLegacy.hxxMax Kellermann1-1/+1
2013-05-12text_input_stream: convert to classDenis Krjuchkov1-47/+28
2013-01-15fifo_buffer: move to util/Max Kellermann1-1/+1
2012-03-19text_input_stream: detect end-of-fileMax Kellermann1-2/+17
Fixes endless loop when the last line of a text file was not terminated (bug 3470).
2012-03-19text_input_stream: detect end-of-fileMax Kellermann1-2/+17
Fixes endless loop when the last line of a text file was not terminated (bug 3470).
2011-09-16input_stream: non-blocking I/OMax Kellermann1-2/+2
Add GMutex, GCond attributes which will be used by callers to conditionally wait on the stream. Remove the (now-useless) plugin method buffer(), wait on GCond instead. Lock the input_stream before each method call. Do the same with the playlist plugins.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-12-15input_stream: return errors with GErrorMax Kellermann1-1/+8
2009-11-12include config.h in all sourcesMax Kellermann1-0/+1
After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
2009-10-12text_input_stream: input_stream wrapper for reading text filesMax Kellermann1-0/+88