aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/StringUtil.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-11-06util/StringUtil: move comparison functions to StringCompare.cxxMax Kellermann1-48/+0
2015-10-16util/StringUtil: add StringAfterPrefix()Max Kellermann1-0/+16
2015-03-04util/StringUtil: reorder functionsMax Kellermann1-45/+45
2015-03-03util/StringUtil: add FindStringSuffix()Max Kellermann1-0/+15
2015-03-02Util/StringUtil: use std::copy_n()Max Kellermann1-1/+1
2015-01-01Copyright year 2015Max Kellermann1-1/+1
2014-12-04util/StringUtil: add ToUpperASCII()Max Kellermann1-0/+20
Replaces g_ascii_strup() and allows building the Vorbis encoder without GLib.
2014-08-07util/StringUtil: add StripRight() overload with "end" argumentMax Kellermann1-0/+18
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 Kellermann1-6/+17
2014-08-07util/StringUtil: rename strchug_fast() to StripLeft()Max Kellermann1-2/+2
2014-03-01java: new helper library for the Android portMax Kellermann1-0/+14
2014-02-18util/StringUtil: add StringEndsWith()Max Kellermann1-0/+11
Replaces g_str_has_suffix().
2014-02-17util/StringUtil: add function Strip()Max Kellermann1-0/+14
Replaces g_strstrip().
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-11-28Util/StringUtil: add StringStartsWith()Max Kellermann1-0/+8
Replaces GLib's g_str_has_prefix().
2013-10-20Util/ASCII: add function StringEqualsCaseASCII()Max Kellermann1-3/+2
Replaces GLib's g_ascii_strcasecmp().
2013-10-19Util/CharUtil: new library replacing g_ascii_isX()Max Kellermann1-1/+2
2013-10-18util/StringUtil: rename strchug_fast_c() to strchug_fast()Max Kellermann1-1/+1
Overload the name.
2013-04-09string_util: convert to C++Max Kellermann1-5/+5
2013-04-09OpusReader: don't use strndup()Max Kellermann1-37/+0
Eliminate the fallback strndup() and strnlen() implementations.
2013-01-27string_util: add fallback for strnlen()Max Kellermann1-0/+15
Usually, when strndup() is not available, strndup() isn't either, because both are POSIX 2008.
2013-01-11string_util.c: provide fallback strndup() implementationDenis Krjuchkov1-0/+21
This patch also adds extern "C" { } wrapper around string_util.h to allow its usage in C++ code
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-12-23string_util: add function strchug_fast()Max Kellermann1-0/+9
Replace g_strchug() calls with a cheaper implementation.
2010-12-23utils: move string_array_contains() to string_util.cMax Kellermann1-8/+12
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-09-24listen: handle fatal errors with GErrorMax Kellermann1-1/+6
Don't call g_error(), which will abort the process and dump core.
2009-03-13all: Update copyright header.Avuton Olrich1-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-24listen: no CamelCaseMax Kellermann1-3/+3
Renamed functions.
2008-12-30main: use the GLib main loopMax Kellermann1-7/+0
This is a rather huge patch, which unfortunately cannot be splitted. Instead of using our custom ioops.h library, convert everything to use the GLib main loop.
2008-12-30listen: eliminated freeAllListenSockets()Max Kellermann1-1/+0
Merged freeAllListenSockets() into closeAllListenSockets(), because this is its only caller.
2008-10-31added prefix to header macrosMax Kellermann1-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-08don't include os_compat.hMax Kellermann1-1/+1
When there are standardized headers, use these instead of the bloated os_compat.h.
2008-04-12clean up CPP includesMax Kellermann1-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
2008-01-03Cleanup #includes of standard system headers and put them in one placeEric Wong1-5/+1
This will make refactoring features easier, especially now that pthreads support and larger refactorings are on the horizon. Hopefully, this will make porting to other platforms (even non-UNIX-like ones for masochists) easier, too. os_compat.h will house all the #includes for system headers considered to be the "core" of MPD. Headers for optional features will be left to individual source files. git-svn-id: https://svn.musicpd.org/mpd/trunk@7130 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-01Removing the getBoundPort() function and just making boundPort an extern.J. Alexander Treuman1-2/+2
git-svn-id: https://svn.musicpd.org/mpd/trunk@6445 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-04-05The massive copyright updateAvuton Olrich1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@5834 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-01-11Added zeroconf service publishing using avahiJim Ramsay1-0/+2
git-svn-id: https://svn.musicpd.org/mpd/trunk@5238 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-08-20Fix warnings for -Wmissing-prototypesAvuton Olrich1-3/+3
Add -Wmissing-prototypes if compiling with gcc Static where possible git-svn-id: https://svn.musicpd.org/mpd/trunk@4657 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-20Add mpd-indent.shAvuton Olrich1-1/+1
Indent the entire tree, hopefully we can keep it indented. git-svn-id: https://svn.musicpd.org/mpd/trunk@4410 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-14Change shank's email addressJ. Alexander Treuman1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@4333 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-14[CLEANUP] remove unused functionAvuton Olrich1-2/+0
git-svn-id: https://svn.musicpd.org/mpd/trunk@4331 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-13Huge header update, update the copyright and addAvuton Olrich1-1/+1
the GPL header where necessary git-svn-id: https://svn.musicpd.org/mpd/trunk@4317 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-11-16DJWLindenaar balanced tree and master process patchQball Cow1-0/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@3669 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-03-13change some header includes so that we can compile on OS XWarren Dukes1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@3067 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-03-06config file change! now 'port' is optional and 'db_file' is required!Warren Dukes1-1/+1
also, should have better error reporting when failing to open playlist or music directory's, or writing the db, etc git-svn-id: https://svn.musicpd.org/mpd/trunk@3027 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-11-03now one can specify multiple bind_to_addressesWarren Dukes1-3/+13
git-svn-id: https://svn.musicpd.org/mpd/trunk@2501 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-11-03remove vim &*(@Warren Dukes1-1/+0
git-svn-id: https://svn.musicpd.org/mpd/trunk@2500 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-14add vim shiznit to end of all source filesWarren Dukes1-0/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@750 09075e82-0dd4-0310-85a5-a0d7c8717e4f