1 #define MAIN_(x) A_CAST_2(x, _utf)
5 int MAIN(int argc
, char *argv
[]) // NOLINT(misc-definitions-in-headers)
7 for (int i
= 1; i
< argc
; ++i
)
11 unsigned int offset
= 0;
12 debug("%s %u", argv
[i
], a_cast_s(unsigned int, a_utf_length(argv
[i
])));
13 for (char const *s
= argv
[i
]; (void)(offset
= a_utf_decode(s
, &val
)), offset
; s
+= offset
)
15 a_utf_encode(A_NULL
, val
);
16 buf
[a_utf_encode(buf
, val
)] = 0;
17 debug(" %s:%" PRIu32
, buf
, val
);