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
13f383ac
Kaydet (Commit)
13f383ac
authored
Eki 17, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: fdo#38838 remove String::GetToken
Change-Id: Ic5307816dd3f0c74f10eb8a15910a1674713bf9c
üst
11e74754
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
56 deletions
+0
-56
string.hxx
include/tools/string.hxx
+0
-9
tustring.cxx
tools/source/string/tustring.cxx
+0
-47
No files found.
include/tools/string.hxx
Dosyayı görüntüle @
13f383ac
...
...
@@ -234,9 +234,6 @@ public:
xub_StrLen
Search
(
sal_Unicode
c
,
xub_StrLen
nIndex
=
0
)
const
;
xub_StrLen
Search
(
const
UniString
&
rStr
,
xub_StrLen
nIndex
=
0
)
const
;
UniString
GetToken
(
xub_StrLen
nToken
,
sal_Unicode
cTok
,
sal_Int32
&
rIndex
)
const
;
UniString
GetToken
(
xub_StrLen
nToken
,
sal_Unicode
cTok
=
';'
)
const
;
const
sal_Unicode
*
GetBuffer
()
const
{
return
mpData
->
maStr
;
}
friend
sal_Bool
operator
==
(
const
UniString
&
rStr1
,
const
UniString
&
rStr2
)
...
...
@@ -258,12 +255,6 @@ inline UniString UniString::Copy( xub_StrLen nIndex, xub_StrLen nCount ) const
return
UniString
(
*
this
,
nIndex
,
nCount
);
}
inline
UniString
UniString
::
GetToken
(
xub_StrLen
nToken
,
sal_Unicode
cTok
)
const
{
sal_Int32
nTempPos
=
0
;
return
GetToken
(
nToken
,
cTok
,
nTempPos
);
}
template
<
typename
charT
,
typename
traits
>
std
::
basic_ostream
<
charT
,
traits
>
&
operator
<<
(
std
::
basic_ostream
<
charT
,
traits
>
&
stream
,
UniString
const
&
string
)
...
...
tools/source/string/tustring.cxx
Dosyayı görüntüle @
13f383ac
...
...
@@ -212,53 +212,6 @@ xub_StrLen STRING::Match( const STRING& rStr ) const
return
STRING_MATCH
;
}
STRING
STRING
::
GetToken
(
xub_StrLen
nToken
,
STRCODE
cTok
,
sal_Int32
&
rIndex
)
const
{
DBG_CHKTHIS
(
STRING
,
DBGCHECKSTRING
);
const
STRCODE
*
pStr
=
mpData
->
maStr
;
xub_StrLen
nLen
=
(
xub_StrLen
)
mpData
->
mnLen
;
xub_StrLen
nTok
=
0
;
sal_Int32
nFirstChar
=
rIndex
;
xub_StrLen
i
=
nFirstChar
;
// Determine token position and length
pStr
+=
i
;
while
(
i
<
nLen
)
{
// Increase token count if match
if
(
*
pStr
==
cTok
)
{
++
nTok
;
if
(
nTok
==
nToken
)
nFirstChar
=
i
+
1
;
else
{
if
(
nTok
>
nToken
)
break
;
}
}
++
pStr
,
++
i
;
}
if
(
nTok
>=
nToken
)
{
if
(
i
<
nLen
)
rIndex
=
i
+
1
;
else
rIndex
=
-
1
;
return
Copy
(
nFirstChar
,
i
-
nFirstChar
);
}
else
{
rIndex
=
-
1
;
return
STRING
();
}
}
STRING
&
STRING
::
Append
(
STRCODE
c
)
{
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