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
a3b0ee88
Kaydet (Commit)
a3b0ee88
authored
Tem 10, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
strip out unused methods
üst
6575317b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
94 deletions
+0
-94
stream.hxx
tools/inc/tools/stream.hxx
+0
-2
stream.cxx
tools/source/stream/stream.cxx
+0
-92
No files found.
tools/inc/tools/stream.hxx
Dosyayı görüntüle @
a3b0ee88
...
@@ -305,7 +305,6 @@ public:
...
@@ -305,7 +305,6 @@ public:
SvStream
(
SvLockBytes
*
pLockBytes
);
SvStream
(
SvLockBytes
*
pLockBytes
);
virtual
~
SvStream
();
virtual
~
SvStream
();
ErrCode
SetLockBytes
(
SvLockBytesRef
&
rBytes
);
SvLockBytes
*
GetLockBytes
()
const
{
return
xLockBytes
;
}
SvLockBytes
*
GetLockBytes
()
const
{
return
xLockBytes
;
}
sal_uInt32
GetError
()
const
{
return
ERRCODE_TOERROR
(
nError
);
}
sal_uInt32
GetError
()
const
{
return
ERRCODE_TOERROR
(
nError
);
}
...
@@ -515,7 +514,6 @@ public:
...
@@ -515,7 +514,6 @@ public:
void
RefreshBuffer
();
void
RefreshBuffer
();
SvStream
&
PutBack
(
char
aCh
);
SvStream
&
PutBack
(
char
aCh
);
void
EatWhite
();
sal_Bool
IsWritable
()
const
{
return
bIsWritable
;
}
sal_Bool
IsWritable
()
const
{
return
bIsWritable
;
}
StreamMode
GetStreamMode
()
const
{
return
eStreamMode
;
}
StreamMode
GetStreamMode
()
const
{
return
eStreamMode
;
}
...
...
tools/source/stream/stream.cxx
Dosyayı görüntüle @
a3b0ee88
...
@@ -373,13 +373,6 @@ sal_Size SvStream::GetData( void* pData, sal_Size nSize )
...
@@ -373,13 +373,6 @@ sal_Size SvStream::GetData( void* pData, sal_Size nSize )
else
return
0
;
else
return
0
;
}
}
ErrCode
SvStream
::
SetLockBytes
(
SvLockBytesRef
&
rLB
)
{
xLockBytes
=
rLB
;
RefreshBuffer
();
return
ERRCODE_NONE
;
}
//========================================================================
//========================================================================
sal_Size
SvStream
::
PutData
(
const
void
*
pData
,
sal_Size
nSize
)
sal_Size
SvStream
::
PutData
(
const
void
*
pData
,
sal_Size
nSize
)
...
@@ -1826,91 +1819,6 @@ void SvStream::Flush()
...
@@ -1826,91 +1819,6 @@ void SvStream::Flush()
FlushData
();
FlushData
();
}
}
/*************************************************************************
|*
|* Stream::PutBack()
|*
*************************************************************************/
/*
4 Faelle :
1. Datenzeiger steht mitten im Puffer (nBufActualPos >= 1)
2. Datenzeiger auf Position 0, Puffer ist voll
3. Datenzeiger auf Position 0, Puffer ist teilweise gefuellt
4. Datenzeiger auf Position 0, Puffer ist leer -> Fehler!
*/
SvStream
&
SvStream
::
PutBack
(
char
aCh
)
{
// wenn kein Buffer oder Zurueckscrollen nicht moeglich -> Fehler
if
(
!
pRWBuf
||
!
nBufActualLen
||
(
!
nBufActualPos
&&
!
nBufFilePos
)
)
{
// 4. Fall
SetError
(
SVSTREAM_GENERALERROR
);
return
*
this
;
}
// Flush() (Phys. Flushen aber nicht notwendig, deshalb selbst schreiben)
if
(
bIsConsistent
&&
bIsDirty
)
{
SeekPos
(
nBufFilePos
);
if
(
nCryptMask
)
CryptAndWriteBuffer
(
pRWBuf
,
nBufActualLen
);
else
PutData
(
pRWBuf
,
nBufActualLen
);
bIsDirty
=
sal_False
;
}
bIsConsistent
=
sal_False
;
// Puffer enthaelt jetzt TRASH
if
(
nBufActualPos
)
{
// 1. Fall
nBufActualPos
--
;
pBufPos
--
;
*
pBufPos
=
aCh
;
nBufFree
++
;
}
else
// Puffer muss verschoben werden
{
// Ist Puffer am Anschlag ?
if
(
nBufSize
==
nBufActualLen
)
{
// 2. Fall
memmove
(
pRWBuf
+
1
,
pRWBuf
,
nBufSize
-
1
);
// nBufFree behaelt den Wert!
}
else
{
// 3. Fall -> Puffer vergroessern
memmove
(
pRWBuf
+
1
,
pRWBuf
,
(
sal_uInt16
)
nBufActualLen
);
nBufActualLen
++
;
nBufFree
++
;
}
nBufFilePos
--
;
*
pRWBuf
=
aCh
;
}
eIOMode
=
STREAM_IO_DONTKNOW
;
bIsEof
=
sal_False
;
return
*
this
;
}
/*************************************************************************
|*
|* Stream::EatWhite()
|*
*************************************************************************/
void
SvStream
::
EatWhite
()
{
char
aCh
;
Read
(
&
aCh
,
sizeof
(
char
)
);
while
(
!
bIsEof
&&
isspace
((
int
)
aCh
)
)
//( aCh == ' ' || aCh == '\t' ) )
Read
(
&
aCh
,
sizeof
(
char
)
);
if
(
!
bIsEof
)
// konnte das letzte Char gelesen werden ?
SeekRel
(
-
1L
);
}
/*************************************************************************
/*************************************************************************
|*
|*
|* Stream::RefreshBuffer()
|* Stream::RefreshBuffer()
...
...
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