mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-17 07:48:50 +01:00
*** empty log message ***
This commit is contained in:
parent
f356c2cf10
commit
e0fd14906d
1 changed files with 5 additions and 4 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <Utils/utf8iso88591codecvt.h>
|
||||
#include <Utils/iso88591utf8codecvt.h>
|
||||
#include <Utils/rot13codecvt.h>
|
||||
#include <Utils/base64codecvt.h>
|
||||
#include <Utils/utf8ucs2codecvt.h>
|
||||
#include <Utils/utf16utf8codecvt.h>
|
||||
#include <Utils/utf16beucs2codecvt.h>
|
||||
|
@ -12,14 +13,14 @@
|
|||
|
||||
int main(int argc, const char* argv[])
|
||||
{
|
||||
iconvert_adaptor<wchar_t, std::char_traits<wchar_t>, char> ia(std::cin);
|
||||
oconvert_adaptor<wchar_t, std::char_traits<wchar_t>, char> oa(std::cout);
|
||||
iconvert_adaptor<char> ia(std::cin);
|
||||
oconvert_adaptor<char> oa(std::cout);
|
||||
|
||||
oa.imbue(std::locale(oa.getloc(), new utf16leucs2codecvt()));
|
||||
ia.imbue(std::locale(ia.getloc(), new base64codecvt()));
|
||||
|
||||
while(ia)
|
||||
{
|
||||
oa << static_cast<wchar_t>(ia.get());
|
||||
oa << static_cast<char>(ia.get());
|
||||
oa.flush();
|
||||
} // while
|
||||
|
||||
|
|
Loading…
Reference in a new issue