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
5167539b
Kaydet (Commit)
5167539b
authored
Eyl 14, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: fdo#38838 one UniString::Search variant now unused
Change-Id: Id0b7b9bf53985f0692cd446a528274fb2009d33e
üst
767a65d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
44 deletions
+1
-44
string.hxx
include/tools/string.hxx
+1
-1
strimp.cxx
tools/source/string/strimp.cxx
+0
-42
unusedcode.easy
unusedcode.easy
+0
-1
No files found.
include/tools/string.hxx
Dosyayı görüntüle @
5167539b
...
...
@@ -137,6 +137,7 @@ private:
TOOLS_DLLPRIVATE
sal_Bool
Equals
(
const
sal_Unicode
*
pCharStr
,
xub_StrLen
nIndex
,
xub_StrLen
nLen
)
const
;
TOOLS_DLLPRIVATE
sal_Bool
EqualsIgnoreCaseAscii
(
const
sal_Unicode
*
pCharStr
)
const
;
TOOLS_DLLPRIVATE
xub_StrLen
Search
(
const
sal_Unicode
*
pCharStr
,
xub_StrLen
nIndex
=
0
)
const
;
public
:
UniString
();
UniString
(
const
ResId
&
rResId
);
...
...
@@ -250,7 +251,6 @@ public:
xub_StrLen
Search
(
sal_Unicode
c
,
xub_StrLen
nIndex
=
0
)
const
;
xub_StrLen
Search
(
const
UniString
&
rStr
,
xub_StrLen
nIndex
=
0
)
const
;
xub_StrLen
Search
(
const
sal_Unicode
*
pCharStr
,
xub_StrLen
nIndex
=
0
)
const
;
xub_StrLen
SearchAscii
(
const
sal_Char
*
pAsciiStr
,
xub_StrLen
nIndex
=
0
)
const
;
xub_StrLen
SearchBackward
(
sal_Unicode
c
,
xub_StrLen
nIndex
=
STRING_LEN
)
const
;
...
...
tools/source/string/strimp.cxx
Dosyayı görüntüle @
5167539b
...
...
@@ -428,48 +428,6 @@ xub_StrLen STRING::Search( const STRING& rStr, xub_StrLen nIndex ) const
return
STRING_NOTFOUND
;
}
xub_StrLen
STRING
::
Search
(
const
STRCODE
*
pCharStr
,
xub_StrLen
nIndex
)
const
{
DBG_CHKTHIS
(
STRING
,
DBGCHECKSTRING
);
sal_Int32
nLen
=
mpData
->
mnLen
;
xub_StrLen
nStrLen
=
ImplStringLen
(
pCharStr
);
// rStr was not found if its length is zero
// or index is larger than searched string
if
(
!
nStrLen
||
(
nIndex
>=
nLen
)
)
return
STRING_NOTFOUND
;
const
STRCODE
*
pStr
=
mpData
->
maStr
;
pStr
+=
nIndex
;
if
(
nStrLen
==
1
)
{
STRCODE
cSearch
=
*
pCharStr
;
while
(
nIndex
<
nLen
)
{
if
(
*
pStr
==
cSearch
)
return
nIndex
;
++
pStr
,
++
nIndex
;
}
}
else
{
// search only within string
while
(
nLen
-
nIndex
>=
nStrLen
)
{
// increase match if found
if
(
ImplStringCompareWithoutZero
(
pStr
,
pCharStr
,
nStrLen
)
==
0
)
return
nIndex
;
++
pStr
,
++
nIndex
;
}
}
return
STRING_NOTFOUND
;
}
void
STRING
::
SearchAndReplaceAll
(
STRCODE
c
,
STRCODE
cRep
)
{
DBG_CHKTHIS
(
STRING
,
DBGCHECKSTRING
);
...
...
unusedcode.easy
Dosyayı görüntüle @
5167539b
...
...
@@ -57,7 +57,6 @@ SfxGrabBagItem::SetGrabBag(std::__debug::map<rtl::OUString, com::sun::star::uno:
SfxTemplatePanelControl::SetParagraphFamily()
SmFontPickList::Contains(Font const&) const
SmParser::Insert(rtl::OUString const&, int)
String::Search(unsigned short const*, unsigned short) const
SvdProgressInfo::ReportError()
SvpSalInstance::PostEvent(SalFrame const*, void*, unsigned short)
SvpSalInstance::PostedEventsInQueue()
...
...
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