tag/IcyMetadataParser: pass std::string_view to icy_parse_tag()

This commit is contained in:
Max Kellermann
2023-12-20 20:00:21 +01:00
parent e443ee357a
commit 58fc857a2d
2 changed files with 30 additions and 49 deletions

View File

@@ -11,16 +11,16 @@
#include <string.h>
static std::unique_ptr<Tag>
icy_parse_tag(const char *p)
{
return icy_parse_tag(
#ifdef HAVE_ICU_CONVERTER
nullptr,
#endif
p, p + strlen(p));
static std::unique_ptr<Tag>
icy_parse_tag(std::string_view p) noexcept
{
return icy_parse_tag(nullptr, p);
}
#endif
static void
CompareTagTitle(const Tag &tag, const std::string &title)
{