Renaming Base64Decoder to Base64Converter.

It nows encodes and decodes.
This commit is contained in:
Robin Sommer 2013-03-17 13:14:26 -07:00
parent f412a00ada
commit 6865f0438a
6 changed files with 21 additions and 17 deletions

View file

@ -10,13 +10,13 @@
#include "Analyzer.h"
// Maybe we should have a base class for generic decoders?
class Base64Decoder {
class Base64Converter {
public:
// <analyzer> is used for error reporting, and it should be zero when
// the decoder is called by the built-in function decode_base64() or encode_base64().
// Empty alphabet indicates the default base64 alphabet.
Base64Decoder(Analyzer* analyzer, const string& alphabet = "");
~Base64Decoder();
Base64Converter(Analyzer* analyzer, const string& alphabet = "");
~Base64Converter();
// A note on Decode():
//