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
01949005
Kaydet (Commit)
01949005
authored
Eyl 18, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
impl getBcp47() always resolves system
Change-Id: Id052b5ed9ec47a2bf02b8707825fdcbbd64af186
üst
5bb3c271
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
languagetag.cxx
i18nlangtag/source/languagetag/languagetag.cxx
+4
-6
No files found.
i18nlangtag/source/languagetag/languagetag.cxx
Dosyayı görüntüle @
01949005
...
...
@@ -238,7 +238,7 @@ private:
mutable
bool
mbCachedCountry
:
1
;
mutable
bool
mbCachedVariants
:
1
;
const
OUString
&
getBcp47
(
bool
bResolveSystem
=
true
)
const
;
const
OUString
&
getBcp47
()
const
;
OUString
getLanguage
()
const
;
OUString
getScript
()
const
;
OUString
getCountry
()
const
;
...
...
@@ -645,7 +645,7 @@ bool LanguageTagImpl::canonicalize()
// Some methods calling canonicalize() (or not calling it due to
// meIsLiblangtagNeeded==DECISION_NO) rely on this! Hence do not set
// meIsLiblangtagNeeded anywhere else than hereafter.
getBcp47
(
true
);
getBcp47
();
// The simple cases and known locales don't need liblangtag processing,
// which also avoids loading liblangtag data on startup.
...
...
@@ -1023,10 +1023,8 @@ void LanguageTag::convertFromRtlLocale()
}
const
OUString
&
LanguageTagImpl
::
getBcp47
(
bool
bResolveSystem
)
const
const
OUString
&
LanguageTagImpl
::
getBcp47
()
const
{
if
(
!
bResolveSystem
&&
mbSystemLocale
)
return
theEmptyBcp47
::
get
();
if
(
!
mbInitializedBcp47
)
{
if
(
mbInitializedLocale
)
...
...
@@ -1046,7 +1044,7 @@ const OUString & LanguageTag::getBcp47( bool bResolveSystem ) const
const_cast
<
LanguageTag
*>
(
this
)
->
syncFromImpl
();
if
(
!
mbInitializedBcp47
)
{
getImpl
()
->
getBcp47
(
bResolveSystem
);
getImpl
()
->
getBcp47
();
const_cast
<
LanguageTag
*>
(
this
)
->
syncFromImpl
();
}
return
maBcp47
;
...
...
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