util/StringUtil: rename strchug_fast() to StripLeft()

This commit is contained in:
Max Kellermann
2014-08-07 14:53:07 +02:00
parent db6db51742
commit 87bcf739ee
11 changed files with 26 additions and 29 deletions
+2 -2
View File
@@ -80,7 +80,7 @@ cue_next_quoted(char *p, char **pp)
static const char *
cue_next_token(char **pp)
{
char *p = strchug_fast(*pp);
char *p = StripLeft(*pp);
if (*p == 0)
return nullptr;
@@ -90,7 +90,7 @@ cue_next_token(char **pp)
static const char *
cue_next_value(char **pp)
{
char *p = strchug_fast(*pp);
char *p = StripLeft(*pp);
if (*p == 0)
return nullptr;
@@ -82,7 +82,7 @@ extm3u_parse_tag(const char *line)
/* 0 means unknown duration */
duration = 0;
name = strchug_fast(endptr + 1);
name = StripLeft(endptr + 1);
if (*name == 0 && duration == 0)
/* no information available; don't allocate a tag
object */
@@ -116,7 +116,7 @@ ExtM3uPlaylist::NextSong()
continue;
}
line_s = strchug_fast(line_s);
line_s = StripLeft(line_s);
} while (line_s[0] == '#' || *line_s == 0);
return new DetachedSong(line_s, std::move(tag));
+1 -1
View File
@@ -52,7 +52,7 @@ M3uPlaylist::NextSong()
if (line_s == nullptr)
return nullptr;
line_s = strchug_fast(line_s);
line_s = StripLeft(line_s);
} while (line_s[0] == '#' || *line_s == 0);
return new DetachedSong(line_s);