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
fdf85819
Kaydet (Commit)
fdf85819
authored
Eki 18, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: fdo#38838 remove String::Match
Change-Id: I9db663dbcb432cbfe380e1272d6daaed3e6f4221
üst
f1a8aefe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
28 deletions
+0
-28
string.hxx
include/tools/string.hxx
+0
-2
tustring.cxx
tools/source/string/tustring.cxx
+0
-26
No files found.
include/tools/string.hxx
Dosyayı görüntüle @
fdf85819
...
@@ -229,8 +229,6 @@ public:
...
@@ -229,8 +229,6 @@ public:
sal_Bool
Equals
(
const
UniString
&
rStr
,
sal_Bool
Equals
(
const
UniString
&
rStr
,
xub_StrLen
nIndex
,
xub_StrLen
nLen
)
const
;
xub_StrLen
nIndex
,
xub_StrLen
nLen
)
const
;
xub_StrLen
Match
(
const
UniString
&
rStr
)
const
;
xub_StrLen
Search
(
sal_Unicode
c
,
xub_StrLen
nIndex
=
0
)
const
;
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
UniString
&
rStr
,
xub_StrLen
nIndex
=
0
)
const
;
...
...
tools/source/string/tustring.cxx
Dosyayı görüntüle @
fdf85819
...
@@ -186,32 +186,6 @@ sal_Bool STRING::Equals( const STRING& rStr, xub_StrLen nIndex, xub_StrLen nLen
...
@@ -186,32 +186,6 @@ sal_Bool STRING::Equals( const STRING& rStr, xub_StrLen nIndex, xub_StrLen nLen
return
(
ImplStringCompareWithoutZero
(
mpData
->
maStr
+
nIndex
,
rStr
.
mpData
->
maStr
,
nLen
)
==
0
);
return
(
ImplStringCompareWithoutZero
(
mpData
->
maStr
+
nIndex
,
rStr
.
mpData
->
maStr
,
nLen
)
==
0
);
}
}
xub_StrLen
STRING
::
Match
(
const
STRING
&
rStr
)
const
{
DBG_CHKTHIS
(
STRING
,
DBGCHECKSTRING
);
DBG_CHKOBJ
(
&
rStr
,
STRING
,
DBGCHECKSTRING
);
// return if string is empty
if
(
!
mpData
->
mnLen
)
return
STRING_MATCH
;
// Search the string for unmatching chars
const
STRCODE
*
pStr1
=
mpData
->
maStr
;
const
STRCODE
*
pStr2
=
rStr
.
mpData
->
maStr
;
xub_StrLen
i
=
0
;
while
(
i
<
mpData
->
mnLen
)
{
// Abort on the first unmatching char
if
(
*
pStr1
!=
*
pStr2
)
return
i
;
++
pStr1
,
++
pStr2
,
++
i
;
}
return
STRING_MATCH
;
}
STRING
&
STRING
::
Append
(
STRCODE
c
)
STRING
&
STRING
::
Append
(
STRCODE
c
)
{
{
DBG_CHKTHIS
(
STRING
,
DBGCHECKSTRING
);
DBG_CHKTHIS
(
STRING
,
DBGCHECKSTRING
);
...
...
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