Tag Parser  9.1.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
language.h
Go to the documentation of this file.
1 #ifndef TAG_PARSER_LANGUAGE_H
2 #define TAG_PARSER_LANGUAGE_H
3 
4 #include "./global.h"
5 
6 #include <c++utilities/conversion/stringbuilder.h>
7 
8 #include <cstdint>
9 #include <string>
10 
11 namespace TagParser {
12 
16 inline bool isLanguageDefined(const std::string &languageSpecification)
17 {
18  return !languageSpecification.empty() && languageSpecification != "und";
19 }
20 
21 TAG_PARSER_EXPORT const std::string &languageNameFromIso(const std::string &isoCode);
22 TAG_PARSER_EXPORT const std::string &languageNameFromIsoWithFallback(const std::string &isoCode);
23 
24 } // namespace TagParser
25 
26 #endif // TAG_PARSER_LANGUAGE_H
global.h
TagParser
Contains all classes and functions of the TagInfo library.
Definition: aaccodebook.h:10
TagParser::languageNameFromIsoWithFallback
const TAG_PARSER_EXPORT std::string & languageNameFromIsoWithFallback(const std::string &isoCode)
Returns the language name for the specified ISO-639-2 code (bibliographic, 639-2/B).
Definition: language.cpp:34
TagParser::isLanguageDefined
bool isLanguageDefined(const std::string &languageSpecification)
Returns whether languageSpecification is not empty or undefined.
Definition: language.h:16
TagParser::languageNameFromIso
const TAG_PARSER_EXPORT std::string & languageNameFromIso(const std::string &isoCode)
Returns the language name for the specified ISO-639-2 code (bibliographic, 639-2/B).
Definition: language.cpp:19
TAG_PARSER_EXPORT
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.