Go to the documentation of this file.
10 #ifndef EBOOKLANGUAGEMANAGER_H_INCLUDED
11 #define EBOOKLANGUAGEMANAGER_H_INCLUDED
15 #include <unordered_map>
16 #include <unordered_set>
18 #include <librevenge/librevenge.h>
30 const std::string
addTag(
const std::string &
tag);
35 void writeProperties(
const std::string &
tag, librevenge::RVNGPropertyList &props)
const;
43 std::unordered_map<std::string, std::string>
m_tagMap;
45 std::unordered_map<std::string, std::string>
m_langMap;
47 std::unordered_map<std::string, librevenge::RVNGPropertyList>
m_propsMap;
53 #endif // EBOOKLANGUAGEMANAGER_H_INCLUDED
std::unordered_map< std::string, std::string > m_tagMap
Definition: EBOOKLanguageManager.h:43
const std::string addLanguage(const std::string &lang)
Definition: EBOOKLanguageManager.cpp:131
std::unordered_set< std::string > m_invalidLangs
Definition: EBOOKLanguageManager.h:46
Definition: BBeBCollector.cpp:19
qi::rule< Iterator, AttrValue_t, qi::space_type > value
Definition: TealDocParser.cpp:231
void addProperties(const std::string &tag)
Definition: EBOOKLanguageManager.cpp:185
std::unordered_map< std::string, std::string > m_langMap
Definition: EBOOKLanguageManager.h:45
Definition: EBOOKLanguageManager.cpp:69
const LangDB & getLangDB() const
Definition: EBOOKLanguageManager.cpp:178
const std::string addTag(const std::string &tag)
Definition: EBOOKLanguageManager.cpp:102
LangDB()
Definition: EBOOKLanguageManager.cpp:75
Definition: EBOOKLanguageManager.h:24
unordered_map< string, string > m_db
Definition: EBOOKLanguageManager.cpp:72
std::unordered_set< std::string > m_invalidTags
Definition: EBOOKLanguageManager.h:44
const std::string getLanguage(const std::string &tag) const
Definition: EBOOKLanguageManager.cpp:165
std::shared_ptr< LangDB > m_langDB
Definition: EBOOKLanguageManager.h:48
void writeProperties(const std::string &tag, librevenge::RVNGPropertyList &props) const
Definition: EBOOKLanguageManager.cpp:209
@ lang
Definition: EBOOKHTMLToken.h:205
#define EBOOK_DEBUG_MSG(M)
Definition: libebook_utils.h:44
EBOOKLanguageManager()
Definition: EBOOKLanguageManager.cpp:92
@ script
Definition: EBOOKHTMLToken.h:127
std::unordered_map< std::string, librevenge::RVNGPropertyList > m_propsMap
Definition: EBOOKLanguageManager.h:47
qi::rule< Iterator, std::pair< int, Attributes_t >, qi::space_type > tag
Definition: TealDocParser.cpp:229
Generated for libe-book by
doxygen 1.8.18