Tag Parser 12.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The TagValue class wraps values of different types. More...
#include <tagvalue.h>
Public Member Functions | |
TagValue () | |
Constructs an empty TagValue. | |
TagValue (const char *text, std::size_t textSize, TagTextEncoding textEncoding=TagTextEncoding::Latin1, TagTextEncoding convertTo=TagTextEncoding::Unspecified) | |
Constructs a new TagValue holding a copy of the given text. | |
TagValue (const char *text, TagTextEncoding textEncoding=TagTextEncoding::Latin1, TagTextEncoding convertTo=TagTextEncoding::Unspecified) | |
Constructs a new TagValue holding a copy of the given text. | |
TagValue (const std::string &text, TagTextEncoding textEncoding=TagTextEncoding::Latin1, TagTextEncoding convertTo=TagTextEncoding::Unspecified) | |
Constructs a new TagValue holding a copy of the given text. | |
TagValue (std::string_view text, TagTextEncoding textEncoding=TagTextEncoding::Latin1, TagTextEncoding convertTo=TagTextEncoding::Unspecified) | |
Constructs a new TagValue holding a copy of the given text. | |
TagValue (int value) | |
Constructs a new TagValue holding the given integer value. | |
TagValue (std::uint64_t value) | |
TagValue (const char *data, std::size_t length, TagDataType type=TagDataType::Undefined, TagTextEncoding encoding=TagTextEncoding::Latin1) | |
Constructs a new TagValue with a copy of the given data. | |
TagValue (std::unique_ptr< char[]> &&data, std::size_t length, TagDataType type=TagDataType::Binary, TagTextEncoding encoding=TagTextEncoding::Latin1) | |
Constructs a new TagValue holding with the given data. | |
TagValue (PositionInSet value) | |
Constructs a new TagValue holding a copy of the given PositionInSet value. | |
TagValue (CppUtilities::DateTime value) | |
Constructs a new TagValue holding a copy of the given DateTime value. | |
TagValue (const CppUtilities::DateTimeExpression &value) | |
Constructs a new TagValue holding a copy of the given DateTimeExpression value. | |
TagValue (CppUtilities::TimeSpan value) | |
Constructs a new TagValue holding a copy of the given TimeSpan value. | |
TagValue (const Popularity &value) | |
Constructs a new TagValue holding a copy of the given Popularity value. | |
TagValue (const TagValue &other) | |
Constructs a new TagValue holding a copy of the given TagValue instance. | |
TagValue (TagValue &&other) | |
~TagValue () | |
Destroys the TagValue. | |
TagValue & | operator= (const TagValue &other) |
Assigns the value of another TagValue to the current instance. | |
TagValue & | operator= (TagValue &&other) |
bool | operator== (const TagValue &other) const |
Returns whether both instances are equal. | |
bool | operator!= (const TagValue &other) const |
Returns whether both instances are not equal. | |
operator bool () const | |
bool | isNull () const |
Returns whether no value is assigned at all. | |
bool | isEmpty () const |
Returns whether no or an empty value is assigned. | |
void | clearData () |
Clears the assigned data. | |
void | clearMetadata () |
Wipes assigned meta data. | |
void | clearDataAndMetadata () |
Wipes assigned data including meta data. | |
TagDataType | type () const |
Returns the type of the assigned value. | |
std::string | toString (TagTextEncoding encoding=TagTextEncoding::Unspecified) const |
Converts the value of the current TagValue object to its equivalent std::string representation. | |
std::string | toDisplayString () const |
void | toString (std::string &result, TagTextEncoding encoding=TagTextEncoding::Unspecified) const |
Converts the value of the current TagValue object to its equivalent std::string representation. | |
std::u16string | toWString (TagTextEncoding encoding=TagTextEncoding::Unspecified) const |
Converts the value of the current TagValue object to its equivalent std::wstring representation. | |
void | toWString (std::u16string &result, TagTextEncoding encoding=TagTextEncoding::Unspecified) const |
Converts the value of the current TagValue object to its equivalent std::u16string representation. | |
std::int32_t | toInteger () const |
Converts the value of the current TagValue object to its equivalent integer representation. | |
std::uint64_t | toUnsignedInteger () const |
int | toStandardGenreIndex () const |
Converts the value of the current TagValue object to its equivalent standard genre index. | |
PositionInSet | toPositionInSet () const |
Converts the value of the current TagValue object to its equivalent PositionInSet representation. | |
CppUtilities::TimeSpan | toTimeSpan () const |
Converts the value of the current TagValue object to its equivalent TimeSpan representation. | |
CppUtilities::DateTime | toDateTime () const |
Converts the value of the current TagValue object to its equivalent DateTime representation (using the UTC timezone). | |
CppUtilities::DateTimeExpression | toDateTimeExpression () const |
Popularity | toPopularity () const |
Converts the value of the current TagValue object to its equivalent Popularity representation. | |
Popularity | toScaledPopularity (TagType scale=TagType::Unspecified) const |
Converts the value of the current TagValue object to its equivalent Popularity representation using the specified scale. | |
std::size_t | dataSize () const |
Returns the size of the assigned value in bytes. | |
char * | dataPointer () |
Returns a pointer to the raw data assigned to the current instance. | |
const char * | dataPointer () const |
std::string_view | data () const |
Returns the currently assigned raw data. | |
const std::string & | description () const |
Returns the description. | |
void | setDescription (std::string_view value, TagTextEncoding encoding=TagTextEncoding::Latin1) |
Sets the description. | |
const std::string & | mimeType () const |
Returns the MIME type. | |
void | setMimeType (std::string_view mimeType) |
Sets the MIME type. | |
const Locale & | locale () const |
Returns the locale. | |
Locale & | locale () |
Returns the locale. | |
void | setLocale (const Locale &locale) |
Sets the setLocale. | |
TagValueFlags | flags () const |
Returns the flags. | |
void | setFlags (TagValueFlags flags) |
Sets the flags. | |
bool | isLabeledAsReadonly () const |
Returns an indication whether the value is labeled as read-only. | |
void | setReadonly (bool readOnly) |
Sets whether the TagValue is labeled as read-only. | |
const std::unordered_map< std::string, std::string > & | nativeData () const |
Holds tag format specific meta-data for that field which does not fit into any of the other meta-data properties. | |
std::unordered_map< std::string, std::string > & | nativeData () |
Holds tag format specific meta-data for that field which does not fit into any of the other meta-data properties. | |
TagTextEncoding | dataEncoding () const |
Returns the data encoding. | |
void | convertDataEncoding (TagTextEncoding encoding) |
Converts the currently assigned text value to the specified encoding. | |
void | convertDataEncodingForTag (const Tag *tag) |
Ensures the encoding of the currently assigned text value is supported by the specified tag. | |
TagTextEncoding | descriptionEncoding () const |
Returns the description encoding. | |
void | convertDescriptionEncoding (TagTextEncoding encoding) |
Converts the assigned description to use the specified encoding. | |
void | assignText (const char *text, std::size_t textSize, TagTextEncoding textEncoding=TagTextEncoding::Latin1, TagTextEncoding convertTo=TagTextEncoding::Unspecified) |
Assigns a copy of the given text. | |
void | assignText (const std::string &text, TagTextEncoding textEncoding=TagTextEncoding::Latin1, TagTextEncoding convertTo=TagTextEncoding::Unspecified) |
Assigns a copy of the given text. | |
void | assignText (std::string_view text, TagTextEncoding textEncoding=TagTextEncoding::Latin1, TagTextEncoding convertTo=TagTextEncoding::Unspecified) |
Assigns a copy of the given text. | |
void | assignInteger (int value) |
Assigns the given integer value. | |
void | assignUnsignedInteger (std::uint64_t value) |
Assigns the given unsigned integer value. | |
void | assignStandardGenreIndex (int index) |
Assigns the given standard genre index to be assigned. | |
void | assignData (const char *data, std::size_t length, TagDataType type=TagDataType::Binary, TagTextEncoding encoding=TagTextEncoding::Latin1) |
void | assignData (std::unique_ptr< char[]> &&data, std::size_t length, TagDataType type=TagDataType::Binary, TagTextEncoding encoding=TagTextEncoding::Latin1) |
void | assignPosition (PositionInSet value) |
Assigns the given PositionInSet value. | |
void | assignTimeSpan (CppUtilities::TimeSpan value) |
Assigns the given TimeSpan value. | |
void | assignDateTime (CppUtilities::DateTime value) |
Assigns the given DateTime value. | |
void | assignDateTimeExpression (const CppUtilities::DateTimeExpression &value) |
void | assignPopularity (const Popularity &value) |
Assigns the specified popularity value. | |
bool | compareTo (const TagValue &other, TagValueComparisionFlags options=TagValueComparisionFlags::None) const |
Returns whether both instances are equal. | |
bool | compareData (const TagValue &other, bool ignoreCase=false) const |
Returns whether the raw data of the current instance equals the raw data of other. | |
Static Public Member Functions | |
static const TagValue & | empty () |
Returns a default-constructed TagValue where TagValue::isNull() and TagValue::isEmpty() both return true. | |
static void | stripBom (const char *&text, std::size_t &length, TagTextEncoding encoding) |
Strips the byte order mask from the specified text. | |
static void | ensureHostByteOrder (std::u16string &u16str, TagTextEncoding currentEncoding) |
Ensures the byte-order of the specified UTF-16 string matches the byte-order of the machine. | |
template<typename ContainerType , CppUtilities::Traits::EnableIf< CppUtilities::Traits::IsIteratable< ContainerType >, std::is_same< typename std::add_const< typename std::remove_pointer< typename ContainerType::value_type >::type >::type, const TagValue > > * = nullptr> | |
static std::vector< std::string > | toStrings (const ContainerType &values, TagTextEncoding encoding=TagTextEncoding::Utf8) |
Converts the specified values to string using the specified encoding. | |
static bool | compareData (const std::string &data1, const std::string &data2, bool ignoreCase=false) |
Returns whether 2 data buffers are equal. | |
static bool | compareData (const char *data1, std::size_t size1, const char *data2, std::size_t size2, bool ignoreCase=false) |
Returns whether 2 data buffers are equal. | |
The TagValue class wraps values of different types.
It is meant to be assigned to a tag field.
For a list of supported types see TagParser::TagDataType.
When constructing a TagValue choose the type which suites the value you want to store best. If the tag format uses a different type the serializer will take care of the neccassary conversion (eg. convert an integer to a string).
When consuming a TagValue read from a tag one should not expect that a particular type is used. The type depends on what the particular tag format uses. However, the conversion functions provided by the TagValue class take care of neccassary conversions, eg. TagValue::toInteger() will attempt to convert a string to a number (an possibly throw a ConversionException on failure).
Values of the type TagDataType::Text can be differently encoded.
Values of the type TagDataType::Popularity might use different rating scales depending on the tag format.
Values of the type TagDataType::Text are not supposed to contain Byte-Order-Marks. Before assigning text which might be prepended by a Byte-Order-Mark the helper function TagValue::stripBom() can be used.
|
explicit |
Constructs an empty TagValue.
Definition at line 156 of file tagvalue.cpp.
|
explicit |
Constructs a new TagValue holding a copy of the given text.
text | Specifies the text to be assigned. |
textSize | Specifies the size of text. (The actual number of bytes, not the number of characters.) |
textEncoding | Specifies the encoding of the given text. |
convertTo | Specifies the encoding to convert text to; set to TagTextEncoding::Unspecified to use textEncoding without any character set conversions. |
Throws | a ConversionException if the conversion the specified character set fails. |
Definition at line 175 of file tagvalue.cpp.
|
explicit |
Constructs a new TagValue holding a copy of the given text.
text | Specifies the text to be assigned. This string must be null-terminated. |
textEncoding | Specifies the encoding of the given text. |
convertTo | Specifies the encoding to convert text to; set to TagTextEncoding::Unspecified to use textEncoding without any character set conversions. |
Throws | a ConversionException if the conversion the specified character set fails. |
Definition at line 191 of file tagvalue.cpp.
|
explicit |
Constructs a new TagValue holding a copy of the given text.
text | Specifies the text to be assigned. |
textEncoding | Specifies the encoding of the given text. |
convertTo | Specifies the encoding to convert text to; set to TagTextEncoding::Unspecified to use textEncoding without any character set conversions. |
Throws | a ConversionException if the conversion the specified character set fails. |
Definition at line 205 of file tagvalue.cpp.
|
explicit |
Constructs a new TagValue holding a copy of the given text.
text | Specifies the text to be assigned. |
textEncoding | Specifies the encoding of the given text. |
convertTo | Specifies the encoding to convert text to; set to TagTextEncoding::Unspecified to use textEncoding without any character set conversions. |
Throws | a ConversionException if the conversion the specified character set fails. |
Definition at line 221 of file tagvalue.cpp.
|
inlineexplicit |
Constructs a new TagValue holding the given integer value.
Definition at line 273 of file tagvalue.h.
|
explicit |
|
explicit |
Constructs a new TagValue with a copy of the given data.
data | Specifies a pointer to the data. |
length | Specifies the length of the data. |
type | Specifies the type of the data as TagDataType. |
encoding | Specifies the encoding of the data as TagTextEncoding. The encoding will only be considered if a text is assigned. |
Definition at line 245 of file tagvalue.cpp.
|
explicit |
Constructs a new TagValue holding with the given data.
The data is not copied. It is moved.
data | Specifies a pointer to the data. |
length | Specifies the length of the data. |
type | Specifies the type of the data as TagDataType. |
encoding | Specifies the encoding of the data as TagTextEncoding. The encoding will only be considered if a text is assigned. |
Definition at line 273 of file tagvalue.cpp.
|
inlineexplicit |
Constructs a new TagValue holding a copy of the given PositionInSet value.
Definition at line 289 of file tagvalue.h.
|
inlineexplicit |
Constructs a new TagValue holding a copy of the given DateTime value.
Definition at line 297 of file tagvalue.h.
|
inlineexplicit |
Constructs a new TagValue holding a copy of the given DateTimeExpression value.
Definition at line 305 of file tagvalue.h.
|
inlineexplicit |
Constructs a new TagValue holding a copy of the given TimeSpan value.
Definition at line 313 of file tagvalue.h.
|
inlineexplicit |
Constructs a new TagValue holding a copy of the given Popularity value.
Definition at line 321 of file tagvalue.h.
TagParser::TagValue::TagValue | ( | const TagValue & | other | ) |
Constructs a new TagValue holding a copy of the given TagValue instance.
other | Specifies another TagValue instance. |
Definition at line 135 of file tagvalue.cpp.
|
default |
TagParser::TagValue::~TagValue | ( | ) |
Destroys the TagValue.
Definition at line 231 of file tagvalue.cpp.
void TagParser::TagValue::assignData | ( | const char * | data, |
std::size_t | length, | ||
TagDataType | type = TagDataType::Binary, | ||
TagTextEncoding | encoding = TagTextEncoding::Latin1 ) |
void TagParser::TagValue::assignData | ( | std::unique_ptr< char[]> && | data, |
std::size_t | length, | ||
TagDataType | type = TagDataType::Binary, | ||
TagTextEncoding | encoding = TagTextEncoding::Latin1 ) |
|
inline |
Assigns the given DateTime value.
Definition at line 406 of file tagvalue.h.
void TagParser::TagValue::assignDateTimeExpression | ( | const CppUtilities::DateTimeExpression & | value | ) |
void TagParser::TagValue::assignInteger | ( | int | value | ) |
Assigns the given integer value.
value | Specifies the integer to be assigned. |
Definition at line 1260 of file tagvalue.cpp.
void TagParser::TagValue::assignPopularity | ( | const Popularity & | value | ) |
Assigns the specified popularity value.
Definition at line 1331 of file tagvalue.cpp.
|
inline |
Assigns the given PositionInSet value.
Definition at line 385 of file tagvalue.h.
|
inline |
Assigns the given standard genre index to be assigned.
index | Specifies the index to be assigned. |
Definition at line 424 of file tagvalue.h.
void TagParser::TagValue::assignText | ( | const char * | text, |
std::size_t | textSize, | ||
TagTextEncoding | textEncoding = TagTextEncoding::Latin1, | ||
TagTextEncoding | convertTo = TagTextEncoding::Unspecified ) |
Assigns a copy of the given text.
text | Specifies the text to be assigned. |
textSize | Specifies the size of text. (The actual number of bytes, not the number of characters.) |
textEncoding | Specifies the encoding of the given text. |
convertTo | Specifies the encoding to convert text to; set to TagTextEncoding::Unspecified to use textEncoding without any character set conversions. |
Throws | a ConversionException if the conversion the specified character set fails. |
Definition at line 1209 of file tagvalue.cpp.
|
inline |
Assigns a copy of the given text.
text | Specifies the text to be assigned. |
textEncoding | Specifies the encoding of the given text. |
convertTo | Specifies the encoding to convert text to; set to TagTextEncoding::Unspecified to use textEncoding without any character set conversions. |
Throws | a ConversionException if the conversion the specified character set fails. |
Definition at line 363 of file tagvalue.h.
|
inline |
Assigns a copy of the given text.
text | Specifies the text to be assigned. |
textEncoding | Specifies the encoding of the given text. |
convertTo | Specifies the encoding to convert text to; set to TagTextEncoding::Unspecified to use textEncoding without any character set conversions. |
Throws | a ConversionException if the conversion the specified character set fails. |
Definition at line 377 of file tagvalue.h.
|
inline |
Assigns the given TimeSpan value.
Definition at line 398 of file tagvalue.h.
void TagParser::TagValue::assignUnsignedInteger | ( | std::uint64_t | value | ) |
Assigns the given unsigned integer value.
value | Specifies the unsigned integer to be assigned. |
Definition at line 1273 of file tagvalue.cpp.
|
inline |
Clears the assigned data.
Definition at line 501 of file tagvalue.h.
|
inline |
Wipes assigned data including meta data.
Definition at line 512 of file tagvalue.h.
void TagParser::TagValue::clearMetadata | ( | ) |
Wipes assigned meta data.
Definition at line 500 of file tagvalue.cpp.
|
static |
Returns whether 2 data buffers are equal.
In case one of the sizes is zero, no pointer is dereferenced.
Definition at line 1402 of file tagvalue.cpp.
|
inlinestatic |
Returns whether 2 data buffers are equal.
Definition at line 762 of file tagvalue.h.
|
inline |
Returns whether the raw data of the current instance equals the raw data of other.
Definition at line 754 of file tagvalue.h.
bool TagParser::TagValue::compareTo | ( | const TagValue & | other, |
TagValueComparisionFlags | options = TagValueComparisionFlags::None ) const |
Returns whether both instances are equal.
Meta-data like description and MIME-type is taken into account as well.
Definition at line 354 of file tagvalue.cpp.
void TagParser::TagValue::convertDataEncoding | ( | TagTextEncoding | encoding | ) |
Converts the currently assigned text value to the specified encoding.
Throws | CppUtilities::ConversionException() if the conversion fails. |
Definition at line 921 of file tagvalue.cpp.
void TagParser::TagValue::convertDataEncodingForTag | ( | const Tag * | tag | ) |
Ensures the encoding of the currently assigned text value is supported by the specified tag.
Definition at line 963 of file tagvalue.cpp.
void TagParser::TagValue::convertDescriptionEncoding | ( | TagTextEncoding | encoding | ) |
Converts the assigned description to use the specified encoding.
Definition at line 973 of file tagvalue.cpp.
|
inline |
Returns the currently assigned raw data.
Definition at line 546 of file tagvalue.h.
|
inline |
Returns the data encoding.
Definition at line 718 of file tagvalue.h.
|
inline |
Returns a pointer to the raw data assigned to the current instance.
Definition at line 533 of file tagvalue.h.
|
inline |
Definition at line 538 of file tagvalue.h.
|
inline |
Returns the size of the assigned value in bytes.
Definition at line 522 of file tagvalue.h.
|
inline |
Returns the description.
Definition at line 561 of file tagvalue.h.
|
inline |
Returns the description encoding.
Definition at line 728 of file tagvalue.h.
|
static |
Returns a default-constructed TagValue where TagValue::isNull() and TagValue::isEmpty() both return true.
Definition at line 1432 of file tagvalue.cpp.
|
static |
Ensures the byte-order of the specified UTF-16 string matches the byte-order of the machine.
Definition at line 1382 of file tagvalue.cpp.
|
inline |
|
inline |
Returns whether no or an empty value is assigned.
Definition at line 490 of file tagvalue.h.
|
inline |
Returns an indication whether the value is labeled as read-only.
Definition at line 676 of file tagvalue.h.
|
inline |
Returns whether no value is assigned at all.
Definition at line 477 of file tagvalue.h.
|
inline |
Returns the locale.
Definition at line 630 of file tagvalue.h.
|
inline |
Returns the locale.
Definition at line 616 of file tagvalue.h.
|
inline |
Returns the MIME type.
Definition at line 590 of file tagvalue.h.
|
inline |
Holds tag format specific meta-data for that field which does not fit into any of the other meta-data properties.
Definition at line 708 of file tagvalue.h.
|
inline |
Holds tag format specific meta-data for that field which does not fit into any of the other meta-data properties.
Definition at line 699 of file tagvalue.h.
TagParser::TagValue::operator bool | ( | ) | const |
|
inline |
Returns whether both instances are not equal.
Definition at line 340 of file tagvalue.h.
Assigns the value of another TagValue to the current instance.
Definition at line 288 of file tagvalue.cpp.
|
inline |
Returns whether both instances are equal.
Definition at line 331 of file tagvalue.h.
|
inline |
Sets the description.
value | Specifies the description. |
encoding | Specifies the encoding used to provide the description. |
Definition at line 577 of file tagvalue.h.
|
inline |
|
inline |
Sets the setLocale.
Definition at line 644 of file tagvalue.h.
|
inline |
Sets the MIME type.
Definition at line 602 of file tagvalue.h.
|
inline |
Sets whether the TagValue is labeled as read-only.
Definition at line 690 of file tagvalue.h.
|
static |
Strips the byte order mask from the specified text.
Definition at line 1353 of file tagvalue.cpp.
DateTime TagParser::TagValue::toDateTime | ( | ) | const |
Converts the value of the current TagValue object to its equivalent DateTime representation (using the UTC timezone).
Throws | ConversionException on failure. |
Definition at line 763 of file tagvalue.cpp.
CppUtilities::DateTimeExpression TagParser::TagValue::toDateTimeExpression | ( | ) | const |
std::string TagParser::TagValue::toDisplayString | ( | ) | const |
std::int32_t TagParser::TagValue::toInteger | ( | ) | const |
Converts the value of the current TagValue object to its equivalent integer representation.
Throws | ConversionException on failure. |
Definition at line 540 of file tagvalue.cpp.
Popularity TagParser::TagValue::toPopularity | ( | ) | const |
Converts the value of the current TagValue object to its equivalent Popularity representation.
Throws | ConversionException on failure. |
Definition at line 841 of file tagvalue.cpp.
PositionInSet TagParser::TagValue::toPositionInSet | ( | ) | const |
Converts the value of the current TagValue object to its equivalent PositionInSet representation.
Throws | ConversionException on failure. |
Definition at line 675 of file tagvalue.cpp.
Popularity TagParser::TagValue::toScaledPopularity | ( | TagType | scale = TagType::Unspecified | ) | const |
Converts the value of the current TagValue object to its equivalent Popularity representation using the specified scale.
Throws | ConversionException on failure, e.g. when Popularity::scaleTo() fails. |
Definition at line 901 of file tagvalue.cpp.
int TagParser::TagValue::toStandardGenreIndex | ( | ) | const |
Converts the value of the current TagValue object to its equivalent standard genre index.
Throws | ConversionException on failure. |
Definition at line 625 of file tagvalue.cpp.
void TagParser::TagValue::toString | ( | std::string & | result, |
TagTextEncoding | encoding = TagTextEncoding::Unspecified ) const |
Converts the value of the current TagValue object to its equivalent std::string representation.
result | Specifies the string to store the result. |
encoding | Specifies the encoding to to be used; set to TagTextEncoding::Unspecified to use the present encoding without any character set conversion. |
Throws | ConversionException on failure. |
Definition at line 1024 of file tagvalue.cpp.
|
inline |
Converts the value of the current TagValue object to its equivalent std::string representation.
result | Specifies the string to store the result. |
encoding | Specifies the encoding to to be used; set to TagTextEncoding::Unspecified to use the present encoding without any character set conversion. |
Throws | ConversionException on failure. |
Definition at line 450 of file tagvalue.h.
|
static |
Converts the specified values to string using the specified encoding.
Throws | ConversionException on failure. |
Definition at line 741 of file tagvalue.h.
TimeSpan TagParser::TagValue::toTimeSpan | ( | ) | const |
Converts the value of the current TagValue object to its equivalent TimeSpan representation.
Throws | ConversionException on failure. |
Definition at line 724 of file tagvalue.cpp.
std::uint64_t TagParser::TagValue::toUnsignedInteger | ( | ) | const |
Definition at line 582 of file tagvalue.cpp.
void TagParser::TagValue::toWString | ( | std::u16string & | result, |
TagTextEncoding | encoding = TagTextEncoding::Unspecified ) const |
Converts the value of the current TagValue object to its equivalent std::u16string representation.
Throws | ConversionException on failure. |
Definition at line 1116 of file tagvalue.cpp.
|
inline |
Converts the value of the current TagValue object to its equivalent std::wstring representation.
Throws | ConversionException on failure. |
Definition at line 463 of file tagvalue.h.
|
inline |
Returns the type of the assigned value.
Definition at line 433 of file tagvalue.h.