From b39ab76118067fe6e7cb83afb176dcef4c936d3d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 19 Oct 2013 15:25:32 +0200 Subject: Util/CharUtil: new library replacing g_ascii_isX() --- src/TextInputStream.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/TextInputStream.cxx') 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 - #include #include @@ -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); -- cgit v1.2.3