LIEF: Library to Instrument Executable Formats Version 0.15.1
Loading...
Searching...
No Matches
LIEF::PE::LangCodeItem Class Reference

Class which represents the childs of the ResourceStringFileInfo. More...

#include <LangCodeItem.hpp>

Inheritance diagram for LIEF::PE::LangCodeItem:
Collaboration diagram for LIEF::PE::LangCodeItem:

Public Types

using items_t = std::unordered_map<std::u16string, std::u16string>
 
- Public Types inherited from LIEF::Object
template<class T >
using output_t = add_pointer_t<decay_t<T>>
 
template<class T >
using output_const_t = add_pointer_t<add_const_t<decay_t<T>>>
 

Public Member Functions

 LangCodeItem ()
 
 LangCodeItem (uint16_t type, std::u16string key)
 
 LangCodeItem (const LangCodeItem &)=default
 
LangCodeItemoperator= (const LangCodeItem &)=default
 
 ~LangCodeItem () override=default
 
uint16_t type () const
 The type of data in the version resource.
 
const std::u16string & key () const
 A 8-digit hexadecimal number stored as an Unicode string.
 
CODE_PAGES code_page () const
 Code page for which LangCodeItem::items are defined
 
uint32_t lang () const
 Lang for which LangCodeItem::items are defined.
 
uint32_t sublang () const
 Sublang for which LangCodeItem::items are defined.
 
const items_titems () const
 
items_titems ()
 
void type (uint16_t type)
 
void key (const std::u16string &key)
 
void key (const std::string &key)
 
void code_page (CODE_PAGES code_page)
 
void lang (uint32_t lang)
 
void sublang (uint32_t lang)
 
void items (const items_t &items)
 
void accept (Visitor &visitor) const override
 
- Public Member Functions inherited from LIEF::Object
 Object ()
 
 Object (const Object &other)
 
Objectoperator= (const Object &other)
 
template<class T >
output_t< T > as ()
 
template<class T >
output_const_t< T > as () const
 
virtual bool operator== (const Object &other) const
 
virtual bool operator!= (const Object &other) const
 
virtual ~Object ()
 

Detailed Description

Member Typedef Documentation

◆ items_t

using LIEF::PE::LangCodeItem::items_t = std::unordered_map<std::u16string, std::u16string>

Constructor & Destructor Documentation

◆ LangCodeItem() [1/3]

LIEF::PE::LangCodeItem::LangCodeItem ( )

◆ LangCodeItem() [2/3]

LIEF::PE::LangCodeItem::LangCodeItem ( uint16_t type,
std::u16string key )
inline

◆ LangCodeItem() [3/3]

LIEF::PE::LangCodeItem::LangCodeItem ( const LangCodeItem & )
default

◆ ~LangCodeItem()

LIEF::PE::LangCodeItem::~LangCodeItem ( )
overridedefault

Member Function Documentation

◆ accept()

void LIEF::PE::LangCodeItem::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.

◆ code_page() [1/2]

CODE_PAGES LIEF::PE::LangCodeItem::code_page ( ) const

Code page for which LangCodeItem::items are defined

◆ code_page() [2/2]

void LIEF::PE::LangCodeItem::code_page ( CODE_PAGES code_page)

◆ items() [1/3]

items_t & LIEF::PE::LangCodeItem::items ( )
inline

◆ items() [2/3]

const items_t & LIEF::PE::LangCodeItem::items ( ) const
inline

◆ items() [3/3]

void LIEF::PE::LangCodeItem::items ( const items_t & items)

◆ key() [1/3]

const std::u16string & LIEF::PE::LangCodeItem::key ( ) const
inline

A 8-digit hexadecimal number stored as an Unicode string.

  • The four most significant digits represent the language identifier.
  • The four least significant digits represent the code page for which the data is formatted.
See also
LangCodeItem::code_page, LangCodeItem::lang, LangCodeItem::sublang

◆ key() [2/3]

void LIEF::PE::LangCodeItem::key ( const std::string & key)

◆ key() [3/3]

void LIEF::PE::LangCodeItem::key ( const std::u16string & key)
inline

◆ lang() [1/2]

uint32_t LIEF::PE::LangCodeItem::lang ( ) const

Lang for which LangCodeItem::items are defined.

◆ lang() [2/2]

void LIEF::PE::LangCodeItem::lang ( uint32_t lang)

◆ operator=()

LangCodeItem & LIEF::PE::LangCodeItem::operator= ( const LangCodeItem & )
default

◆ sublang() [1/2]

uint32_t LIEF::PE::LangCodeItem::sublang ( ) const

Sublang for which LangCodeItem::items are defined.

◆ sublang() [2/2]

void LIEF::PE::LangCodeItem::sublang ( uint32_t lang)

◆ type() [1/2]

uint16_t LIEF::PE::LangCodeItem::type ( ) const
inline

The type of data in the version resource.

  • 1 if it contains text data
  • 0 if it contains binary data

◆ type() [2/2]

void LIEF::PE::LangCodeItem::type ( uint16_t type)
inline

The documentation for this class was generated from the following file: