forked from mirror/OpenTTD
(svn r21343) -Add: Function that compares strings using case insensitive natural sort.
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
#define LANGUAGE_H
|
||||
|
||||
#include "core/smallvec_type.hpp"
|
||||
#ifdef WITH_ICU
|
||||
#include <unicode/coll.h>
|
||||
#endif /* WITH_ICU */
|
||||
|
||||
static const uint8 CASE_GENDER_LEN = 16; ///< The (maximum) length of a case/gender string.
|
||||
static const uint8 MAX_NUM_GENDERS = 8; ///< Maximum number of supported genders.
|
||||
@@ -102,6 +105,10 @@ extern LanguageList _languages;
|
||||
/** The currently loaded language. */
|
||||
extern const LanguageMetadata *_current_language;
|
||||
|
||||
#ifdef WITH_ICU
|
||||
extern Collator *_current_collator;
|
||||
#endif /* WITH_ICU */
|
||||
|
||||
bool ReadLanguagePack(const LanguageMetadata *lang);
|
||||
const LanguageMetadata *GetLanguage(byte newgrflangid);
|
||||
|
||||
|
Reference in New Issue
Block a user