Tag Parser  6.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
helper.cpp
Go to the documentation of this file.
1 #include "./helper.h"
2 
3 namespace TestUtilities {
4 
8 std::ostream &operator <<(std::ostream &os, const Media::TagTextEncoding &encoding)
9 {
10  using namespace Media;
11  switch(encoding) {
12  case TagTextEncoding::Unspecified:
13  return os << "unspecified";
14  case TagTextEncoding::Latin1:
15  return os << "Latin-1";
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 }
TagTextEncoding
Specifies the text encoding.
Definition: tagvalue.h:22
Contains all classes and functions of the TagInfo library.
Definition: exceptions.h:9
std::ostream & operator<<(std::ostream &os, const Media::TagTextEncoding &encoding)
Prints a TagTextEncoding to enable CPPUNIT_ASSERT_EQUAL for tag values.
Definition: helper.cpp:8