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

@@ -20,6 +20,7 @@
#include "config.h"
#include "CueParser.hxx"
#include "util/StringUtil.hxx"
#include "util/CharUtil.hxx"
#include "Song.hxx"
#include "tag/Tag.hxx"
@@ -54,10 +55,10 @@ static const char *
cue_next_word(char *p, char **pp)
{
assert(p >= *pp);
assert(!g_ascii_isspace(*p));
assert(!IsWhitespaceNotNull(*p));
const char *word = p;
while (*p != 0 && !g_ascii_isspace(*p))
while (!IsWhitespaceOrNull(*p))
++p;
*p = 0;