summaryrefslogtreecommitdiff
path: root/i18npool/inc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-03-27 20:23:08 +0100
committerEike Rathke <erack@redhat.com>2013-03-27 20:38:19 +0100
commitd35ed10d1d75c6ce3a850e844a931b95c12cd127 (patch)
treeedddaeeed5608df8ff96c5f7874c88e9826a226b /i18npool/inc
parent46f47a6ec28dda0436b9c4fb54628a6e2e191285 (diff)
handle x-... privateuse
Change-Id: I9ff44e7f3d3fd8fccc5b7134c18184040f797826
Diffstat (limited to 'i18npool/inc')
-rw-r--r--i18npool/inc/i18npool/languagetag.hxx18
1 files changed, 13 insertions, 5 deletions
diff --git a/i18npool/inc/i18npool/languagetag.hxx b/i18npool/inc/i18npool/languagetag.hxx
index 5b88542b7b71..4d99e72d193f 100644
--- a/i18npool/inc/i18npool/languagetag.hxx
+++ b/i18npool/inc/i18npool/languagetag.hxx
@@ -319,17 +319,25 @@ private:
static bool isIsoScript( const OUString& rScript );
static bool isIsoCountry( const OUString& rRegion );
+ enum Extraction
+ {
+ EXTRACTED_NONE,
+ EXTRACTED_LSC,
+ EXTRACTED_X
+ };
+
/** Of a simple language tag of the form lll[-Ssss][-CC] (i.e. one that
would fulfill the isIsoODF() condition) extract the portions.
Does not check case or content!
- @return TRUE if it detected a simple tag, else FALSE.
+ @return EXTRACTED_LSC if simple tag was detected, EXTRACTED_X if x-...
+ privateuse tag was detected, else EXTRACTED_NONE.
*/
- static bool simpleExtract( const OUString& rBcp47,
- OUString& rLanguage,
- OUString& rScript,
- OUString& rCountry );
+ static Extraction simpleExtract( const OUString& rBcp47,
+ OUString& rLanguage,
+ OUString& rScript,
+ OUString& rCountry );
};
#endif // INCLUDED_I18NPOOL_LANGUAGETAG_HXX