This source file includes following definitions.
- main
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 #include <config.h>
18
19 #include "unictype.h"
20
21 #include <string.h>
22
23 #include "macros.h"
24
25 int
26 main ()
27 {
28 ucs4_t mirrored;
29
30 ASSERT (uc_mirror_char ('(', &mirrored) && mirrored == ')');
31 ASSERT (uc_mirror_char (')', &mirrored) && mirrored == '(');
32 ASSERT (uc_mirror_char ('<', &mirrored) && mirrored == '>');
33 ASSERT (uc_mirror_char ('>', &mirrored) && mirrored == '<');
34 ASSERT (uc_mirror_char ('[', &mirrored) && mirrored == ']');
35 ASSERT (uc_mirror_char (']', &mirrored) && mirrored == '[');
36 ASSERT (uc_mirror_char ('{', &mirrored) && mirrored == '}');
37 ASSERT (uc_mirror_char ('}', &mirrored) && mirrored == '{');
38 ASSERT (!uc_mirror_char ('X', &mirrored));
39
40 return 0;
41 }