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
a68b0ef5
Kaydet (Commit)
a68b0ef5
authored
Eyl 17, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CODING_QUOTED has become unused
Change-Id: I012b7d407cb50ba01fcc3b98ea2fe1968ec74a28
üst
8fdd2809
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
59 deletions
+1
-59
inetmime.cxx
tools/source/inet/inetmime.cxx
+1
-59
No files found.
tools/source/inet/inetmime.cxx
Dosyayı görüntüle @
a68b0ef5
...
...
@@ -80,8 +80,6 @@ const sal_Unicode * skipLinearWhiteSpaceComment(const sal_Unicode *
const
sal_Unicode
*
pEnd
);
inline
bool
needsQuotedStringEscape
(
sal_uInt32
nChar
);
const
sal_Unicode
*
skipQuotedString
(
const
sal_Unicode
*
pBegin
,
const
sal_Unicode
*
pEnd
);
...
...
@@ -160,11 +158,6 @@ inline bool startsWithLineFolding(const sal_Unicode * pBegin,
&&
isWhiteSpace
(
pBegin
[
2
]);
// CR, LF
}
inline
bool
needsQuotedStringEscape
(
sal_uInt32
nChar
)
{
return
nChar
==
'"'
||
nChar
==
'\\'
;
}
inline
rtl_TextEncoding
translateToMIME
(
rtl_TextEncoding
eEncoding
)
{
#if defined WNT
...
...
@@ -985,8 +978,7 @@ public:
private
:
enum
{
BUFFER_SIZE
=
256
};
enum
Coding
{
CODING_NONE
,
CODING_QUOTED
,
CODING_ENCODED
,
CODING_ENCODED_TERMINATED
};
enum
Coding
{
CODING_NONE
,
CODING_ENCODED
,
CODING_ENCODED_TERMINATED
};
enum
EncodedWordState
{
STATE_INITIAL
,
STATE_FIRST_EQUALS
,
STATE_FIRST_QUESTION
,
STATE_CHARSET
,
...
...
@@ -1206,8 +1198,6 @@ void INetMIMEEncodedWordOutputSink::finish(bool bWriteTrailer)
// If the text is already an encoded word, copy it verbatim:
switch
(
m_ePrevCoding
)
{
case
CODING_QUOTED
:
m_rSink
<<
'"'
;
case
CODING_NONE
:
while
(
m_nExtraSpaces
--
>
0
)
{
...
...
@@ -1238,10 +1228,6 @@ void INetMIMEEncodedWordOutputSink::finish(bool bWriteTrailer)
case
CODING_NONE
:
switch
(
m_ePrevCoding
)
{
case
CODING_QUOTED
:
m_eCoding
=
CODING_QUOTED
;
break
;
case
CODING_ENCODED
:
m_rSink
<<
"?="
;
break
;
...
...
@@ -1254,49 +1240,7 @@ void INetMIMEEncodedWordOutputSink::finish(bool bWriteTrailer)
m_rSink
<<
' '
;
}
m_rSink
.
write
(
m_pBuffer
,
m_pBufferEnd
);
if
(
m_eCoding
==
CODING_QUOTED
&&
bWriteTrailer
)
{
m_rSink
<<
'"'
;
m_eCoding
=
CODING_NONE
;
}
break
;
case
CODING_QUOTED
:
{
bool
bInsertLeadingQuote
=
true
;
switch
(
m_ePrevCoding
)
{
case
CODING_QUOTED
:
bInsertLeadingQuote
=
false
;
break
;
case
CODING_ENCODED
:
m_rSink
<<
"?="
;
break
;
default
:
break
;
}
while
(
m_nExtraSpaces
--
>
0
)
{
m_rSink
<<
' '
;
}
if
(
bInsertLeadingQuote
)
m_rSink
<<
'"'
;
for
(
const
sal_Unicode
*
p
=
m_pBuffer
;
p
!=
m_pBufferEnd
;
++
p
)
{
if
(
needsQuotedStringEscape
(
*
p
))
m_rSink
<<
'\\'
;
m_rSink
<<
sal_Char
(
*
p
);
}
if
(
bWriteTrailer
)
{
m_rSink
<<
'"'
;
m_eCoding
=
CODING_NONE
;
}
break
;
}
case
CODING_ENCODED
:
{
...
...
@@ -1311,8 +1255,6 @@ void INetMIMEEncodedWordOutputSink::finish(bool bWriteTrailer)
switch
(
m_ePrevCoding
)
{
case
CODING_QUOTED
:
m_rSink
<<
'"'
;
case
CODING_NONE
:
while
(
m_nExtraSpaces
--
>
0
)
{
...
...
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