summaryrefslogtreecommitdiff
path: root/i18npool/source
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-03-13 16:35:46 +0100
committerEike Rathke <erack@redhat.com>2013-03-13 16:48:12 +0100
commitfb26196ce64979ab6dc6c82c0fbdeedb126a3433 (patch)
treeac64c22c90d8ac98e9ae0346e39bbefb5e4ec119 /i18npool/source
parent6ecfbf153a7c11c63d208630ac6a27064058099d (diff)
added LanguageTag::equals(), fdo#62278 related
Change-Id: I6471f8eaa46d9203c75569436b233a09fe337910
Diffstat (limited to 'i18npool/source')
-rw-r--r--i18npool/source/languagetag/languagetag.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/i18npool/source/languagetag/languagetag.cxx b/i18npool/source/languagetag/languagetag.cxx
index c51096255a32..238627415400 100644
--- a/i18npool/source/languagetag/languagetag.cxx
+++ b/i18npool/source/languagetag/languagetag.cxx
@@ -1094,6 +1094,13 @@ LanguageTag & LanguageTag::makeFallback()
}
+bool LanguageTag::equals( const LanguageTag & rLanguageTag, bool bResolveSystem ) const
+{
+ // Compare full language tag strings.
+ return getBcp47( bResolveSystem) == rLanguageTag.getBcp47( bResolveSystem);
+}
+
+
bool LanguageTag::operator==( const LanguageTag & rLanguageTag ) const
{
// Compare full language tag strings but SYSTEM unresolved.