diff options
author | Eike Rathke <erack@redhat.com> | 2013-04-04 21:27:53 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-04-05 14:52:45 +0200 |
commit | babbd149aa9b2b5a28c55cb38fbbe24586bf8e22 (patch) | |
tree | af9ad4be57671256120d5af4ef63468e40e458db /i18npool/inc | |
parent | 9d073bcba10b9cbcd56ad58cf5b19bbb129567a8 (diff) |
added the dreaded jolly joker
Change-Id: I1bd840391496daab2cfe32af6ac00e98de3ed72e
Diffstat (limited to 'i18npool/inc')
-rw-r--r-- | i18npool/inc/i18npool/lang.h | 1 | ||||
-rw-r--r-- | i18npool/inc/i18npool/languagetag.hxx | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/i18npool/inc/i18npool/lang.h b/i18npool/inc/i18npool/lang.h index e3643fc1cf15..81a6d87f74c9 100644 --- a/i18npool/inc/i18npool/lang.h +++ b/i18npool/inc/i18npool/lang.h @@ -555,6 +555,7 @@ typedef unsigned short LanguageType; #define LANGUAGE_USER_YOMBE_CONGO 0x8284 /* makeLangID( 0x20, getPrimaryLanguage( LANGUAGE_USER_YOMBE)) */ #define LANGUAGE_USER_SIDAMA 0x0685 +#define LANGUAGE_USER_PRIV_JOKER 0xFFEB /* privateuse "*" (sic! bad! nasty!), primary 0x3eb, sub 0x3f */ #define LANGUAGE_USER_PRIV_COMMENT 0xFFEC /* privateuse "x-comment", primary 0x3ec, sub 0x3f */ #define LANGUAGE_USER_PRIV_DEFAULT 0xFFED /* privateuse "x-default", primary 0x3ed, sub 0x3f */ #define LANGUAGE_USER_PRIV_NOTRANSLATE 0xFFEE /* privateuse "x-no-translate" (sic!), primary 0x3ee, sub 0x3f */ diff --git a/i18npool/inc/i18npool/languagetag.hxx b/i18npool/inc/i18npool/languagetag.hxx index 0bba7a1afbe3..c3d605571c90 100644 --- a/i18npool/inc/i18npool/languagetag.hxx +++ b/i18npool/inc/i18npool/languagetag.hxx @@ -376,7 +376,8 @@ private: { EXTRACTED_NONE, EXTRACTED_LSC, - EXTRACTED_X + EXTRACTED_X, + EXTRACTED_X_JOKER }; /** Of a simple language tag of the form lll[-Ssss][-CC] (i.e. one that @@ -385,7 +386,8 @@ private: Does not check case or content! @return EXTRACTED_LSC if simple tag was detected, EXTRACTED_X if x-... - privateuse tag was detected, else EXTRACTED_NONE. + privateuse tag was detected, EXTRACTED_X_JOKER if "*" joker was + detected, else EXTRACTED_NONE. */ static Extraction simpleExtract( const OUString& rBcp47, OUString& rLanguage, |