aboutsummaryrefslogtreecommitdiffstats
path: root/src/util (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-01-06util/Cast: new utility libraryMax Kellermann1-0/+58
2013-12-22util/Clamp: generic Clamp() functionMax Kellermann1-0/+49
2013-12-19util/fifo_buffer: remove obsolete libraryMax Kellermann2-382/+0
2013-12-19util/Error: add missing <algorithm> includeMax Kellermann1-0/+1
For std::move().
2013-12-19util/PeakBuffer: use IsEmpty() instead of IsNull()Max Kellermann1-3/+3
The DynamicFifoBuffer methods never return nullptr when the buffer is empty or full; instead, they return an empty buffer. This bug caused an endless loop.
2013-12-16util/{Domain,Error}: relicense to BSD 2-clauseMax Kellermann3-43/+73
2013-12-15util/PeakBuffer: use DynamicFifoBuffer instead of struct fifo_bufferMax Kellermann2-47/+36
Switch to the C++ version.
2013-12-15util/PeakBuffer: return ConstBuffer<void>Max Kellermann2-7/+13
2013-12-15util/WritableBuffer: add cast methodsMax Kellermann1-1/+30
2013-12-15util/WritableBuffer: fix indentMax Kellermann1-31/+31
2013-12-15util/DynamicFifoBuffer: make constructor "explicit"Max Kellermann1-1/+1
2013-12-15util/Tokenizer, ...: include cleanupMax Kellermann1-2/+0
2013-12-15system/SocketError, ...: use strerror() instead of g_strerror()Max Kellermann1-2/+5
Avoid GLib.
2013-12-15UriUtil: add function uri_get_scheme()Max Kellermann2-0/+17
Replaces g_uri_parse_scheme().
2013-12-14util/SplitString: new utility classMax Kellermann2-0/+108
To replace g_strdup().
2013-12-05util/DynamicFifoBuffer: new class replacing growing_fifoMax Kellermann3-163/+199
2013-11-29util/ConstBuffer: new utility classMax Kellermann1-0/+118
2013-11-28Util/StringUtil: add StringStartsWith()Max Kellermann2-0/+12
Replaces GLib's g_str_has_prefix().
2013-11-28include cleanup using iwyuMax Kellermann3-4/+5
2013-11-24CommandLine: new command line parserDenis Krjuchkov3-0/+210
This implementation behaves mostly identical to old parser. Few observable differences: - There are no option groups (single group is used for all options) - Option --stdout is hidden (it has been obsolete for a long time) - MPD executable name (mpd) is hardcoded for simplicity
2013-11-11util/RefCount: no "constexpr" with libc++Max Kellermann1-1/+6
Not supported by libc++.
2013-11-11util/LazyRandomEngine: make min()/max() static+constexprMax Kellermann1-4/+4
Required for building with libc++.
2013-10-29util/UriUtil: add uri_is_child_or_same()Max Kellermann2-0/+31
2013-10-26util/NumberParser: add ParseFloat()Max Kellermann1-0/+6
2013-10-26util/NumberParser: indentMax Kellermann1-10/+10
2013-10-23UriUtil: uri_remove_auth() returns std::stringMax Kellermann2-15/+12
2013-10-21util/NumberParser: utilities for parsing numbers from ASCII stringsMax Kellermann1-0/+78
2013-10-21Util/ASCII: add StringEqualsCaseASCII() overload with lengthMax Kellermann1-0/+12
Replaces GLib's g_ascii_strncasecmp().
2013-10-20Util/ASCII: add function StringEqualsCaseASCII()Max Kellermann2-3/+56
Replaces GLib's g_ascii_strcasecmp().
2013-10-19util/FormatString: new library to replace g_strdup_printf()Max Kellermann2-0/+111
2013-10-19Util/CharUtil: new library replacing g_ascii_isX()Max Kellermann3-6/+122
2013-10-18util/StringUtil: rename strchug_fast_c() to strchug_fast()Max Kellermann2-6/+3
Overload the name.
2013-10-17util/Error: add method SetLastError()Max Kellermann2-0/+25
2013-10-16system/ByteOrder: new library for byte ordering / endianessMax Kellermann1-4/+4
Replacing GLib macros.
2013-10-16util/ByteReverse: use C99 "restrict"Max Kellermann1-7/+13
Micro-optimization.
2013-10-16util/byte_reverse: convert to C++Max Kellermann2-15/+15
2013-10-15Util/Macros: replacement for GLib's G_N_ELEMENTS()Max Kellermann2-3/+38
2013-10-15util/FifoBuffer: C++ version of the fifo_buffer libraryMax Kellermann2-0/+219
2013-10-15gcc.h: rename to Compiler.hMax Kellermann9-9/+9
2013-10-14Mapper, ...: use memcmp() instead of strncmp() where appropriateMax Kellermann1-2/+2
Micro-optimization.
2013-09-04util/Error: new error passing libraryMax Kellermann5-36/+350
Replaces GLib's GError.
2013-08-07*: remove remaining __cplusplus checksMax Kellermann1-23/+1
2013-08-07encoder/lame: use ReusableBuffer instead of AllocatedArrayMax Kellermann1-189/+0
2013-08-07PcmBuffer: move code to new class ReusableBufferMax Kellermann1-0/+88
ReusableBuffer is more generic.
2013-08-06util/Manual: add missing include <utility>Max Kellermann1-0/+1
2013-08-06encoder/lame: dynamic output bufferMax Kellermann1-0/+189
2013-08-04*: use gcc.h macros instead of GLibMax Kellermann1-1/+1
2013-07-30include cleanupMax Kellermann1-1/+0
2013-04-11util/Manual: work around strict-aliasing warningMax Kellermann1-0/+9
2013-04-09string_util: convert to C++Max Kellermann3-1/+127