
Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`, now with "east const" enforcement. Use `clang-format` version 18. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. Issue: #26123
24 lines
500 B
C++
24 lines
500 B
C++
#include <unicode/ucal.h>
|
|
#include <unicode/uclean.h>
|
|
#include <unicode/ucnv.h>
|
|
#include <unicode/udat.h>
|
|
#include <unicode/ustring.h>
|
|
#include <unicode/utypes.h>
|
|
|
|
int main()
|
|
{
|
|
UConverter* cnv = 0;
|
|
UErrorCode status = U_ZERO_ERROR;
|
|
ucnv_open(NULL, &status);
|
|
|
|
UChar uchars[100];
|
|
char const* chars = "Test";
|
|
if (cnv && U_SUCCESS(status)) {
|
|
int32_t len = ucnv_toUChars(cnv, uchars, 100, chars, -1, &status);
|
|
}
|
|
|
|
ucnv_close(cnv);
|
|
u_cleanup();
|
|
return (U_FAILURE(status) ? 1 : 0);
|
|
}
|