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
42bfc7c6
Kaydet (Commit)
42bfc7c6
authored
Haz 21, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
junk unused archaic pre-stl containers
üst
a9bec36b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
117 deletions
+0
-117
svstdarr.hxx
svl/inc/svl/svstdarr.hxx
+0
-20
svarray.cxx
svl/source/memtools/svarray.cxx
+0
-97
No files found.
svl/inc/svl/svstdarr.hxx
Dosyayı görüntüle @
42bfc7c6
...
...
@@ -93,31 +93,11 @@ SV_DECL_PTRARR_VISIBILITY( SvByteStrings, ByteStringPtr, 1, 1, SVL_DLLPUBLIC )
#define _SVSTDARR_BYTESTRINGS_DECL
#endif
#ifndef _SVSTDARR_BYTESTRINGSDTOR_DECL
SV_DECL_PTRARR_DEL_VISIBILITY
(
SvByteStringsDtor
,
ByteStringPtr
,
1
,
1
,
SVL_DLLPUBLIC
)
#define _SVSTDARR_BYTESTRINGSDTOR_DECL
#endif
#ifndef _SVSTDARR_BYTESTRINGSSORT_DECL
SV_DECL_PTRARR_SORT_VISIBILITY
(
SvByteStringsSort
,
ByteStringPtr
,
1
,
1
,
SVL_DLLPUBLIC
)
#define _SVSTDARR_BYTESTRINGSSORT_DECL
#endif
#ifndef _SVSTDARR_BYTESTRINGSSORTDTOR_DECL
SV_DECL_PTRARR_SORT_DEL_VISIBILITY
(
SvByteStringsSortDtor
,
ByteStringPtr
,
1
,
1
,
SVL_DLLPUBLIC
)
#define _SVSTDARR_BYTESTRINGSSORTDTOR_DECL
#endif
#ifndef _SVSTDARR_BYTESTRINGSISORT_DECL
SV_DECL_PTRARR_SORT_VISIBILITY
(
SvByteStringsISort
,
ByteStringPtr
,
1
,
1
,
SVL_DLLPUBLIC
)
#define _SVSTDARR_BYTESTRINGSISORT_DECL
#endif
#ifndef _SVSTDARR_BYTESTRINGSISORTDTOR_DECL
SV_DECL_PTRARR_SORT_DEL_VISIBILITY
(
SvByteStringsISortDtor
,
ByteStringPtr
,
1
,
1
,
SVL_DLLPUBLIC
)
#define _SVSTDARR_BYTESTRINGSISORTDTOR_DECL
#endif
typedef
std
::
deque
<
xub_StrLen
>
SvXub_StrLens
;
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svl/source/memtools/svarray.cxx
Dosyayı görüntüle @
42bfc7c6
...
...
@@ -71,12 +71,8 @@ SV_IMPL_OP_PTRARR_SORT( SvStringsSort, StringPtr )
SV_IMPL_OP_PTRARR_SORT
(
SvStringsSortDtor
,
StringPtr
)
SV_IMPL_PTRARR
(
SvByteStrings
,
ByteStringPtr
)
SV_IMPL_PTRARR
(
SvByteStringsDtor
,
ByteStringPtr
)
SV_IMPL_OP_PTRARR_SORT
(
SvByteStringsSort
,
ByteStringPtr
)
SV_IMPL_OP_PTRARR_SORT
(
SvByteStringsSortDtor
,
ByteStringPtr
)
// ---------------- strings -------------------------------------
// Array mit anderer Seek-Methode!
...
...
@@ -171,97 +167,4 @@ sal_Bool SvStringsISortDtor::Seek_Entry( const StringPtr aE, sal_uInt16* pP ) co
return
sal_False
;
}
// ---------------- bytestrings -------------------------------------
// Array mit anderer Seek-Methode!
_SV_IMPL_SORTAR_ALG
(
SvByteStringsISort
,
ByteStringPtr
)
void
SvByteStringsISort
::
DeleteAndDestroy
(
sal_uInt16
nP
,
sal_uInt16
nL
)
{
if
(
nL
)
{
DBG_ASSERT
(
nP
<
nA
&&
nP
+
nL
<=
nA
,
"ERR_VAR_DEL"
);
for
(
sal_uInt16
n
=
nP
;
n
<
nP
+
nL
;
n
++
)
delete
*
((
ByteStringPtr
*
)
pData
+
n
);
SvPtrarr
::
Remove
(
nP
,
nL
);
}
}
sal_Bool
SvByteStringsISort
::
Seek_Entry
(
const
ByteStringPtr
aE
,
sal_uInt16
*
pP
)
const
{
register
sal_uInt16
nO
=
SvByteStringsISort_SAR
::
Count
(),
nM
,
nU
=
0
;
if
(
nO
>
0
)
{
nO
--
;
while
(
nU
<=
nO
)
{
nM
=
nU
+
(
nO
-
nU
)
/
2
;
StringCompare
eCmp
=
(
*
((
ByteStringPtr
*
)
pData
+
nM
))
->
CompareIgnoreCaseToAscii
(
*
(
aE
)
);
if
(
COMPARE_EQUAL
==
eCmp
)
{
if
(
pP
)
*
pP
=
nM
;
return
sal_True
;
}
else
if
(
COMPARE_LESS
==
eCmp
)
nU
=
nM
+
1
;
else
if
(
nM
==
0
)
{
if
(
pP
)
*
pP
=
nU
;
return
sal_False
;
}
else
nO
=
nM
-
1
;
}
}
if
(
pP
)
*
pP
=
nU
;
return
sal_False
;
}
// Array mit anderer Seek-Methode!
_SV_IMPL_SORTAR_ALG
(
SvByteStringsISortDtor
,
ByteStringPtr
)
void
SvByteStringsISortDtor
::
DeleteAndDestroy
(
sal_uInt16
nP
,
sal_uInt16
nL
)
{
if
(
nL
)
{
DBG_ASSERT
(
nP
<
nA
&&
nP
+
nL
<=
nA
,
"ERR_VAR_DEL"
);
for
(
sal_uInt16
n
=
nP
;
n
<
nP
+
nL
;
n
++
)
delete
*
((
ByteStringPtr
*
)
pData
+
n
);
SvPtrarr
::
Remove
(
nP
,
nL
);
}
}
sal_Bool
SvByteStringsISortDtor
::
Seek_Entry
(
const
ByteStringPtr
aE
,
sal_uInt16
*
pP
)
const
{
register
sal_uInt16
nO
=
SvByteStringsISortDtor_SAR
::
Count
(),
nM
,
nU
=
0
;
if
(
nO
>
0
)
{
nO
--
;
while
(
nU
<=
nO
)
{
nM
=
nU
+
(
nO
-
nU
)
/
2
;
StringCompare
eCmp
=
(
*
((
ByteStringPtr
*
)
pData
+
nM
))
->
CompareIgnoreCaseToAscii
(
*
(
aE
)
);
if
(
COMPARE_EQUAL
==
eCmp
)
{
if
(
pP
)
*
pP
=
nM
;
return
sal_True
;
}
else
if
(
COMPARE_LESS
==
eCmp
)
nU
=
nM
+
1
;
else
if
(
nM
==
0
)
{
if
(
pP
)
*
pP
=
nU
;
return
sal_False
;
}
else
nO
=
nM
-
1
;
}
}
if
(
pP
)
*
pP
=
nU
;
return
sal_False
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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