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

View File

@@ -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));

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);