tag/Handler: use StringIsEqualIgnoreCase()
This commit is contained in:
parent
232084c2f9
commit
c34f3c9b94
|
@ -33,7 +33,7 @@
|
|||
#include "TagFile.hxx"
|
||||
#include "fs/Traits.hxx"
|
||||
#include "fs/AllocatedPath.hxx"
|
||||
#include "util/StringView.hxx"
|
||||
#include "util/StringCompare.hxx"
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
@ -77,8 +77,7 @@ public:
|
|||
void
|
||||
ExtractCuesheetTagHandler::OnPair(std::string_view name, std::string_view value) noexcept
|
||||
{
|
||||
if (cuesheet.empty() &&
|
||||
StringView{name}.EqualsIgnoreCase("cuesheet"sv))
|
||||
if (cuesheet.empty() && StringIsEqualIgnoreCase(name, "cuesheet"sv))
|
||||
cuesheet = value;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "Builder.hxx"
|
||||
#include "pcm/AudioFormat.hxx"
|
||||
#include "util/CharUtil.hxx"
|
||||
#include "util/StringCompare.hxx"
|
||||
#include "util/StringView.hxx"
|
||||
|
||||
#include <algorithm>
|
||||
|
@ -81,7 +82,7 @@ AddTagHandler::OnTag(TagType type, std::string_view value) noexcept
|
|||
void
|
||||
FullTagHandler::OnPair(std::string_view name, std::string_view) noexcept
|
||||
{
|
||||
if (StringView{name}.EqualsIgnoreCase("cuesheet"sv))
|
||||
if (StringIsEqualIgnoreCase(name, "cuesheet"sv))
|
||||
tag.SetHasPlaylist(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue