aboutsummaryrefslogtreecommitdiffstats
path: root/src/util (follow)
Commit message (Collapse)AuthorAgeFilesLines
* util/ASCII: fix indentMax Kellermann2014-12-261-10/+10
|
* Compiler.h: add macro GCC_OLDER_THAN()Max Kellermann2014-12-261-2/+2
|
* util/UriUtil: add uri_get_suffix() overload that ignores query stringMax Kellermann2014-11-022-0/+28
|
* util: Fix header for strcasecmpFrançois Revol2014-08-161-1/+1
| | | | | | | | | | | | | | | | | According to POSIX and both OSX and Linux manpages, strcasecmp comes from strings.h, not string.h. Most OSes also have them available in string.h, but we just fixed the headers on Haiku and it now only provides them in strings.h. We might want to fall back to string.h for other OSes though... cf. http://pubs.opengroup.org/onlinepubs/009695399/functions/strcasecmp.html http://linux.die.net/man/3/strcasecmp https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/strcasecmp.3.html
* util/PeakBuffer: fix nullptr dereference when peak_size==0Max Kellermann2014-01-151-2/+3
|
* util/UriUtil: uri_get_suffix() fails if name begins with dotMax Kellermann2013-12-291-1/+2
| | | | | A file called ".jpg" is not a JPEG file with an empty name; it is merely a hidden file.
* util/Error: add missing <algorithm> includeMax Kellermann2013-12-191-0/+1
| | | | For std::move().
* util/RefCount: no "constexpr" with libc++Max Kellermann2013-11-111-1/+6
| | | | Not supported by libc++.
* util/LazyRandomEngine: make min()/max() static+constexprMax Kellermann2013-11-111-4/+4
| | | | Required for building with libc++.
* util/UriUtil: add uri_is_child_or_same()Max Kellermann2013-10-292-0/+31
|
* util/NumberParser: add ParseFloat()Max Kellermann2013-10-261-0/+6
|
* util/NumberParser: indentMax Kellermann2013-10-261-10/+10
|
* UriUtil: uri_remove_auth() returns std::stringMax Kellermann2013-10-232-15/+12
|
* util/NumberParser: utilities for parsing numbers from ASCII stringsMax Kellermann2013-10-211-0/+78
|
* Util/ASCII: add StringEqualsCaseASCII() overload with lengthMax Kellermann2013-10-211-0/+12
| | | | Replaces GLib's g_ascii_strncasecmp().
* Util/ASCII: add function StringEqualsCaseASCII()Max Kellermann2013-10-202-3/+56
| | | | Replaces GLib's g_ascii_strcasecmp().
* util/FormatString: new library to replace g_strdup_printf()Max Kellermann2013-10-192-0/+111
|
* Util/CharUtil: new library replacing g_ascii_isX()Max Kellermann2013-10-193-6/+122
|
* util/StringUtil: rename strchug_fast_c() to strchug_fast()Max Kellermann2013-10-182-6/+3
| | | | Overload the name.
* util/Error: add method SetLastError()Max Kellermann2013-10-172-0/+25
|
* system/ByteOrder: new library for byte ordering / endianessMax Kellermann2013-10-161-4/+4
| | | | Replacing GLib macros.
* util/ByteReverse: use C99 "restrict"Max Kellermann2013-10-161-7/+13
| | | | Micro-optimization.
* util/byte_reverse: convert to C++Max Kellermann2013-10-162-15/+15
|
* Util/Macros: replacement for GLib's G_N_ELEMENTS()Max Kellermann2013-10-152-3/+38
|
* util/FifoBuffer: C++ version of the fifo_buffer libraryMax Kellermann2013-10-152-0/+219
|
* gcc.h: rename to Compiler.hMax Kellermann2013-10-159-9/+9
|
* Mapper, ...: use memcmp() instead of strncmp() where appropriateMax Kellermann2013-10-141-2/+2
| | | | Micro-optimization.
* util/Error: new error passing libraryMax Kellermann2013-09-045-36/+350
| | | | Replaces GLib's GError.
* *: remove remaining __cplusplus checksMax Kellermann2013-08-071-23/+1
|
* encoder/lame: use ReusableBuffer instead of AllocatedArrayMax Kellermann2013-08-071-189/+0
|
* PcmBuffer: move code to new class ReusableBufferMax Kellermann2013-08-071-0/+88
| | | | ReusableBuffer is more generic.
* util/Manual: add missing include <utility>Max Kellermann2013-08-061-0/+1
|
* encoder/lame: dynamic output bufferMax Kellermann2013-08-061-0/+189
|
* *: use gcc.h macros instead of GLibMax Kellermann2013-08-041-1/+1
|
* include cleanupMax Kellermann2013-07-301-1/+0
|
* util/Manual: work around strict-aliasing warningMax Kellermann2013-04-111-0/+9
|
* string_util: convert to C++Max Kellermann2013-04-093-1/+127
|
* tokenizer: convert to C++Max Kellermann2013-04-082-0/+301
|
* uri: convert to C++Max Kellermann2013-04-082-0/+171
|
* util/Manual: new template classMax Kellermann2013-01-301-0/+111
|
* refcount: convert to C++Max Kellermann2013-01-291-0/+59
|
* Client: move output buffer code to new class PeakBufferMax Kellermann2013-01-152-0/+209
|
* util/fifo_buffer: add method _init()Max Kellermann2013-01-152-0/+11
|
* fifo_buffer: move to util/Max Kellermann2013-01-154-0/+534
|
* util/list: don't use GLibMax Kellermann2013-01-081-3/+1
|
* util/LazyRandomEngine: lazy wrapper for std::mt19937Max Kellermann2013-01-072-0/+98
|
* MusicBuffer: return memory to kernel when stopping playbackMax Kellermann2013-01-041-4/+23
| | | | | Use the new HugeAllocator as backend for SliceBuffer and call HugeDiscard() when the last chunk was returned.
* HugeAllocator: new memory allocatorMax Kellermann2013-01-042-0/+169
|
* SliceBuffer: lazy initializationMax Kellermann2013-01-041-13/+21
| | | | | Avoid page faults on MPD startup. This saves a lot of memory for an idle MPD.
* MusicBuffer: move code to template class SliceBufferMax Kellermann2013-01-041-0/+134
|