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
f1beaad9
Kaydet (Commit)
f1beaad9
authored
Kas 24, 2012
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
some more LocaleToLanguage() replacement
Change-Id: Idde3595e92744a8bfc81a0c4714fde67e2220ea5
üst
cf0a7fe1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
macspellimp.mm
lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+2
-2
sspellimp.cxx
linguistic/workben/sspellimp.cxx
+2
-2
No files found.
lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
Dosyayı görüntüle @
f1beaad9
...
@@ -296,7 +296,7 @@ sal_Bool SAL_CALL
...
@@ -296,7 +296,7 @@ sal_Bool SAL_CALL
sal_Int16 nFailure = GetSpellFailure( rWord, rLocale );
sal_Int16 nFailure = GetSpellFailure( rWord, rLocale );
if (nFailure != -1)
if (nFailure != -1)
{
{
sal_Int16 nLang = L
ocaleToLanguage( rLocale
);
sal_Int16 nLang = L
anguageTag( rLocale ).getLanguageType(
);
// postprocess result for errors that should be ignored
// postprocess result for errors that should be ignored
if ( (!rHelper.IsSpellUpperCase() && IsUpper( rWord, nLang ))
if ( (!rHelper.IsSpellUpperCase() && IsUpper( rWord, nLang ))
|| (!rHelper.IsSpellWithDigits() && HasDigits( rWord ))
|| (!rHelper.IsSpellWithDigits() && HasDigits( rWord ))
...
@@ -320,7 +320,7 @@ Reference< XSpellAlternatives >
...
@@ -320,7 +320,7 @@ Reference< XSpellAlternatives >
Reference< XSpellAlternatives > xRes;
Reference< XSpellAlternatives > xRes;
// note: mutex is held by higher up by spell which covers both
// note: mutex is held by higher up by spell which covers both
sal_Int16 nLang = L
ocaleToLanguage( rLocale
);
sal_Int16 nLang = L
anguageTag( rLocale ).getLanguageType(
);
int count;
int count;
Sequence< OUString > aStr( 0 );
Sequence< OUString > aStr( 0 );
...
...
linguistic/workben/sspellimp.cxx
Dosyayı görüntüle @
f1beaad9
...
@@ -185,7 +185,7 @@ sal_Bool SAL_CALL
...
@@ -185,7 +185,7 @@ sal_Bool SAL_CALL
sal_Int16
nFailure
=
GetSpellFailure
(
rWord
,
rLocale
);
sal_Int16
nFailure
=
GetSpellFailure
(
rWord
,
rLocale
);
if
(
nFailure
!=
-
1
)
if
(
nFailure
!=
-
1
)
{
{
sal_Int16
nLang
=
L
ocaleToLanguage
(
rLocale
);
sal_Int16
nLang
=
L
anguageTag
(
rLocale
).
getLanguageType
(
);
// postprocess result for errors that should be ignored
// postprocess result for errors that should be ignored
if
(
(
!
rHelper
.
IsSpellUpperCase
()
&&
IsUpper
(
rWord
,
nLang
))
if
(
(
!
rHelper
.
IsSpellUpperCase
()
&&
IsUpper
(
rWord
,
nLang
))
||
(
!
rHelper
.
IsSpellWithDigits
()
&&
HasDigits
(
rWord
))
||
(
!
rHelper
.
IsSpellWithDigits
()
&&
HasDigits
(
rWord
))
...
@@ -214,7 +214,7 @@ Reference< XSpellAlternatives >
...
@@ -214,7 +214,7 @@ Reference< XSpellAlternatives >
String
aTmp
(
rWord
);
String
aTmp
(
rWord
);
if
(
aTmp
.
Len
())
if
(
aTmp
.
Len
())
{
{
sal_Int16
nLang
=
L
ocaleToLanguage
(
rLocale
);
sal_Int16
nLang
=
L
anguageTag
(
rLocale
).
getLanguageType
(
);
if
(
STRING_NOTFOUND
!=
aTmp
.
SearchAscii
(
"liss"
))
if
(
STRING_NOTFOUND
!=
aTmp
.
SearchAscii
(
"liss"
))
{
{
...
...
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