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 ASSERT (uc_is_bidi_class ('x', UC_BIDI_L));
29 ASSERT (!uc_is_bidi_class ('x', UC_BIDI_R));
30 ASSERT (!uc_is_bidi_class ('x', UC_BIDI_EN));
31
32 ASSERT (uc_is_bidi_class (0x05D7, UC_BIDI_R));
33 ASSERT (!uc_is_bidi_class (0x05D7, UC_BIDI_L));
34 ASSERT (!uc_is_bidi_class (0x05D7, UC_BIDI_EN));
35
36 ASSERT (uc_is_bidi_class ('7', UC_BIDI_EN));
37 ASSERT (!uc_is_bidi_class ('7', UC_BIDI_L));
38 ASSERT (!uc_is_bidi_class ('7', UC_BIDI_R));
39
40 {
41 unsigned int c;
42
43 for (c = 0; c < 0x110000; c++)
44 ASSERT (uc_is_bidi_class (c, uc_bidi_class (c)));
45 }
46
47 return 0;
48 }