LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
LIEF::PE::LangCodeItem Class Reference

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

#include <LangCodeItem.hpp>

Inheritance diagram for LIEF::PE::LangCodeItem:
Inheritance graph
[legend]
Collaboration diagram for LIEF::PE::LangCodeItem:
Collaboration graph
[legend]

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 (uint16_t type, std::u16string key)
 
 LangCodeItem (const LangCodeItem &)
 
LangCodeItemoperator= (const LangCodeItem &)
 
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_t & items () const
 
items_t & items ()
 
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 (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
 

Detailed Description

Class which represents the childs of the ResourceStringFileInfo.

See also
: LIEF::PE::ResourceStringFileInfo
: https://docs.microsoft.com/en-us/windows/win32/menurc/stringtable

Member Function Documentation

◆ accept()

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

Implements LIEF::Object.

◆ key()

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

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

◆ type()

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

The type of data in the version resource.

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

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