Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
fb26196c
Kaydet (Commit)
fb26196c
authored
Mar 13, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
added LanguageTag::equals(), fdo#62278 related
Change-Id: I6471f8eaa46d9203c75569436b233a09fe337910
üst
6ecfbf15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
languagetag.hxx
i18npool/inc/i18npool/languagetag.hxx
+22
-2
languagetag.cxx
i18npool/source/languagetag/languagetag.cxx
+7
-0
No files found.
i18npool/inc/i18npool/languagetag.hxx
Dosyayı görüntüle @
fb26196c
...
...
@@ -236,10 +236,30 @@ public:
*/
::
std
::
vector
<
OUString
>
getFallbackStrings
()
const
;
/* Test equality of two LangageTag. */
/** Test equality of two LanguageTag, possibly resolving system locale.
@param bResolveSystem
If TRUE, resolve empty language tags denoting the system
locale to the real locale used before comparing.
If FALSE, the behavior is identical to operator==(), system
locales are not resolved first.
*/
bool
equals
(
const
LanguageTag
&
rLanguageTag
,
bool
bResolveSystem
=
false
)
const
;
/** Test equality of two LanguageTag.
Does NOT resolve system, i.e. if the system locale is en-US
LanguageTag("")==LanguageTag("en-US") returns false! Use
equals(...,true) instead if system locales shall be resolved.
*/
bool
operator
==
(
const
LanguageTag
&
rLanguageTag
)
const
;
/* Test inequality of two LangageTag. */
/** Test inequality of two LanguageTag.
Does NOT resolve system, i.e. if the system locale is en-US
LanguageTag("")!=LanguageTag("en-US") returns true! Use
!equals(,...true) instead if system locales shall be resolved.
*/
bool
operator
!=
(
const
LanguageTag
&
rLanguageTag
)
const
;
private
:
...
...
i18npool/source/languagetag/languagetag.cxx
Dosyayı görüntüle @
fb26196c
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment