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
4de8c4a3
Kaydet (Commit)
4de8c4a3
authored
May 03, 2011
tarafından
Francois Tigeot
Kaydeden (comit)
Jan Holesovsky
May 03, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove strange filesystems-related enum.
üst
c0a5b2b3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
168 deletions
+6
-168
fsys.hxx
tools/inc/tools/fsys.hxx
+0
-2
dirent.cxx
tools/source/fsys/dirent.cxx
+6
-6
unx.cxx
tools/source/fsys/unx.cxx
+0
-75
wntmsc.cxx
tools/source/fsys/wntmsc.cxx
+0
-85
No files found.
tools/inc/tools/fsys.hxx
Dosyayı görüntüle @
4de8c4a3
...
...
@@ -296,8 +296,6 @@ public:
FSysPathStyle
eParser
=
FSYS_STYLE_HOST
);
~
DirEntry
();
sal_Bool
IsCaseSensitive
(
FSysPathStyle
eFormatter
=
FSYS_STYLE_HOST
)
const
;
sal_uIntPtr
GetError
()
const
{
return
nError
;
}
sal_Bool
IsValid
()
const
;
DirEntryFlag
GetFlag
()
const
{
return
eFlag
;
};
...
...
tools/source/fsys/dirent.cxx
Dosyayı görüntüle @
4de8c4a3
...
...
@@ -1662,13 +1662,13 @@ sal_Bool DirEntry::ImpToRel( String aCurStr )
aThis
.
ToAbs
();
String
aThisStr
(
aThis
.
GetFull
(
FSYS_STYLE_HPFS
)
);
//
#109512
preserve case of path even if caseinsensitive
// preserve case of path even if caseinsensitive
String
aThisCompareStr
(
aThisStr
),
aCurCompareStr
(
aCurStr
);
if
(
!
IsCaseSensitive
()
)
{
aThisCompareStr
.
ToLowerAscii
();
aCurCompareStr
.
ToLowerAscii
();
}
#if defined(WNT)
aThisCompareStr
.
ToLowerAscii
();
aCurCompareStr
.
ToLowerAscii
();
#endif
// "Ubereinstimmung pr"ufen
sal_uInt16
nPos
=
aThisCompareStr
.
Match
(
aCurCompareStr
);
...
...
tools/source/fsys/unx.cxx
Dosyayı görüntüle @
4de8c4a3
...
...
@@ -191,81 +191,6 @@ static sal_Bool GetMountEntry(dev_t dev, struct mymnttab *mytab)
#endif
/************************************************************************
|*
|* DirEntry::IsCaseSensitive()
|*
*************************************************************************/
sal_Bool
DirEntry
::
IsCaseSensitive
(
FSysPathStyle
eFormatter
)
const
{
if
(
eFormatter
==
FSYS_STYLE_HOST
)
{
#if defined(NETBSD) || defined(DRAGONFLY)
return
sal_True
;
#else
struct
stat
buf
;
DirEntry
aPath
(
*
this
);
aPath
.
ToAbs
();
while
(
stat
(
ByteString
(
aPath
.
GetFull
(),
osl_getThreadTextEncoding
()).
GetBuffer
(),
&
buf
))
{
if
(
aPath
.
Level
()
==
1
)
{
return
sal_True
;
// ich bin unter UNIX, also ist der default im Zweifelsfall case sensitiv
}
aPath
=
aPath
[
1
];
}
struct
mymnttab
fsmnt
;
GetMountEntry
(
buf
.
st_dev
,
&
fsmnt
);
if
((
fsmnt
.
mymnttab_filesystem
.
CompareTo
(
"msdos"
)
==
COMPARE_EQUAL
)
||
(
fsmnt
.
mymnttab_filesystem
.
CompareTo
(
"umsdos"
)
==
COMPARE_EQUAL
)
||
(
fsmnt
.
mymnttab_filesystem
.
CompareTo
(
"vfat"
)
==
COMPARE_EQUAL
)
||
(
fsmnt
.
mymnttab_filesystem
.
CompareTo
(
"hpfs"
)
==
COMPARE_EQUAL
)
||
(
fsmnt
.
mymnttab_filesystem
.
CompareTo
(
"smb"
)
==
COMPARE_EQUAL
)
||
(
fsmnt
.
mymnttab_filesystem
.
CompareTo
(
"ncpfs"
)
==
COMPARE_EQUAL
))
{
return
sal_False
;
}
else
{
return
sal_True
;
}
#endif
}
else
{
sal_Bool
isCaseSensitive
=
sal_True
;
// ich bin unter UNIX, also ist der default im Zweifelsfall case sensitiv
switch
(
eFormatter
)
{
case
FSYS_STYLE_MAC
:
case
FSYS_STYLE_FAT
:
case
FSYS_STYLE_VFAT
:
case
FSYS_STYLE_NTFS
:
case
FSYS_STYLE_NWFS
:
case
FSYS_STYLE_HPFS
:
{
isCaseSensitive
=
sal_False
;
break
;
}
case
FSYS_STYLE_SYSV
:
case
FSYS_STYLE_BSD
:
case
FSYS_STYLE_DETECT
:
{
isCaseSensitive
=
sal_True
;
break
;
}
default
:
{
isCaseSensitive
=
sal_True
;
// ich bin unter UNIX, also ist der default im Zweifelsfall case sensitiv
break
;
}
}
return
isCaseSensitive
;
}
}
/************************************************************************
|*
...
...
tools/source/fsys/wntmsc.cxx
Dosyayı görüntüle @
4de8c4a3
...
...
@@ -167,91 +167,6 @@ FSysPathStyle DirEntry::GetPathStyle( const String &rDevice )
return
eStyle
;
}
/*************************************************************************
|*
|* DirEntry::IsCaseSensitive()
|*
*************************************************************************/
sal_Bool
DirEntry
::
IsCaseSensitive
(
FSysPathStyle
eFormatter
)
const
{
if
(
eFormatter
==
FSYS_STYLE_HOST
)
{
/*
DirEntry aRoot(*this);
aRoot.ToAbs();
aRoot = aRoot[Level()-1];
String aRootDir = aRoot.GetFull(FSYS_STYLE_HOST, sal_True);
char sVolumeName[256];
DWORD nVolumeSerial;
DWORD nMaxCompLen;
DWORD nFlags;
char sFileSysName[16];
if ( GetVolumeInformation( (char*) aRootDir.GetStr(),
sVolumeName,
256,
(LPDWORD) &nVolumeSerial,
(LPDWORD) &nMaxCompLen,
(LPDWORD) &nFlags,
sFileSysName,
16 ))
{
return (nFlags & FS_CASE_SENSITIVE) ? sal_True : sal_False;
}
else
{
return sal_False;
}
*/
//
// guter versuch, aber FS_CASE_SENSITIVE ist D?nnsinn in T?ten:
//
// sFileSysName FS_CASE_SENSITIVE
// FAT sal_False
// NTFS sal_True !!!
// NWCompat sal_False
// Samba sal_False
//
// NT spricht auch NTFS lediglich case preserving an, also ist unter NT alles case insensitiv
//
return
sal_False
;
}
else
{
sal_Bool
isCaseSensitive
=
sal_False
;
// ich bin unter win32, also ist der default case insensitiv
switch
(
eFormatter
)
{
case
FSYS_STYLE_MAC
:
case
FSYS_STYLE_FAT
:
case
FSYS_STYLE_VFAT
:
case
FSYS_STYLE_NTFS
:
case
FSYS_STYLE_NWFS
:
case
FSYS_STYLE_HPFS
:
case
FSYS_STYLE_DETECT
:
{
isCaseSensitive
=
sal_False
;
break
;
}
case
FSYS_STYLE_SYSV
:
case
FSYS_STYLE_BSD
:
{
isCaseSensitive
=
sal_True
;
break
;
}
default
:
{
isCaseSensitive
=
sal_False
;
// ich bin unter win32, also ist der default case insensitiv
break
;
}
}
return
isCaseSensitive
;
}
}
/*************************************************************************
|*
|* DirEntry::ToAbs()
...
...
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