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
01bde208
Kaydet (Commit)
01bde208
authored
Eyl 20, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
added isOnTheFlyID()
Change-Id: Ifddbec485814e3287e671e6bc4059689ca3f6c93
üst
e81359a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
languagetag.cxx
i18nlangtag/source/languagetag/languagetag.cxx
+11
-0
languagetag.hxx
include/i18nlangtag/languagetag.hxx
+3
-0
No files found.
i18nlangtag/source/languagetag/languagetag.cxx
Dosyayı görüntüle @
01bde208
...
...
@@ -126,6 +126,17 @@ static LanguageType getNextOnTheFlyLanguage()
}
// static
bool
LanguageTag
::
isOnTheFlyID
(
LanguageType
nLang
)
{
LanguageType
nPri
=
MsLangId
::
getPrimaryLanguage
(
nLang
);
LanguageType
nSub
=
MsLangId
::
getSubLanguage
(
nLang
);
return
LANGUAGE_ON_THE_FLY_START
<=
nPri
&&
nPri
<=
LANGUAGE_ON_THE_FLY_END
&&
LANGUAGE_ON_THE_FLY_SUB_START
<=
nSub
&&
nSub
<=
LANGUAGE_ON_THE_FLY_SUB_END
;
}
/** A reference holder for liblangtag data de/initialization, one static
instance. Currently implemented such that the first "ref" inits and dtor
(our library deinitialized) tears down.
...
...
include/i18nlangtag/languagetag.hxx
Dosyayı görüntüle @
01bde208
...
...
@@ -484,6 +484,9 @@ public:
*/
static
com
::
sun
::
star
::
lang
::
Locale
convertToLocaleWithFallback
(
const
OUString
&
rBcp47
);
/** If nLang is a generated on-the-fly LangID */
static
bool
isOnTheFlyID
(
LanguageType
nLang
);
typedef
::
boost
::
shared_ptr
<
LanguageTagImpl
>
ImplPtr
;
private
:
...
...
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