From 4875278bfb0e4463e35063afc20282fc837731df Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 28 Aug 2013 16:10:18 +0200 Subject: added getVariants() Change-Id: Ib5a880698dd6faea9a5b592221f2b302889bfc24 --- include/i18nlangtag/languagetag.hxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/i18nlangtag') diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx index 1a1d69deaae6..3843493e9282 100644 --- a/include/i18nlangtag/languagetag.hxx +++ b/include/i18nlangtag/languagetag.hxx @@ -184,6 +184,16 @@ public: */ OUString getRegion() const; + /** Get BCP 47 variant subtags, of the IANA Language Subtag Registry. + + If there are multiple variant subtags they are separated by '-'. + + This is NOT related to Locale.Variant! + + Always resolves an empty tag to the system locale. + */ + OUString getVariants() const; + /** Get a GLIBC locale string. Always resolves an empty tag to the system locale. @@ -483,6 +493,7 @@ private: OUString getLanguageFromLangtag(); OUString getScriptFromLangtag(); OUString getRegionFromLangtag(); + OUString getVariantsFromLangtag(); void resetVars(); -- cgit