/* $Id$ */
#include <iostream>
#include <string>
-#include <msp/strings/codec.h>
+#include <msp/stringcodec/codec.h>
using namespace std;
using namespace Msp;
return 1;
}
- Codecs::Codec *from = Codecs::create_codec(argv[1]);
- Codecs::Codec *to = Codecs::create_codec(argv[2]);
+ StringCodec::Codec *from = StringCodec::create_codec(argv[1]);
+ StringCodec::Codec *to = StringCodec::create_codec(argv[2]);
- Codecs::Decoder *from_dec = from->create_decoder(Codecs::TRANSLITERATE);
- Codecs::Encoder *to_enc = to->create_encoder(Codecs::TRANSLITERATE);
+ StringCodec::Decoder *from_dec = from->create_decoder();
+ StringCodec::Encoder *to_enc = to->create_encoder();
string line;
while(getline(cin, line))
{
line += '\n';
- Codecs::ustring ustr;
+ StringCodec::ustring ustr;
from_dec->decode(line, ustr);
string result;
to_enc->encode(ustr, result);