mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-17 18:12:04 +01:00
reverted previous bit of test code :)
This commit is contained in:
parent
14e1d2c4e9
commit
e8a40853c0
1 changed files with 1 additions and 22 deletions
|
@ -42,8 +42,7 @@ bool processArgs(int argc, const char* argv[]);
|
||||||
bool imbueInput(int& argn, int argc, const char* argv[]);
|
bool imbueInput(int& argn, int argc, const char* argv[]);
|
||||||
bool imbueOutput(int& argn, int argc, const char* argv[]);
|
bool imbueOutput(int& argn, int argc, const char* argv[]);
|
||||||
|
|
||||||
|
int main(int argc, const char* argv[])
|
||||||
/*int main(int argc, const char* argv[])
|
|
||||||
{
|
{
|
||||||
if(!processArgs(argc, argv))
|
if(!processArgs(argc, argv))
|
||||||
{
|
{
|
||||||
|
@ -63,26 +62,6 @@ bool imbueOutput(int& argn, int argc, const char* argv[]);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
} // main
|
} // main
|
||||||
*/
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
/* typedef oconvert_adaptor<wchar_t, std::char_traits<wchar_t>, char, std::char_traits<char> > Narrower;
|
|
||||||
Narrower oCharAdaptor(std::cout);
|
|
||||||
|
|
||||||
oCharAdaptor.imbue(std::locale(oCharAdaptor.getloc(), new utf8ucs2codecvt()));
|
|
||||||
oCharAdaptor << L"Hello Ì Õ";
|
|
||||||
oCharAdaptor.flush();*/
|
|
||||||
|
|
||||||
oconvert_adaptor<char> oByteConvertor(std::cout);
|
|
||||||
typedef oconvert_adaptor<wchar_t,
|
|
||||||
std::char_traits<wchar_t>,
|
|
||||||
char, std::char_traits<char> > Narrower;
|
|
||||||
Narrower oCharAdaptor(oByteConvertor);
|
|
||||||
|
|
||||||
oCharAdaptor.imbue(std::locale(oCharAdaptor.getloc(), new utf8ucs2codecvt()));
|
|
||||||
oCharAdaptor << L"Hello Ì Õ";
|
|
||||||
oByteConvertor.flush();
|
|
||||||
} // main
|
|
||||||
|
|
||||||
void wchar_transcode()
|
void wchar_transcode()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue