File: t.codec.cxx

package info (click to toggle)
mimetic 0.9.8-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,168 kB
  • sloc: sh: 12,245; cpp: 11,327; makefile: 123
file content (28 lines) | stat: -rw-r--r-- 566 bytes parent folder | download | duplicates (10)
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
26
27
28
#include <string>
#include <iostream>
#include <iterator>
#include <mimetic/codec/base64.h>
#include <mimetic/codec/qp.h>
#include <mimetic/codec/code.h>
#include <mimetic/codec/codec_base.h>
#include <mimetic/codec/codec_chain.h>
#include "t.codec.h"

namespace mimetic
{
using namespace std;


void test_codec::one()
{
    ToUpperCase tue;
    MaxLineLen mll(44);
    Base64::Encoder b64e;
    QP::Encoder qpe;
    Base64::Decoder b64d;
    string o;
    string s("YWJjZGUBZmdoaQJsbW5vA3BxcgRzdHUFdno=");
    code(s.begin(),s.end(), b64d , back_inserter(o));
}

}