tag/Handler: use std::string_view instead of StringView
This commit is contained in:
@@ -60,16 +60,16 @@ public:
|
||||
printf("duration=%f\n", duration.ToDoubleS());
|
||||
}
|
||||
|
||||
void OnTag(TagType type, StringView value) noexcept override {
|
||||
void OnTag(TagType type, std::string_view value) noexcept override {
|
||||
printf("[%s]=%.*s\n", tag_item_names[type],
|
||||
int(value.size), value.data);
|
||||
int(value.size()), value.data());
|
||||
empty = false;
|
||||
}
|
||||
|
||||
void OnPair(StringView key, StringView value) noexcept override {
|
||||
void OnPair(std::string_view key, std::string_view value) noexcept override {
|
||||
printf("\"%.*s\"=%.*s\n",
|
||||
int(key.size), key.data,
|
||||
int(value.size), value.data);
|
||||
int(key.size()), key.data(),
|
||||
int(value.size()), value.data());
|
||||
}
|
||||
|
||||
void OnAudioFormat(AudioFormat af) noexcept override {
|
||||
|
Reference in New Issue
Block a user