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
b0caeafc
Kaydet (Commit)
b0caeafc
authored
Eki 05, 2013
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bail out early and minor optimizations
Change-Id: Iec521a951e53386fc2bd780926d4a372e5fb05bc
üst
d72c7903
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
docedt.cxx
sw/source/core/doc/docedt.cxx
+8
-10
No files found.
sw/source/core/doc/docedt.cxx
Dosyayı görüntüle @
b0caeafc
...
@@ -2124,7 +2124,6 @@ uno::Reference< XHyphenatedWord > SwDoc::Hyphenate(
...
@@ -2124,7 +2124,6 @@ uno::Reference< XHyphenatedWord > SwDoc::Hyphenate(
static
bool
lcl_GetTokenToParaBreak
(
OUString
&
rStr
,
OUString
&
rRet
,
bool
bRegExpRplc
)
static
bool
lcl_GetTokenToParaBreak
(
OUString
&
rStr
,
OUString
&
rRet
,
bool
bRegExpRplc
)
{
{
bool
bRet
=
false
;
if
(
bRegExpRplc
)
if
(
bRegExpRplc
)
{
{
sal_Int32
nPos
=
0
;
sal_Int32
nPos
=
0
;
...
@@ -2139,24 +2138,23 @@ static bool lcl_GetTokenToParaBreak( OUString& rStr, OUString& rRet, bool bRegEx
...
@@ -2139,24 +2138,23 @@ static bool lcl_GetTokenToParaBreak( OUString& rStr, OUString& rRet, bool bRegEx
// Has this been escaped?
// Has this been escaped?
if
(
nPos
&&
'\\'
==
rStr
[
nPos
-
1
])
if
(
nPos
&&
'\\'
==
rStr
[
nPos
-
1
])
{
{
if
(
++
nPos
>=
rStr
.
getLength
()
)
nPos
+=
sPara
.
getLength
();
if
(
nPos
>=
rStr
.
getLength
()
)
{
break
;
break
;
}
}
}
else
else
{
{
rRet
=
rStr
.
copy
(
0
,
nPos
);
rRet
=
rStr
.
copy
(
0
,
nPos
);
rStr
=
rStr
.
copy
(
nPos
+
sPara
.
getLength
()
);
rStr
=
rStr
.
copy
(
nPos
+
sPara
.
getLength
()
);
bRet
=
true
;
return
true
;
break
;
}
}
}
}
}
}
if
(
!
bRet
)
rRet
=
rStr
;
{
rStr
=
OUString
();
rRet
=
rStr
;
return
false
;
rStr
=
OUString
();
}
return
bRet
;
}
}
bool
SwDoc
::
ReplaceRange
(
SwPaM
&
rPam
,
const
OUString
&
rStr
,
bool
SwDoc
::
ReplaceRange
(
SwPaM
&
rPam
,
const
OUString
&
rStr
,
...
...
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