summaryrefslogtreecommitdiff
path: root/include/i18nlangtag/languagetag.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/i18nlangtag/languagetag.hxx')
-rw-r--r--include/i18nlangtag/languagetag.hxx11
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();