- UVersionInfo icu;
- char str[200];
- printf("<ICUINFO>\n");
- printf("International Components for Unicode for C/C++\n");
- printf("%s\n", U_COPYRIGHT_STRING);
- printf("Compiled-Version: %s\n", U_ICU_VERSION);
- u_getVersion(icu);
- u_versionToString(icu, str);
- printf("Runtime-Version: %s\n", str);
- printf("Compiled-Unicode-Version: %s\n", U_UNICODE_VERSION);
- u_getUnicodeVersion(icu);
- u_versionToString(icu, str);
- printf("Runtime-Unicode-Version: %s\n", U_UNICODE_VERSION);
- printf("Platform: %s\n", getPlatform());
-#if defined(U_BUILD)
- printf("Build: %s\n", U_BUILD);
-#if defined(U_HOST)
- if(strcmp(U_BUILD,U_HOST)) {
- printf("Host: %s\n", U_HOST);
- }
-#endif
-#endif
-#if defined(U_CC)
- printf("C compiler: %s\n", U_CC);
-#endif
-#if defined(U_CXX)
- printf("C++ compiler: %s\n", U_CXX);
-#endif
-#if defined(CYGWINMSVC)
- printf("Cygwin: CYGWINMSVC\n");
-#endif
- printf("ICUDATA: %s\n", U_ICUDATA_NAME);