Tag Parser 12.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
helper.cpp
Go to the documentation of this file.
1#include "./helper.h"
2
3namespace CppUtilities {
4
8std::ostream &operator<<(std::ostream &os, const TagParser::TagTextEncoding &encoding)
9{
10 using namespace TagParser;
11 switch (encoding) {
12 case TagTextEncoding::Unspecified:
13 return os << "unspecified";
14 case TagTextEncoding::Latin1:
15 return os << "Latin-1";
16 case TagTextEncoding::Utf8:
17 return os << "UTF-8";
18 case TagTextEncoding::Utf16LittleEndian:
19 return os << "UTF-16 LE";
20 case TagTextEncoding::Utf16BigEndian:
21 return os << "UTF-16 BE";
22 }
23 return os;
24}
25
26} // namespace CppUtilities
std::ostream & operator<<(std::ostream &os, const TagParser::TagTextEncoding &encoding)
Prints a TagTextEncoding to enable CPPUNIT_ASSERT_EQUAL for tag values.
Definition helper.cpp:8
Contains all classes and functions of the TagInfo library.
Definition aaccodebook.h:10
TagTextEncoding
Specifies the text encoding.
Definition tagvalue.h:29