aboutsummaryrefslogtreecommitdiffstats
path: root/src/util (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-16util/DynamicFifoBuffer: adjust include guardMax Kellermann1-3/+3
2015-01-26Test the existence of strndup(3) before using it.PHO1-5/+6
This can eliminate the ad-hoc "#ifdef WIN32" and can also support other platforms lacking it as well (including Darwin 9).
2015-01-23util/list: disable gcc5 warningMax Kellermann1-0/+4
This file has been removed in newer MPD versions, so don't care about it now.
2015-01-22util/format: allow upper case, digits and underscore in namesMax Kellermann1-1/+2
2015-01-22util/format: move code to is_name_char()Max Kellermann1-1/+7
2015-01-15util/CharUtil: minor API documentation fixMax Kellermann1-1/+1
2015-01-14output/recorder: dynamic file nameMax Kellermann2-0/+303
2015-01-01Copyright year 2015Max Kellermann25-25/+25
2014-12-26util/{ASCII,UriUtil}, ...: work around -Wtautological-pointer-compareMax Kellermann2-0/+9
New in clang 3.6.
2014-12-26util/ASCII: fix indentMax Kellermann1-10/+10
2014-12-26Compiler.h: add macro GCC_OLDER_THAN()Max Kellermann1-2/+2
2014-12-17util/HugeAllocator: enable MEM_COMMIT on WindowsMax Kellermann1-1/+3
Without MEM_COMMIT, the reserved address space is not accessible, and MPD crashes.
2014-12-12util/HugeAllocator: disable MEM_LARGE_PAGES on WindowsMax Kellermann1-1/+2
MEM_LARGE_PAGES does not appear to work. Instead, MEM_RESERVE appears to be necessary. Until I figure this out, this large pages are disabled.
2014-12-09Util/Manual: cast via void* to avoid alignment warningsMax Kellermann1-2/+4
2014-12-09Util/Manual: use Get() in Destruct()Max Kellermann1-2/+2
2014-12-09Util/Manual: add assertion to Get()Max Kellermann1-0/+4
2014-12-09Util/Manual: add method Get()Max Kellermann1-4/+12
May be more clear than operators.
2014-12-09util/Manual: use gcc_alignas()Max Kellermann1-6/+1
2014-12-05util/Error: use FormatMessage() instead of g_win32_error_message()Max Kellermann1-2/+6
2014-12-04util/DivideString: add option "strip"Max Kellermann2-2/+17
2014-12-04util/StringUtil: add ToUpperASCII()Max Kellermann2-0/+28
Replaces g_ascii_strup() and allows building the Vorbis encoder without GLib.
2014-12-04util/SplitString: new utility classMax Kellermann2-0/+98
Replaces GLib's g_strsplit().
2014-12-03util/SplitString: rename to DivideStringMax Kellermann2-7/+7
2014-11-28util/Alloc: add fallback for gcc 4.6Max Kellermann1-0/+21
2014-11-28Compiler.h: add macro CLANG_OR_GCC_VERSION()Max Kellermann2-4/+4
2014-11-28Compiler.h: add macro GCC_OLDER_THAN()Max Kellermann1-2/+2
2014-11-28util/Manual: use GCC_CHECK_VERSIONMax Kellermann1-1/+1
2014-11-27util/Alloc: remove bogus "unused" attributeMax Kellermann1-1/+1
2014-11-02util/UriUtil: add uri_get_suffix() overload that ignores query stringMax Kellermann2-0/+28
2014-11-01util/UriUtil: add uri_get_suffix() overload that ignores query stringMax Kellermann2-0/+28
2014-10-25Util/Alloc: add xstrcatdup(), replacing g_strconcat()Max Kellermann2-0/+82
2014-10-19util/StaticFifoBuffer: make Shift() publicMax Kellermann1-2/+0
2014-10-11util/DynamicFifoBuffer: make the "Range" type publicMax Kellermann1-0/+1
Export it from the protected base class. This fixes a build failure on Mac OS X.
2014-10-10db/upnp/Util: move caturl() to util/UriUtil.cxxMax Kellermann2-0/+36
2014-10-10util/UTF8: add SequenceLengthUTF8()Max Kellermann2-0/+96
2014-10-10util/UTF8: new libraryMax Kellermann2-0/+339
2014-08-16util: Fix header for strcasecmpFrançois Revol1-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
2014-08-11util/HugeAllocator: implement on WindowsMax Kellermann1-0/+22
2014-08-11util/CharUtil: add ToLowerASCII()Max Kellermann1-0/+13
2014-08-07input/TextInputStream: move ReadBufferedLine() to util/TextFile.hxxMax Kellermann1-0/+52
2014-08-07util/DynamicFifoBuffer: make GetCapacity() and Clear() publicMax Kellermann1-1/+2
2014-08-07util/{Static,Foreign}FifoBuffer: lazy shiftMax Kellermann2-2/+10
Reduce the number of unnecessary memmove() calls.
2014-08-07util/StaticFifoBuffer: fix indentMax Kellermann1-68/+68
2014-08-07util/StringUtil: add StripRight() overload with "end" argumentMax Kellermann2-0/+40
2014-08-07util/StringUtil: use IsWhitespaceOrNull() in StripRight()Max Kellermann1-1/+1
The null byte is whitespace, too.
2014-08-07util/StringUtil: move code to StripRight()Max Kellermann2-6/+31
2014-08-07util/StringUtil: rename strchug_fast() to StripLeft()Max Kellermann3-11/+8
2014-08-07util/CharUtil: add IsWhitespaceFast()Max Kellermann2-3/+16
2014-08-07util/CharUtil: make IsWhitespace*() "constexpr"Max Kellermann1-0/+2
2014-08-07util/CharUtil: fix indentMax Kellermann1-16/+16