acl/lib_acl_cpp/include/acl_cpp/mime/mime_xxcode.hpp

44 lines
1.1 KiB
C++
Raw Normal View History

#pragma once
2017-06-02 14:47:24 +08:00
#include "../acl_cpp_define.hpp"
#include "mime_code.hpp"
2014-11-19 00:25:21 +08:00
#if !defined(ACL_MIME_DISABLE)
2014-11-19 00:25:21 +08:00
namespace acl {
class ACL_CPP_API mime_xxcode : public mime_code
{
public:
/**
*
* @param addCrlf {bool} "\r\n"
* @param addInvalid {bool}
2014-11-19 00:25:21 +08:00
*/
mime_xxcode(bool addCrlf = false, bool addInvalid = false);
2019-07-07 13:27:58 +08:00
~mime_xxcode(void);
2014-11-19 00:25:21 +08:00
/**
*
*
* @param in {const char*}
* @param n {int}
* @param out {string*}
2014-11-19 00:25:21 +08:00
*/
static void encode(const char* in, int n, string* out);
/**
*
* @param in {const char*}
* @param n {int}
* @param out {string*}
2014-11-19 00:25:21 +08:00
*/
static void decode(const char* in, int n, string* out);
protected:
private:
};
} // namespace acl
#endif // !defined(ACL_MIME_DISABLE)