KCodecs
kcodecsbase64.cpp
Go to the documentation of this file.
40 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
42 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 62, 64, 64, 64, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 64, 64, 64, 64, 64, 64,
44 64, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 64, 64, 64, 64, 64,
46 64, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 64, 64, 64, 64, 64};
48static const char base64EncodeMap[64] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V',
49 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
50 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'};
74 bool decode(const char *&scursor, const char *const send, char *&dcursor, const char *const dend) override;
112 bool encode(const char *&scursor, const char *const send, char *&dcursor, const char *const dend) override;
133 bool encode(const char *&scursor, const char *const send, char *&dcursor, const char *const dend) override;
156bool Base64Decoder::decode(const char *&scursor, const char *const send, char *&dcursor, const char *const dend)
230bool Base64Encoder::encode(const char *&scursor, const char *const send, char *&dcursor, const char *const dend)
289bool Rfc2047BEncodingEncoder::encode(const char *&scursor, const char *const send, char *&dcursor, const char *const dend)
A class representing the codec for Base64 as specified in RFC2045.
Definition kcodecsbase64.h:49
Decoder * makeDecoder(NewlineType newline=Codec::NewlineLF) const override
Definition kcodecsbase64.cpp:142
Encoder * makeEncoder(NewlineType newline=Codec::NewlineLF) const override
Definition kcodecsbase64.cpp:137
Stateful CTE decoder class.
Stateful encoder class.
bool write(char ch, char *&dcursor, const char *const dend)
Writes character ch to the output stream or the output buffer, depending on whether or not the output...
Definition kcodecs.cpp:655
bool flushOutputBuffer(char *&dcursor, const char *const dend)
Writes characters from the output buffer to the output stream.
Definition kcodecs.cpp:674
bool writeCRLF(char *&dcursor, const char *const dend)
Convenience function.
Definition kcodecs.cpp:694
A class representing the codec for the B encoding as specified in RFC2047B.
Definition kcodecsbase64.h:130
Encoder * makeEncoder(NewlineType newline=Codec::NewlineLF) const override
Definition kcodecsbase64.cpp:147
This file is part of the API for handling MIME data and defines the Base64 and RFC2047B Codec classes...
A wrapper class for the most commonly used encoding and decoding algorithms.
Definition kcodecs.cpp:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 11:59:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 11:59:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.