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
b641e39d
Kaydet (Commit)
b641e39d
authored
Eyl 03, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
added convertToLanguageTypeWithFallback()
Change-Id: Ib57a7c6fc57192b4a615f5ad0e43c580769513e9
üst
d695e8d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
languagetag.cxx
i18nlangtag/source/languagetag/languagetag.cxx
+7
-0
languagetag.hxx
include/i18nlangtag/languagetag.hxx
+13
-0
No files found.
i18nlangtag/source/languagetag/languagetag.cxx
Dosyayı görüntüle @
b641e39d
...
@@ -1633,4 +1633,11 @@ LanguageType LanguageTag::convertToLanguageType( const OUString& rBcp47, bool bR
...
@@ -1633,4 +1633,11 @@ LanguageType LanguageTag::convertToLanguageType( const OUString& rBcp47, bool bR
return
LanguageTag
(
rBcp47
).
getLanguageType
(
bResolveSystem
);
return
LanguageTag
(
rBcp47
).
getLanguageType
(
bResolveSystem
);
}
}
// static
LanguageType
LanguageTag
::
convertToLanguageTypeWithFallback
(
const
OUString
&
rBcp47
)
{
return
LanguageTag
(
rBcp47
).
makeFallback
().
getLanguageType
(
true
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
include/i18nlangtag/languagetag.hxx
Dosyayı görüntüle @
b641e39d
...
@@ -435,6 +435,19 @@ public:
...
@@ -435,6 +435,19 @@ public:
*/
*/
static
LanguageType
convertToLanguageType
(
const
OUString
&
rBcp47
,
bool
bResolveSystem
=
true
);
static
LanguageType
convertToLanguageType
(
const
OUString
&
rBcp47
,
bool
bResolveSystem
=
true
);
/** Convert BCP 47 string to MS-LangID with fallback, convenience method.
NOTE: exists only for consistency with the other convertTo...()
methods, internally uses a temporary LanguageTag instance for
conversion so does not save anything compared to
LanguageTag(rBcp47).makeFallback().getLanguageType(bResolveSystem).
@see makeFallback()
Always resolves an empty tag to the system locale.
*/
static
LanguageType
convertToLanguageTypeWithFallback
(
const
OUString
&
rBcp47
);
private
:
private
:
enum
Decision
enum
Decision
...
...
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