Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2015-03-05 | util/StringUtil: add wchar_t overloads | Max Kellermann | 1 | -0/+4 | |
2015-03-04 | util/StringUtil: reorder functions | Max Kellermann | 1 | -28/+28 | |
2015-03-03 | util/StringUtil: add FindStringSuffix() | Max Kellermann | 1 | -0/+8 | |
2015-01-01 | Copyright year 2015 | Max Kellermann | 1 | -1/+1 | |
2014-12-04 | util/StringUtil: add ToUpperASCII() | Max Kellermann | 1 | -0/+8 | |
Replaces g_ascii_strup() and allows building the Vorbis encoder without GLib. | |||||
2014-08-07 | util/StringUtil: add StripRight() overload with "end" argument | Max Kellermann | 1 | -0/+22 | |
2014-08-07 | util/StringUtil: move code to StripRight() | Max Kellermann | 1 | -0/+14 | |
2014-08-07 | util/StringUtil: rename strchug_fast() to StripLeft() | Max Kellermann | 1 | -6/+3 | |
2014-03-01 | java: new helper library for the Android port | Max Kellermann | 1 | -0/+14 | |
2014-02-18 | util/StringUtil: add StringEndsWith() | Max Kellermann | 1 | -0/+4 | |
Replaces g_str_has_suffix(). | |||||
2014-02-17 | util/StringUtil: add function Strip() | Max Kellermann | 1 | -0/+7 | |
Replaces g_strstrip(). | |||||
2014-01-13 | copyright year 2014 | Max Kellermann | 1 | -1/+1 | |
2013-11-28 | Util/StringUtil: add StringStartsWith() | Max Kellermann | 1 | -0/+4 | |
Replaces GLib's g_str_has_prefix(). | |||||
2013-10-18 | util/StringUtil: rename strchug_fast_c() to strchug_fast() | Max Kellermann | 1 | -5/+2 | |
Overload the name. | |||||
2013-10-15 | gcc.h: rename to Compiler.h | Max Kellermann | 1 | -1/+1 | |
2013-08-07 | *: remove remaining __cplusplus checks | Max Kellermann | 1 | -23/+1 | |
2013-04-09 | string_util: convert to C++ | Max Kellermann | 1 | -13/+4 | |
2013-04-09 | OpusReader: don't use strndup() | Max Kellermann | 1 | -26/+0 | |
Eliminate the fallback strndup() and strnlen() implementations. | |||||
2013-01-27 | string_util: add fallback for strnlen() | Max Kellermann | 1 | -0/+8 | |
Usually, when strndup() is not available, strndup() isn't either, because both are POSIX 2008. | |||||
2013-01-11 | string_util.c: provide fallback strndup() implementation | Denis Krjuchkov | 1 | -0/+26 | |
This patch also adds extern "C" { } wrapper around string_util.h to allow its usage in C++ code | |||||
2013-01-02 | string_util: use const_cast in C++ mode | Max Kellermann | 1 | -0/+4 | |
2012-08-02 | gcc.h: re-add gcc_const and gcc_pure | Max Kellermann | 1 | -4/+4 | |
Remove GLib dependency from some headers. | |||||
2011-01-29 | copyright year 2011 | Max Kellermann | 1 | -1/+1 | |
2010-12-23 | string_util: add function strchug_fast() | Max Kellermann | 1 | -0/+41 | |
Replace g_strchug() calls with a cheaper implementation. | |||||
2010-12-23 | utils: move string_array_contains() to string_util.c | Max Kellermann | 1 | -13/+2 | |
2009-12-31 | Update copyright notices. | Avuton Olrich | 1 | -1/+1 | |
2009-11-08 | utils: removed function set_nonblocking() | Max Kellermann | 1 | -2/+0 | |
It's not used anymore, its features have been moved to fd_util.c. | |||||
2009-11-06 | utils: renamed stringFoundInStringArray() | Max Kellermann | 1 | -1/+12 | |
No CamelCase. Use bool instead of int. Make both arguments mandatory. | |||||
2009-03-13 | all: Update copyright header. | Avuton Olrich | 1 | -6/+7 | |
This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy. | |||||
2009-02-19 | utils: use g_usleep() instead of my_usleep() | Max Kellermann | 1 | -2/+0 | |
Now that I've found this nice function in the GLib docs, we can finally remove our custom sleep function. Still all those callers of g_usleep() have to be migrated one day to use events, instead of regular polling. | |||||
2009-01-03 | utils: removed unused functions | Max Kellermann | 1 | -57/+0 | |
Removed all allocation functions, xwrite(), xread(), ARRAY_SIZE(). Those have been superseded by GLib. | |||||
2009-01-03 | tag: use g_strescape() to eliminate evil characters | Max Kellermann | 1 | -2/+0 | |
This always allocates strings on the heap, but we can delete the stripReturnChar() function now. | |||||
2009-01-03 | listen: use GLib instead of utils.h | Max Kellermann | 1 | -2/+0 | |
2008-12-30 | main_notify: make the read side of the pipe blocking | Max Kellermann | 1 | -2/+0 | |
Currently, both sides of the pipe are blocking, although we do not need blocking read(). Convert it back to blocking. Eliminate the select() from wait_main_task(). | |||||
2008-12-28 | Remove xpthread_* wrappers | Thomas Jansen | 1 | -9/+0 | |
2008-12-28 | utils: removed myFgets() | Max Kellermann | 1 | -2/+0 | |
Replaced myFgets() with fgets() + g_strchomp(). | |||||
2008-12-09 | utils: moving stringFoundInStringArray() from decoder into utils | Viliam Mateicka | 1 | -0/+2 | |
2008-12-02 | replaced mpd_malloc by G_GNUC_MALLOC | Thomas Jansen | 1 | -6/+5 | |
We want to remove gcc.h eventually. This takes care of all the G_GNUC_MALLOC macros. | |||||
2008-11-22 | utils: introduce assert_static() | Laszlo Ashin | 1 | -0/+9 | |
assert_static() will help us to find false asserts in compile time. Of course it only works in case of expressions which can be evaluated compile time. It cannot be used in global scope. | |||||
2008-11-01 | utils: use GUINT32_FROM_LE() instead of readLEuint32() | Max Kellermann | 1 | -2/+0 | |
Eliminate code already provided by GLib. | |||||
2008-10-31 | added prefix to header macros | Max Kellermann | 1 | -2/+2 | |
"LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD. | |||||
2008-10-29 | log: don't use utils.h | Max Kellermann | 1 | -2/+0 | |
Prefer GLib over utils.h. | |||||
2008-10-28 | utils: use g_str_has_prefix() instead of prefixcmp() | Max Kellermann | 1 | -2/+0 | |
Remove duplicated code from MPD. | |||||
2008-10-15 | locate: use g_utf8_casefold() instead of string_toupper() | Max Kellermann | 1 | -4/+0 | |
string_toupper() and strDupToUpper() were not able to deal with character sets other than US-ASCII. Use GLib's g_utf8_casefold() for strings. | |||||
2008-10-08 | don't include os_compat.h | Max Kellermann | 1 | -1/+6 | |
When there are standardized headers, use these instead of the bloated os_compat.h. | |||||
2008-09-23 | Add prefixcmp() (stol^H^H^H^Hborrowed from git) | Eric Wong | 1 | -0/+2 | |
This allows us to avoid the nasty repetition in strncmp(foo, bar, strlen(foo)). We'll miss out on the compiler optimizing strlen() into sizeof() - 1 for string literals for this; but we don't use this it for performance-critical functions anyways... | |||||
2008-08-29 | added xfree() which takes a const pointer | Max Kellermann | 1 | -0/+13 | |
Unfortunately, the C standard postulates that the argument to free() must be non-const. This does not makes sense, and virtually prevents every pointer which must be freed at some time to be non-const. Use the deconst hack (sorry for that) to allow us to free constant pointers. | |||||
2008-06-30 | utils: pthread_{mutex,cond}_init can fail, so check for it | Eric Wong | 1 | -0/+4 | |
git-svn-id: https://svn.musicpd.org/mpd/trunk@7394 09075e82-0dd4-0310-85a5-a0d7c8717e4f | |||||
2008-06-30 | utils: add new unforgiving utility functions | Eric Wong | 1 | -0/+6 | |
We'll be using pipes when waiting for I/O, and condition variables at other times. git-svn-id: https://svn.musicpd.org/mpd/trunk@7391 09075e82-0dd4-0310-85a5-a0d7c8717e4f | |||||
2008-04-12 | clean up CPP includes | Max Kellermann | 1 | -1/+0 | |
Try to only include headers which are really needed. We should particularly check all "headers including other headers". The long-term goal is to have a manageable, small API for plugins (decoders, output) without so many mpd internals cluttering the namespace. git-svn-id: https://svn.musicpd.org/mpd/trunk@7319 09075e82-0dd4-0310-85a5-a0d7c8717e4f |