OpenTTD Source 20260917-master-gec444f7315
LanguagePackGlyphSearcher Class Reference

Helper for searching through the language pack. More...

Inheritance diagram for LanguagePackGlyphSearcher:
BaseStringMissingGlyphSearcher MissingGlyphSearcher

Private Member Functions

void Reset () override
 Reset the search, i.e.
FontSize DefaultSize () override
 Get the default (font) size of the string.
std::optional< std::string_view > NextString () override
 Get the next string to search through.

Private Attributes

uint i
 Iterator for the primary language tables.
uint j
 Iterator for the secondary language tables.

Additional Inherited Members

Public Member Functions inherited from BaseStringMissingGlyphSearcher
void DetermineRequiredGlyphs (FontSizes fontsizes) override
 Determine set of glyphs required for the current language.
Public Member Functions inherited from MissingGlyphSearcher
virtual ~MissingGlyphSearcher ()=default
 Ensure the destructor of the sub classes are called as well.
Data Fields inherited from MissingGlyphSearcher
FontSizes missing_fontsizes {}
 Font sizes to actually search for.
std::set< char32_t > missing_glyphs {}
 Glyphs to search for.

Detailed Description

Helper for searching through the language pack.

Definition at line 2333 of file strings.cpp.

Member Function Documentation

◆ DefaultSize()

FontSize LanguagePackGlyphSearcher::DefaultSize ( )
inlineoverrideprivatevirtual

Get the default (font) size of the string.

Returns
The font size.

Implements BaseStringMissingGlyphSearcher.

Definition at line 2344 of file strings.cpp.

References Normal.

◆ NextString()

std::optional< std::string_view > LanguagePackGlyphSearcher::NextString ( )
inlineoverrideprivatevirtual

Get the next string to search through.

Returns
The next string or nullopt if there is none.

Implements BaseStringMissingGlyphSearcher.

Definition at line 2349 of file strings.cpp.

References i, and TEXT_TAB_END.

◆ Reset()

void LanguagePackGlyphSearcher::Reset ( )
inlineoverrideprivatevirtual

Reset the search, i.e.

begin from the beginning again.

Implements BaseStringMissingGlyphSearcher.

Definition at line 2338 of file strings.cpp.

Field Documentation

◆ i

uint LanguagePackGlyphSearcher::i
private

Iterator for the primary language tables.

Definition at line 2335 of file strings.cpp.

Referenced by NextString().

◆ j

uint LanguagePackGlyphSearcher::j
private

Iterator for the secondary language tables.

Definition at line 2336 of file strings.cpp.


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