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
62ab5892
Kaydet (Commit)
62ab5892
authored
Ock 06, 2014
tarafından
Philipp Riemer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
translate German variables nUnten, nOben, nMitte
Change-Id: Ib8a1a7dee98f39f3fe10c0244f1888ecc55e7ff3
üst
bf21fbf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
wrong.cxx
sw/source/core/text/wrong.cxx
+18
-18
No files found.
sw/source/core/text/wrong.cxx
Dosyayı görüntüle @
62ab5892
...
...
@@ -185,10 +185,10 @@ sal_Int32 SwWrongList::NextWrong( sal_Int32 nChk ) const
*/
sal_uInt16
SwWrongList
::
GetWrongPos
(
sal_Int32
nValue
)
const
{
sal_uInt16
n
Oben
=
Count
();
sal_uInt16
n
Unte
n
=
0
;
sal_uInt16
n
Max
=
Count
();
sal_uInt16
n
Mi
n
=
0
;
if
(
n
Oben
>
0
)
if
(
n
Max
>
0
)
{
// For smart tag lists, we may not use a binary search. We return the
// position of the first smart tag which coveres nValue
...
...
@@ -203,45 +203,45 @@ sal_uInt16 SwWrongList::GetWrongPos( sal_Int32 nValue ) const
if
(
nSTPos
>
nValue
)
break
;
++
n
Unte
n
;
++
n
Mi
n
;
}
return
n
Unte
n
;
return
n
Mi
n
;
}
--
n
Oben
;
sal_uInt16
nMi
tte
=
0
;
while
(
n
Unten
<=
nOben
)
--
n
Max
;
sal_uInt16
nMi
d
=
0
;
while
(
n
Min
<=
nMax
)
{
nMi
tte
=
nUnten
+
(
nOben
-
nUnte
n
)
/
2
;
const
sal_Int32
nTmp
=
Pos
(
nMi
tte
);
nMi
d
=
nMin
+
(
nMax
-
nMi
n
)
/
2
;
const
sal_Int32
nTmp
=
Pos
(
nMi
d
);
if
(
nTmp
==
nValue
)
{
n
Unten
=
nMitte
;
n
Min
=
nMid
;
break
;
}
else
if
(
nTmp
<
nValue
)
{
if
(
nTmp
+
Len
(
nMi
tte
)
>=
nValue
)
if
(
nTmp
+
Len
(
nMi
d
)
>=
nValue
)
{
n
Unten
=
nMitte
;
n
Min
=
nMid
;
break
;
}
n
Unten
=
nMitte
+
1
;
n
Min
=
nMid
+
1
;
}
else
if
(
nMi
tte
==
0
)
else
if
(
nMi
d
==
0
)
{
break
;
}
else
n
Oben
=
nMitte
-
1
;
n
Max
=
nMid
-
1
;
}
}
// n
Unte
n now points to an index i into the wrong list which
// n
Mi
n now points to an index i into the wrong list which
// 1. nValue is inside [ Area[i].pos, Area[i].pos + Area[i].len ] (inclusive!!!)
// 2. nValue < Area[i].pos
return
n
Unte
n
;
return
n
Mi
n
;
}
void
SwWrongList
::
_Invalidate
(
sal_Int32
nBegin
,
sal_Int32
nEnd
)
...
...
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