LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_PE_RESOURCE_LANG_CODE_ITEM_H
17#define LIEF_PE_RESOURCE_LANG_CODE_ITEM_H
19#include <unordered_map>
31struct ResourcesParser;
39 friend class ResourcesManager;
40 friend struct ResourcesParser;
43 using items_t = std::unordered_map<std::u16string, std::u16string>;
51 LangCodeItem&
operator=(
const LangCodeItem&) =
default;
53 uint16_t
type()
const {
60 const std::u16string&
key()
const {
73 uint32_t
lang()
const;
92 void key(
const std::u16string& key) {
95 void key(
const std::string& key);
103 void accept(Visitor& visitor)
const override;
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
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
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
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:36
#define LIEF_API
Definition visibility.h:41