{
struct base64
{
+ static const char* table;
+
template <typename _InputIterator, typename _OutputStream>
- void encode(const _InputIterator& it, _OutputStream& os)
+ void encode(_InputIterator it, _OutputStream& os)
{
-
+ for(; it.available(); it++)
+ {
+ // Check the char
+ const _It it_work = it;
+ _EncCheck checker;
+ if ( checker.analyze(it_work, param) == false )
+ break;
+
+ m_str.append(1,*p);
+ }
}
template <typename _InputIterator, typename _OutputStream>
- void decode(const _InputIterator& it, _OutputStream& os)
+ void decode(_InputIterator it, _OutputStream& os)
{
}
};
+
+ const char* base64::table = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
}
-#define _ROAST_BASE64_ENC_TABLE "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
-
inline void roast_base64_enc(const char* s, size_t length, char* result)
{
const char* p_in = s;