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};
48 static 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;
156 bool Base64Decoder::decode(const char *&scursor, const char *const send, char *&dcursor, const char *const dend)
230 bool Base64Encoder::encode(const char *&scursor, const char *const send, char *&dcursor, const char *const dend)
Defines the Base64Codec and Rfc2047BEncodingCodec classes.
Decoder * makeDecoder(NewlineType newline=Codec::NewlineLF) const override
Definition: kcodecsbase64.cpp:142
Encoder * makeEncoder(NewlineType newline=Codec::NewlineLF) const override
Definition: kcodecsbase64.cpp:137
Encoder * makeEncoder(NewlineType newline=Codec::NewlineLF) const override
Definition: kcodecsbase64.cpp:147
A class representing the codec for the B encoding as specified in RFC2047B.
Definition: kcodecsbase64.h:129
A wrapper class for the most commonly used encoding and decoding algorithms.
Definition: kcharsets.h:26
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:721
A class representing the codec for Base64 as specified in RFC2045.
Definition: kcodecsbase64.h:48
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:58:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:58:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.