util/StringUtil: rename strchug_fast() to StripLeft()
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user