17 #include <unicode/coll.h> 27 static const uint32
IDENT = 0x474E414C;
72 if (strcmp(gender_str, this->genders[i]) == 0)
return i;
85 if (strcmp(case_str, this->cases[i]) == 0)
return i;
Simple vector class that allows allocating an item without the need to copy this->data needlessly...
const LanguageMetadata * _current_language
The currently loaded language.
LanguageList _languages
The actual list of language meta data.
Simple vector template class.
const LanguageMetadata * GetLanguage(byte newgrflangid)
Get the language with the given NewGRF language ID.
bool ReadLanguagePack(const LanguageMetadata *lang)
Read a particular language.
SmallVector< LanguageMetadata, 4 > LanguageList
Type for the list of language meta data.
static const uint8 MAX_NUM_GENDERS
Maximum number of supported genders.
static const uint8 MAX_NUM_CASES
Maximum number of supported cases.
static const uint8 CASE_GENDER_LEN
The (maximum) length of a case/gender string.
assert_compile(sizeof(LanguagePackHeader) % 4==0)
Make sure the size is right.
Collator * _current_collator
Collator for the language currently in use.
Types related to strings.