summaryrefslogtreecommitdiffstats
path: root/i18npool/inc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-02-16 00:49:29 +0100
committerEike Rathke <erack@redhat.com>2013-02-18 17:51:20 +0100
commitca04dec8b9670d936395771da43818f00e670482 (patch)
tree405bf1c9bfb51b390164012b559691d5ca03963f /i18npool/inc
parentadded i18n section (diff)
downloadcore-ca04dec8b9670d936395771da43818f00e670482.tar.gz
core-ca04dec8b9670d936395771da43818f00e670482.zip
added LanguageTag::hasScript()
Change-Id: If9eaca46ef8daa544ee208444f79423122b10739
Diffstat (limited to 'i18npool/inc')
-rw-r--r--i18npool/inc/i18npool/languagetag.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/i18npool/inc/i18npool/languagetag.hxx b/i18npool/inc/i18npool/languagetag.hxx
index bb86b72262f0..3394c1b99fa8 100644
--- a/i18npool/inc/i18npool/languagetag.hxx
+++ b/i18npool/inc/i18npool/languagetag.hxx
@@ -127,6 +127,8 @@ public:
/** Get ISO 15924 script code, if not the default script according to
BCP 47. For default script an empty string is returned.
+ @see hasScript()
+
Always resolves an empty tag to the system locale.
*/
rtl::OUString getScript() const;
@@ -134,6 +136,8 @@ public:
/** Get combined language and script code, separated by '-' if
non-default script, if default script only language.
+ @see hasScript()
+
Always resolves an empty tag to the system locale.
*/
rtl::OUString getLanguageAndScript() const;
@@ -152,6 +156,10 @@ public:
*/
rtl::OUString getRegion() const;
+ /** If language tag has a non-default script specified.
+ */
+ bool hasScript() const;
+
/** If language tag is a locale that can be expressed using only ISO 639
language codes and ISO 3166 country codes, thus is convertible to a
conforming Locale struct without using extension mechanisms.