(svn r21343) -Add: Function that compares strings using case insensitive natural sort.

This commit is contained in:
terkhen
2010-11-27 22:47:29 +00:00
parent ae78847f0f
commit 4b944cb13e
6 changed files with 79 additions and 4 deletions

View File

@@ -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);