diff options
author | Eike Rathke <erack@redhat.com> | 2013-03-27 20:23:08 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-03-27 20:38:19 +0100 |
commit | d35ed10d1d75c6ce3a850e844a931b95c12cd127 (patch) | |
tree | edddaeeed5608df8ff96c5f7874c88e9826a226b /i18npool/inc | |
parent | handle x-... privateuse conversion (diff) | |
download | core-d35ed10d1d75c6ce3a850e844a931b95c12cd127.tar.gz core-d35ed10d1d75c6ce3a850e844a931b95c12cd127.zip |
handle x-... privateuse
Change-Id: I9ff44e7f3d3fd8fccc5b7134c18184040f797826
Diffstat (limited to 'i18npool/inc')
-rw-r--r-- | i18npool/inc/i18npool/languagetag.hxx | 18 |
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 |