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
50ea3519
Kaydet (Commit)
50ea3519
authored
Eyl 17, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INetMIMEOutputSink line length limit is unused
Change-Id: Ib9da396d0669bfd89dbbff17821b8303f20d61aa
üst
ade5624f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
42 deletions
+1
-42
inetmime.hxx
include/tools/inetmime.hxx
+1
-42
inetmime.cxx
tools/source/inet/inetmime.cxx
+0
-0
No files found.
include/tools/inetmime.hxx
Dosyayı görüntüle @
50ea3519
...
...
@@ -624,12 +624,7 @@ inline sal_Unicode * INetMIME::putUTF32Character(sal_Unicode * pBuffer,
class
INetMIMEOutputSink
{
public
:
static
sal_uInt32
const
NO_LINE_LENGTH_LIMIT
=
SAL_MAX_UINT32
;
private
:
sal_uInt32
m_nColumn
;
sal_uInt32
m_nLineLengthLimit
;
OStringBuffer
m_aBuffer
;
/** Write a sequence of octets.
...
...
@@ -664,17 +659,6 @@ private:
const
sal_Unicode
*
pEnd
);
public
:
INetMIMEOutputSink
()
:
m_nColumn
(
0
),
m_nLineLengthLimit
(
NO_LINE_LENGTH_LIMIT
)
{}
/** Get the current column.
@return The current column (starting from zero).
*/
sal_uInt32
getColumn
()
const
{
return
m_nColumn
;
}
sal_uInt32
getLineLengthLimit
()
const
{
return
m_nLineLengthLimit
;
}
/** Write a sequence of octets.
@descr The supplied sequence of Unicode characters is interpreted as
...
...
@@ -714,7 +698,6 @@ public:
INetMIMEOutputSink
&
operator
<<
(
const
OString
&
rOctets
)
{
writeSequence
(
rOctets
.
getStr
(),
rOctets
.
getStr
()
+
rOctets
.
getLength
());
m_nColumn
+=
rOctets
.
getLength
();
return
*
this
;
}
...
...
@@ -728,22 +711,10 @@ public:
operator
<<
(
INetMIMEOutputSink
&
(
*
pManipulator
)(
INetMIMEOutputSink
&
))
{
return
pManipulator
(
*
this
);
}
/** Write a line end (CR LF).
*/
void
writeLineEnd
();
OString
takeBuffer
()
{
return
m_aBuffer
.
makeStringAndClear
();
}
/** A manipulator function that writes a line end (CR LF).
@param rSink Some sink.
@return The sink rSink.
*/
static
inline
INetMIMEOutputSink
&
endl
(
INetMIMEOutputSink
&
rSink
);
};
...
...
@@ -751,31 +722,21 @@ inline void INetMIMEOutputSink::write(const sal_Unicode * pBegin,
const
sal_Unicode
*
pEnd
)
{
writeSequence
(
pBegin
,
pEnd
);
m_nColumn
+=
pEnd
-
pBegin
;
}
inline
INetMIMEOutputSink
&
INetMIMEOutputSink
::
operator
<<
(
sal_Char
nOctet
)
{
writeSequence
(
&
nOctet
,
&
nOctet
+
1
);
++
m_nColumn
;
return
*
this
;
}
inline
INetMIMEOutputSink
&
INetMIMEOutputSink
::
operator
<<
(
const
sal_Char
*
pOctets
)
{
m_nColumn
+=
writeSequence
(
pOctets
);
writeSequence
(
pOctets
);
return
*
this
;
}
// static
inline
INetMIMEOutputSink
&
INetMIMEOutputSink
::
endl
(
INetMIMEOutputSink
&
rSink
)
{
rSink
.
writeLineEnd
();
return
rSink
;
}
// static
inline
void
INetMIME
::
writeEscapeSequence
(
INetMIMEOutputSink
&
rSink
,
sal_uInt32
nChar
)
...
...
@@ -818,7 +779,6 @@ private:
Coding
m_ePrevCoding
;
rtl_TextEncoding
m_ePrevMIMEEncoding
;
Coding
m_eCoding
;
sal_uInt32
m_nQuotedEscaped
;
EncodedWordState
m_eEncodedWordState
;
inline
bool
needsEncodedWordEscape
(
sal_uInt32
nChar
)
const
;
...
...
@@ -851,7 +811,6 @@ inline INetMIMEEncodedWordOutputSink::INetMIMEEncodedWordOutputSink(
m_ePrevCoding
(
CODING_NONE
),
m_ePrevMIMEEncoding
(
RTL_TEXTENCODING_DONTKNOW
),
m_eCoding
(
CODING_NONE
),
m_nQuotedEscaped
(
0
),
m_eEncodedWordState
(
STATE_INITIAL
)
{
m_nBufferSize
=
BUFFER_SIZE
;
...
...
tools/source/inet/inetmime.cxx
Dosyayı görüntüle @
50ea3519
This diff is collapsed.
Click to expand it.
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