Tag Parser: tests/helper.cpp Source File

Tag Parser 12.5.2 C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags

Loading...
Searching...
No Matches
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
helper.h
CppUtilities
Definition abstractcontainer.h:16
CppUtilities::operator<<
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
TagParser
Contains all classes and functions of the TagInfo library.
Definition aaccodebook.h:10
TagParser::TagTextEncoding
TagTextEncoding
Specifies the text encoding.
Definition tagvalue.h:29
TagParser::TagTextEncoding::Latin1
@ Latin1
Definition tagvalue.h:30
TagParser::TagTextEncoding::Unspecified
@ Unspecified
Definition tagvalue.h:34
TagParser::TagTextEncoding::Utf16BigEndian
@ Utf16BigEndian
Definition tagvalue.h:33
TagParser::TagTextEncoding::Utf8
@ Utf8
Definition tagvalue.h:31
TagParser::TagTextEncoding::Utf16LittleEndian
@ Utf16LittleEndian
Definition tagvalue.h:32