#include <unicode/utypes.h> #include <unicode/ustring.h> #include <unicode/ustdio.h> int main() { UChar source[] = u"!"; UChar target[100]; UErrorCode status = U_ZERO_ERROR; // Преобразуем строку в верхний регистр u_strToUpper(target, 100, source, -1, NULL, &status); if (U_SUCCESS(status)) { // Используем u_printf для вывода строки u_printf("Uppercase: %S\n", target); } else { u_printf("ICU Error: %s\n", u_errorName(status)); } return 0; }