KCodecs
kcodecsqp.cpp
Go to the documentation of this file.
31 const uchar eTextMap[16] = {0x00, 0x00, 0x00, 0x00, 0x40, 0x35, 0xFF, 0xC0, 0x7F, 0xFF, 0xFF, 0xE0, 0x7F, 0xFF, 0xFF, 0xE0};
137 bool encode(const char *&scursor, const char *const send, char *&dcursor, const char *const dend) override;
170 QuotedPrintableDecoder(Codec::NewlineType newline = Codec::NewlineLF, bool aQEncoding = false, char aEscapeChar = '=')
189 bool decode(const char *&scursor, const char *const send, char *&dcursor, const char *const dend) override;
239 bool encode(const char *&scursor, const char *const send, char *&dcursor, const char *const dend) override;
309 bool QuotedPrintableDecoder::decode(const char *&scursor, const char *const send, char *&dcursor, const char *const dend)
487 for (; (mInputBufferWriteCursor + 1) % 16 != mInputBufferReadCursor && scursor != send; mInputBufferWriteCursor++) {
601 bool QuotedPrintableEncoder::encode(const char *&scursor, const char *const send, char *&dcursor, const char *const dend)
Encoder * makeEncoder(NewlineType newline=Codec::NewlineLF) const override
Definition: kcodecsqp.cpp:260
Encoder * makeEncoder(Codec::NewlineType newline=Codec::NewlineLF) const override
Definition: kcodecsqp.cpp:275
static bool keep(uchar ch)
Returns true if the specified value is a not Control character or question mark; else true.
Definition: kcodecsqp.cpp:73
A class representing the codec for QuotedPrintable as specified in RFC2045 (section 6....
Definition: kcodecsqp.h:42
Encoder * makeEncoder(Codec::NewlineType newline=Codec::NewlineLF) const override
Definition: kcodecsqp.cpp:290
int maxDecodedSizeFor(int insize, Codec::NewlineType newline=Codec::NewlineLF) const override
Definition: kcodecsqp.cpp:285
static uchar lowNibble(uchar ch)
Returns the low-order 4 bits of an 8-bit value in another 8-bit value.
Definition: kcodecsqp.cpp:63
Decoder * makeDecoder(Codec::NewlineType newline=Codec::NewlineLF) const override
Definition: kcodecsqp.cpp:280
Defines the classes QuotedPrintableCodec, Rfc2047QEncodingCodec, and Rfc2231EncodingCodec.
Decoder * makeDecoder(NewlineType newline=Codec::NewlineLF) const override
Definition: kcodecsqp.cpp:265
static uchar highNibble(uchar ch)
Returns the high-order 4 bits of an 8-bit value in another 8-bit value.
Definition: kcodecsqp.cpp:54
int maxDecodedSizeFor(int insize, Codec::NewlineType newline=Codec::NewlineLF) const override
Definition: kcodecsqp.cpp:300
int maxDecodedSizeFor(int insize, NewlineType newline=Codec::NewlineLF) const override
Definition: kcodecsqp.cpp:270
A class representing the codec for the Q encoding as specified in RFC2047Q.
Definition: kcodecsqp.h:107
A wrapper class for the most commonly used encoding and decoding algorithms.
Definition: kcharsets.h:26
Decoder * makeDecoder(Codec::NewlineType newline=Codec::NewlineLF) const override
Definition: kcodecsqp.cpp:295
static char binToHex(uchar value)
Converts a 4-bit value into its hexadecimal characater representation.
Definition: kcodecsqp.cpp:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 20 2023 04:01:48 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 20 2023 04:01:48 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.