aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-07 14:53:07 +0200
committerMax Kellermann <max@duempel.org>2014-08-07 16:08:02 +0200
commit87bcf739ee6a3e8ac5b400b35b61b72b9d8bd802 (patch)
tree9f2170889dfbfff90816d7d4eea7b19373ba213f /src/playlist
parentdb6db517424e09bab9a12934e9df6807a7049926 (diff)
downloadmpd-87bcf739ee6a3e8ac5b400b35b61b72b9d8bd802.tar.gz
mpd-87bcf739ee6a3e8ac5b400b35b61b72b9d8bd802.tar.xz
mpd-87bcf739ee6a3e8ac5b400b35b61b72b9d8bd802.zip
util/StringUtil: rename strchug_fast() to StripLeft()
Diffstat (limited to 'src/playlist')
-rw-r--r--src/playlist/cue/CueParser.cxx4
-rw-r--r--src/playlist/plugins/ExtM3uPlaylistPlugin.cxx4
-rw-r--r--src/playlist/plugins/M3uPlaylistPlugin.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/playlist/cue/CueParser.cxx b/src/playlist/cue/CueParser.cxx
index fd467dbc0..10f28b5a1 100644
--- a/src/playlist/cue/CueParser.cxx
+++ b/src/playlist/cue/CueParser.cxx
@@ -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;
diff --git a/src/playlist/plugins/ExtM3uPlaylistPlugin.cxx b/src/playlist/plugins/ExtM3uPlaylistPlugin.cxx
index 95cc84289..9d277ec3f 100644
--- a/src/playlist/plugins/ExtM3uPlaylistPlugin.cxx
+++ b/src/playlist/plugins/ExtM3uPlaylistPlugin.cxx
@@ -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));
diff --git a/src/playlist/plugins/M3uPlaylistPlugin.cxx b/src/playlist/plugins/M3uPlaylistPlugin.cxx
index c7f3b5085..977587377 100644
--- a/src/playlist/plugins/M3uPlaylistPlugin.cxx
+++ b/src/playlist/plugins/M3uPlaylistPlugin.cxx
@@ -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);