diff options
author | Eike Rathke <erack@redhat.com> | 2013-08-28 16:10:18 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-08-28 17:58:13 +0200 |
commit | 4875278bfb0e4463e35063afc20282fc837731df (patch) | |
tree | 60725aa34a02df8ba0583623c8c7ac572c47a8a5 /include | |
parent | 923d4435cc433e818f653f80ef21826967125f67 (diff) |
added getVariants()
Change-Id: Ib5a880698dd6faea9a5b592221f2b302889bfc24
Diffstat (limited to 'include')
-rw-r--r-- | include/i18nlangtag/languagetag.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
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(); |