Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

BLOCXX_to_UTF8.cpp

Go to the documentation of this file.
00001 
00002 
00007 #include "UTF8Utils.hpp"
00008 #include "String.hpp"
00009 #include <iostream>
00010 
00011 using namespace BLOCXX_NAMESPACE;
00012 using namespace std;
00013 
00014 int main()
00015 {
00016    try
00017    {
00018       String in = String::getLine(cin);
00019       String utf8 = UTF8Utils::UCS4toUTF8(in.toUInt32(16));
00020       for (int i = 0; i < utf8.length(); ++i)
00021       {
00022          std::cout << "0x" << hex << UInt32(UInt8(utf8[i])) << ' ';
00023       }
00024    }
00025    catch (Exception& e)
00026    {
00027       cerr << e << endl;
00028       return 1;
00029    }
00030    return 0;
00031 }
00032 

Generated on Mon Sep 12 23:56:34 2005 for blocxx by  doxygen 1.4.4