summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-20 23:56:06 +0200
committerEike Rathke <erack@redhat.com>2013-09-21 15:24:42 +0200
commitd1b8398c2f68f50550824cbb47fb188a3a818e62 (patch)
treecda57b2b1b82f9586d1ab22c9057846299cd48e1 /i18nlangtag
parent42dc3847ed7c3c3bcf43ffdb14eafeae17f79b7a (diff)
added operator<() for sorted containers
Change-Id: Iffc3a41df21f2b95054f6f895c9848714ace1de0
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/languagetag/languagetag.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index 054c7c3c154d..be6fa03f13b6 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -2086,6 +2086,12 @@ bool LanguageTag::operator!=( const LanguageTag & rLanguageTag ) const
}
+bool LanguageTag::operator<( const LanguageTag & rLanguageTag ) const
+{
+ return getLanguageType() < rLanguageTag.getLanguageType();
+}
+
+
// static
LanguageTagImpl::Extraction LanguageTagImpl::simpleExtract( const OUString& rBcp47,
OUString& rLanguage, OUString& rScript, OUString& rCountry, OUString& rVariants )