|
OpenTTD Source 20260421-master-gc2fbc6fdeb
|
Helper for searching through the language pack. More...
Public Member Functions | |
| LanguagePackGlyphSearcher () | |
| Create this language pack glyph searcher. | |
| Public Member Functions inherited from BaseStringMissingGlyphSearcher | |
| BaseStringMissingGlyphSearcher (FontSizes fontsizes) | |
| Create this string glyph searcher. | |
| void | DetermineRequiredGlyphs (FontSizes fontsizes) override |
| Determine set of glyphs required for the current language. | |
| Public Member Functions inherited from MissingGlyphSearcher | |
| MissingGlyphSearcher (FontSizes fontsizes) | |
| Create this glyph searcher. | |
| virtual | ~MissingGlyphSearcher ()=default |
| Ensure the destructor of the sub classes are called as well. | |
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 | |
| Data Fields inherited from MissingGlyphSearcher | |
| const FontSizes | fontsizes |
| Font sizes this searcher will try to find. | |
| FontSizes | missing_fontsizes {} |
| Font sizes to actually search for. | |
| std::set< char32_t > | missing_glyphs {} |
| Glyphs to search for. | |
Helper for searching through the language pack.
Definition at line 2337 of file strings.cpp.
|
inline |
Create this language pack glyph searcher.
Definition at line 2342 of file strings.cpp.
References BaseStringMissingGlyphSearcher::BaseStringMissingGlyphSearcher(), and FONTSIZES_REQUIRED.
|
inlineoverrideprivatevirtual |
Get the default (font) size of the string.
Implements BaseStringMissingGlyphSearcher.
Definition at line 2354 of file strings.cpp.
References Normal.
|
inlineoverrideprivatevirtual |
Get the next string to search through.
Implements BaseStringMissingGlyphSearcher.
Definition at line 2359 of file strings.cpp.
References i, and TEXT_TAB_END.
|
inlineoverrideprivatevirtual |
Reset the search, i.e.
begin from the beginning again.
Implements BaseStringMissingGlyphSearcher.
Definition at line 2348 of file strings.cpp.
|
private |
Iterator for the primary language tables.
Definition at line 2345 of file strings.cpp.
Referenced by NextString().
|
private |
Iterator for the secondary language tables.
Definition at line 2346 of file strings.cpp.