/* * Testcase used while debugging various bits of the code. */ #include "XBase.h" #include "XArch.h" #include "CArch.h" #include "CUnicode.h" #include "CLog.h" #include "Version.h" #include int test1() { CString text = CString("Ah! Megami-Sama!"); CString utf8Text = CUnicode::textToUTF8(text); printf("utf8Text='%s'\n", utf8Text.c_str()); return 0; } int main(int argc, char** argv) { try { CArch arch; CLOG; test1(); delete CLOG; return 0; } catch (XBase& e) { printf("Uncaught exception: %s\n", e.what()); throw; } catch (XArch& e) { printf("Initialization failed: %s\n", e.what().c_str()); return kExitFailed; } catch (...) { printf("Uncaught exception: \n"); throw; } }