Util/CharUtil: new library replacing g_ascii_isX()

This commit is contained in:
Max Kellermann
2013-10-19 15:25:32 +02:00
parent 90777f78c9
commit b39ab76118
8 changed files with 134 additions and 17 deletions

View File

@@ -29,6 +29,7 @@
#include "fs/FileSystem.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "util/CharUtil.hxx"
#include "system/FatalError.hxx"
#include <assert.h>
@@ -89,7 +90,7 @@ chomp_length(const char *p)
{
size_t length = strlen(p);
while (length > 0 && g_ascii_isspace(p[length - 1]))
while (length > 0 && IsWhitespaceOrNull(p[length - 1]))
--length;
return (int)length;