tag/Id3Scan: use std::string_view
This commit is contained in:
parent
21e4c25e61
commit
0727ee94c0
@ -25,10 +25,13 @@
|
|||||||
#include "Builder.hxx"
|
#include "Builder.hxx"
|
||||||
#include "Tag.hxx"
|
#include "Tag.hxx"
|
||||||
#include "Id3MusicBrainz.hxx"
|
#include "Id3MusicBrainz.hxx"
|
||||||
#include "util/StringView.hxx"
|
#include "util/StringAPI.hxx"
|
||||||
|
#include "util/StringStrip.hxx"
|
||||||
|
|
||||||
#include <id3tag.h>
|
#include <id3tag.h>
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
@ -89,10 +92,7 @@ InvokeOnTag(TagHandler &handler, TagType type, const id3_ucs4_t *ucs4) noexcept
|
|||||||
if (!utf8)
|
if (!utf8)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
StringView s{utf8.c_str()};
|
handler.OnTag(type, Strip(std::string_view{utf8.c_str()}));
|
||||||
s.Strip();
|
|
||||||
|
|
||||||
handler.OnTag(type, s);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user