Tag Parser: localeawarestring.h 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
localeawarestring.h
Go to the documentation of this file.
1#ifndef TAG_PARSER_LOCALEAWARESTRING_H
2#define TAG_PARSER_LOCALEAWARESTRING_H
3
4#include "./localehelper.h"
5
6#include <string>
7#include <vector>
8
9namespace TagParser {
10
14 class TAG_PARSER_EXPORT LocaleAwareString : public std::string {
15public:
16 explicit LocaleAwareString(const std::string &value = std::string());
17 explicit LocaleAwareString(std::string &&value);
18 ~LocaleAwareString();
19
20 const Locale &locale() const;
21 Locale &locale();
22
23private:
24 Locale m_locale;
25};
26
30 inline LocaleAwareString::LocaleAwareString(const std::string &value)
31 : std::string(value)
32{
33}
34
38 inline LocaleAwareString::LocaleAwareString(std::string &&value)
39 : std::string(value)
40{
41}
42
46 inline LocaleAwareString::~LocaleAwareString()
47{
48}
49
53 inline const Locale &LocaleAwareString::locale() const
54{
55 return m_locale;
56}
57
61 inline Locale &LocaleAwareString::locale()
62{
63 return m_locale;
64}
65
66} // namespace TagParser
67
68#endif // TAG_PARSER_LOCALEAWARESTRING_H
TagParser::LocaleAwareString::locale
const Locale & locale() const
Returns the associated locale.
Definition localeawarestring.h:53
TagParser::LocaleAwareString::LocaleAwareString
LocaleAwareString(const std::string &value=std::string())
Constructs a new LocaleAwareString from the specified standard string.
Definition localeawarestring.h:30
TagParser::LocaleAwareString::~LocaleAwareString
~LocaleAwareString()
Destroys the instance.
Definition localeawarestring.h:46
TAG_PARSER_EXPORT
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
Definition global.h:14
localehelper.h
TagParser
Contains all classes and functions of the TagInfo library.
Definition aaccodebook.h:10
TagParser::Locale
The Locale struct specifies a language and/or a country using one or more LocaleDetail objects.
Definition localehelper.h:61