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
e5647de7
Kaydet (Commit)
e5647de7
authored
Tem 21, 2011
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
callcatcher: clean up Dir and DirEntry
üst
ca402fa0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
95 deletions
+0
-95
fsys.hxx
tools/inc/tools/fsys.hxx
+0
-6
dirent.cxx
tools/source/fsys/dirent.cxx
+0
-50
tdir.cxx
tools/source/fsys/tdir.cxx
+0
-39
No files found.
tools/inc/tools/fsys.hxx
Dosyayı görüntüle @
e5647de7
...
...
@@ -290,7 +290,6 @@ public:
void
SetExtension
(
const
String
&
rExt
,
char
cSep
=
'.'
);
String
GetExtension
(
char
cSep
=
'.'
)
const
;
String
CutExtension
(
char
cSep
=
'.'
);
void
SetName
(
const
String
&
rName
,
FSysPathStyle
eFormatter
=
FSYS_STYLE_HOST
);
inline
const
String
GetNameDirect
()
const
{
return
String
(
aName
,
osl_getThreadTextEncoding
());
}
String
GetName
(
FSysPathStyle
eFormatter
=
FSYS_STYLE_HOST
)
const
;
...
...
@@ -336,7 +335,6 @@ public:
sal_Bool
operator
!=
(
const
DirEntry
&
rAnotherDir
)
const
{
return
!
(
DirEntry
::
operator
==
(
rAnotherDir
));
}
StringCompare
NameCompare
(
const
DirEntry
&
rWith
)
const
;
inline
StringCompare
NameCompareDirect
(
const
DirEntry
&
rWith
)
const
{
#ifdef UNX
...
...
@@ -447,12 +445,8 @@ protected:
#endif
public
:
Dir
();
Dir
(
const
DirEntry
&
rDirEntry
,
DirEntryKind
nKind
=
FSYS_KIND_ALL
);
Dir
(
const
DirEntry
&
rDirEntry
,
DirEntryKind
nKind
,
FSysSort
nSort
,
...
);
~
Dir
();
void
Reset
();
...
...
tools/source/fsys/dirent.cxx
Dosyayı görüntüle @
e5647de7
...
...
@@ -1133,31 +1133,6 @@ String DirEntry::CutName( FSysPathStyle eStyle )
return
aOldName
;
}
/*************************************************************************
|*
|* DirEntry::NameCompare
|*
|* Beschreibung Vergleich nur die Namen (ohne Pfad, aber mit Gross/Klein)
|*
*************************************************************************/
StringCompare
DirEntry
::
NameCompare
(
const
DirEntry
&
rWith
)
const
{
ByteString
aThisName
;
ByteString
aParameterName
;
#ifdef UNX
aThisName
=
aName
;
aParameterName
=
rWith
.
aName
;
#else
aThisName
=
ByteString
(
aName
).
ToLowerAscii
();
aParameterName
=
ByteString
(
rWith
.
aName
).
ToLowerAscii
();
#endif
return
aThisName
.
CompareTo
(
aParameterName
);
}
/*************************************************************************
|*
|* DirEntry::operator==()
...
...
@@ -1373,31 +1348,6 @@ void DirEntry::SetExtension( const String& rExtension, char cSep )
}
}
/*************************************************************************
|*
|* DirEntry::CutExtension()
|*
*************************************************************************/
String
DirEntry
::
CutExtension
(
char
cSep
)
{
DBG_CHKTHIS
(
DirEntry
,
ImpCheckDirEntry
);
const
char
*
p0
=
(
aName
.
GetBuffer
()
);
const
char
*
p1
=
p0
+
aName
.
Len
()
-
1
;
while
(
p1
>=
p0
&&
*
p1
!=
cSep
)
p1
--
;
if
(
p1
>=
p0
)
{
// es wurde ein cSep an der Position p1 gefunden
aName
.
Erase
(
static_cast
<
xub_StrLen
>
(
p1
-
p0
)
);
return
String
(
p1
+
1
,
osl_getThreadTextEncoding
());
}
return
String
();
}
/*************************************************************************
|*
|* DirEntry::SetName()
...
...
tools/source/fsys/tdir.cxx
Dosyayı görüntüle @
e5647de7
...
...
@@ -386,27 +386,6 @@ sal_uInt16 Dir::Scan( sal_uInt16 nCount )
|*
*************************************************************************/
Dir
::
Dir
(
const
DirEntry
&
rDirEntry
,
DirEntryKind
nKindFlags
,
FSysSort
nSort
,
...
)
:
DirEntry
(
rDirEntry
),
pReader
(
0
)
{
DBG_CTOR
(
Dir
,
NULL
);
Construct
(
nKindFlags
);
std
::
va_list
pArgs
;
va_start
(
pArgs
,
nSort
);
ImpSetSort
(
pArgs
,
nSort
);
Reset
();
}
/*************************************************************************
|*
|* Dir::Dir()
|*
*************************************************************************/
Dir
::
Dir
(
const
DirEntry
&
rDirEntry
,
DirEntryKind
nKindFlags
)
:
DirEntry
(
rDirEntry
),
pReader
(
0
)
...
...
@@ -417,24 +396,6 @@ Dir::Dir( const DirEntry& rDirEntry, DirEntryKind nKindFlags ):
Reset
();
}
/*************************************************************************
|*
|* Dir::Dir()
|*
*************************************************************************/
Dir
::
Dir
()
:
pReader
(
0
)
{
DBG_CTOR
(
Dir
,
NULL
);
pLst
=
NULL
;
pSortLst
=
NULL
;
pStatLst
=
NULL
;
eAttrMask
=
FSYS_KIND_ALL
;
aNameMask
=
String
(
"*"
,
osl_getThreadTextEncoding
());
}
/*************************************************************************
|*
|* Dir::~Dir()
...
...
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