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
39e54d04
Kaydet (Commit)
39e54d04
authored
Ock 24, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move ugly WriteLines out of SvStream to beside sole user
üst
0c5ed354
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
17 deletions
+12
-17
iosys.cxx
basic/source/runtime/iosys.cxx
+12
-1
stream.hxx
tools/inc/tools/stream.hxx
+0
-1
stream.cxx
tools/source/stream/stream.cxx
+0
-15
No files found.
basic/source/runtime/iosys.cxx
Dosyayı görüntüle @
39e54d04
...
...
@@ -703,6 +703,17 @@ void SbiStream::ExpandFile()
}
}
namespace
{
void
WriteLines
(
SvStream
&
rStream
,
const
ByteString
&
rStr
)
{
ByteString
aStr
(
rStr
);
aStr
.
ConvertLineEnd
(
rStream
.
GetLineDelimiter
()
);
rStream
.
Write
(
aStr
.
GetBuffer
(),
aStr
.
Len
()
);
endl
(
rStream
);
}
}
SbError
SbiStream
::
Write
(
const
ByteString
&
rBuf
,
sal_uInt16
n
)
{
ExpandFile
();
...
...
@@ -720,7 +731,7 @@ SbError SbiStream::Write( const ByteString& rBuf, sal_uInt16 n )
aLine
.
Erase
(
nLineLen
);
if
(
nLineLen
&&
aLine
.
GetBuffer
()[
--
nLineLen
]
==
0x0D
)
aLine
.
Erase
(
nLineLen
);
pStrm
->
WriteLines
(
aLine
);
WriteLines
(
*
pStrm
,
aLine
);
aLine
.
Erase
();
}
}
...
...
tools/inc/tools/stream.hxx
Dosyayı görüntüle @
39e54d04
...
...
@@ -383,7 +383,6 @@ public:
sal_Bool
ReadLine
(
ByteString
&
rStr
);
sal_Bool
ReadLine
(
rtl
::
OString
&
rStr
);
sal_Bool
WriteLine
(
const
rtl
::
OString
&
rStr
);
sal_Bool
WriteLines
(
const
ByteString
&
rStr
);
sal_Bool
ReadByteStringLine
(
String
&
rStr
,
rtl_TextEncoding
eSrcCharSet
);
sal_Bool
WriteByteStringLine
(
const
String
&
rStr
,
rtl_TextEncoding
eDestCharSet
);
...
...
tools/source/stream/stream.cxx
Dosyayı görüntüle @
39e54d04
...
...
@@ -930,21 +930,6 @@ sal_Bool SvStream::WriteLine(const rtl::OString& rStr)
return
nError
==
SVSTREAM_OK
;
}
/*************************************************************************
|*
|* Stream::WriteLines()
|*
*************************************************************************/
sal_Bool
SvStream
::
WriteLines
(
const
ByteString
&
rStr
)
{
ByteString
aStr
(
rStr
);
aStr
.
ConvertLineEnd
(
eLineDelimiter
);
Write
(
aStr
.
GetBuffer
(),
aStr
.
Len
()
);
endl
(
*
this
);
return
(
sal_Bool
)(
nError
==
SVSTREAM_OK
);
}
/*************************************************************************
|*
|* Stream::WriteUniOrByteChar()
...
...
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