summaryrefslogtreecommitdiff
path: root/src/language.h
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-11-27 22:47:29 +0000
committerterkhen <terkhen@openttd.org>2010-11-27 22:47:29 +0000
commit4b944cb13e6d75662a9246bf06523a320d814ace (patch)
treee33fd0022fdb6fda524161327738ad9c9c5db53d /src/language.h
parentae78847f0fe2c0bde677e4a9f2ae26913b9d0f20 (diff)
downloadopenttd-4b944cb13e6d75662a9246bf06523a320d814ace.tar.xz
(svn r21343) -Add: Function that compares strings using case insensitive natural sort.
Diffstat (limited to 'src/language.h')
-rw-r--r--src/language.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/language.h b/src/language.h
index 5ba424c66..1b4fb497a 100644
--- a/src/language.h
+++ b/src/language.h
@@ -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);