16#ifndef LIEF_PE_RESOURCE_LANG_CODE_ITEM_H
17#define LIEF_PE_RESOURCE_LANG_CODE_ITEM_H
19#include <unordered_map>
30class ResourcesManager;
31struct ResourcesParser;
40 friend struct ResourcesParser;
43 using items_t = std::unordered_map<std::u16string, std::u16string>;
66 const std::u16string&
key()
const {
92 void key(
const std::u16string& key) {
95 void key(
const std::string& key);
Class which represents the childs of the ResourceStringFileInfo.
Definition LangCodeItem.hpp:37
items_t & items()
Definition LangCodeItem.hpp:84
void type(uint16_t type)
Definition LangCodeItem.hpp:88
void sublang(uint32_t lang)
void items(const items_t &items)
CODE_PAGES code_page() const
Code page for which LangCodeItem::items are defined
void code_page(CODE_PAGES code_page)
const std::u16string & key() const
A 8-digit hexadecimal number stored as an Unicode string.
Definition LangCodeItem.hpp:66
void key(const std::string &key)
LangCodeItem(uint16_t type, std::u16string key)
Definition LangCodeItem.hpp:45
const items_t & items() const
Definition LangCodeItem.hpp:80
std::unordered_map< std::u16string, std::u16string > items_t
Definition LangCodeItem.hpp:43
void key(const std::u16string &key)
Definition LangCodeItem.hpp:92
LangCodeItem & operator=(const LangCodeItem &)=default
uint32_t sublang() const
Sublang for which LangCodeItem::items are defined.
uint16_t type() const
The type of data in the version resource.
Definition LangCodeItem.hpp:57
LangCodeItem(const LangCodeItem &)=default
friend std::ostream & operator<<(std::ostream &os, const LangCodeItem &item)
void accept(Visitor &visitor) const override
~LangCodeItem() override=default
uint32_t lang() const
Lang for which LangCodeItem::items are defined.
The Resource Manager provides an enhanced API to manipulate the resource tree.
Definition ResourcesManager.hpp:38
Definition Visitor.hpp:224
CODE_PAGES
Code page from https://docs.microsoft.com/en-us/windows/win32/intl/code-page-identifiers.
Definition PE/enums.hpp:333
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41