U00A0 is now print.
[kopensolaris-gnu/glibc.git] / localedata / tests-mbwc / dat_wcstok.c
1 /*
2  *  TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
3  *
4  *       FILE:  dat_wcstok.c
5  *
6  *       WCSTOK: wchar_t *wcstok (wchar_t *ws, const wchar_t *dlm,
7  *                                wchar_t **pt);
8  */
9
10 /*
11  *  NOTE:
12  *        need more test data!
13  *        locale insensitive function...
14  */
15
16
17
18
19 TST_WCSTOK tst_wcstok_loc [] = {
20   {
21     { Twcstok, TST_LOC_de },
22     {
23       {
24         {
25           {
26             { 1, { 0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,0x00D8,
27                    0x00D9,0x0000 },
28               {        0x00D3,0x00D2,       0x00D5 }
29             },
30             { 0, { 0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,0x00D8,
31                    0x00D9,0x0000 },
32               {        0x00D3,0x00D2,       0x00D5 }
33             },
34             { 0, { 0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,0x00D8,
35                    0x00D9,0x0000 },
36               {        0x00D3,0x00D2,       0x00D5 }
37             },
38           }
39         },
40         {
41           {
42             { 0, 0,0,
43               { 0x00D1,0x0000 }
44             },
45             { 0, 0,0,
46               {                      0x00D4,0x0000 }
47             },
48             { 0, 0,0,
49               { 0x00D6,0x00D7,0x00D8,0x00D9,0x0000 }
50             },
51           }
52         }
53       },
54       { is_last: 1 }
55     }
56   },
57   {
58     { Twcstok, TST_LOC_enUS },
59     {
60       {
61         {
62           {
63             { 1, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
64                    0x0049,0x0000 },
65               {        0x0043,0x0042,       0x0045 }
66             },
67             { 0, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
68                    0x0049,0x0000 },
69               {        0x0043,0x0042,       0x0045 }
70             },
71             { 0, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
72                    0x0049,0x0000 },
73               {        0x0043,0x0042,       0x0045 }
74             },
75           }
76         },
77         {
78           {
79             { 0, 0,0,
80               { 0x0041,0x0000 }
81             },
82             { 0, 0,0,
83               {                      0x0044,0x0000 }
84             },
85             { 0, 0,0,
86               { 0x0046,0x0047,0x0048,0x0049,0x0000 }
87             },
88           }
89         }
90       },
91       { is_last: 1 }
92     }
93   },
94   {
95     { Twcstok, TST_LOC_eucJP },
96     {
97       {
98         {
99           {
100             { 1, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
101                    0x0049,0x0000 },
102               {        0x0043,0x0042,       0x0045 }
103             },
104             { 0, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
105                    0x0049,0x0000 },
106               {        0x0043,0x0042,       0x0045 }
107             },
108             { 0, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
109                    0x0049,0x0000 },
110               {        0x0043,0x0042,       0x0045 }
111             },
112           }
113         },
114         {
115           {
116             { 0, 0,0,
117               { 0x0041,0x0000 }
118             },
119             { 0, 0,0,
120               {                      0x0044,0x0000 }
121             },
122             { 0, 0,0,
123               { 0x0046,0x0047,0x0048,0x0049,0x0000 }
124             },
125           }
126         }
127       },
128       { is_last: 1 }
129     }
130   },
131   {
132     { Twcstok, TST_LOC_end }
133   }
134 };