diff options
author | Max Kellermann <max@duempel.org> | 2013-10-19 15:25:32 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-19 15:36:47 +0200 |
commit | b39ab76118067fe6e7cb83afb176dcef4c936d3d (patch) | |
tree | 529201bb86cdf2c0f3d142aecbb2ace5209b6b89 /src/TextInputStream.cxx | |
parent | 90777f78c99774023e694bef5933da88d74f4d45 (diff) | |
download | mpd-b39ab76118067fe6e7cb83afb176dcef4c936d3d.tar.gz mpd-b39ab76118067fe6e7cb83afb176dcef4c936d3d.tar.xz mpd-b39ab76118067fe6e7cb83afb176dcef4c936d3d.zip |
Util/CharUtil: new library replacing g_ascii_isX()
Diffstat (limited to '')
-rw-r--r-- | src/TextInputStream.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/TextInputStream.cxx b/src/TextInputStream.cxx index a69e1d513..f3664018a 100644 --- a/src/TextInputStream.cxx +++ b/src/TextInputStream.cxx @@ -20,12 +20,11 @@ #include "config.h" #include "TextInputStream.hxx" #include "InputStream.hxx" +#include "util/CharUtil.hxx" #include "util/fifo_buffer.h" #include "util/Error.hxx" #include "Log.hxx" -#include <glib.h> - #include <assert.h> #include <string.h> @@ -71,7 +70,7 @@ bool TextInputStream::ReadLine(std::string &line) } while (p == nullptr); size_t length = p - src + 1; - while (p > src && g_ascii_isspace(p[-1])) + while (p > src && IsWhitespaceOrNull(p[-1])) --p; line = std::string(src, p - src); |