2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
4 * FILE: dat_mbsrtowcs.c
6 * MBSRTOWCS: size_t mbsrtowcs (wchar_t *ws, char **s, size_t n,
11 TST_MBSRTOWCS tst_mbsrtowcs_loc
[] = {
13 { Tmbsrtowcs
, TST_LOC_de
},
15 { /*----------------- #01 -----------------*/
25 { 0,1,3, { 0x00FC,0x00E4,0x00F6,0x0000 } },
26 { 0,1,3, { 0x00FC,0x00E4,0x00F6,0x0000 } },
27 { 0,1,2, { 0x00FC,0x00E4,0x00F6,0x0000 } },
31 { /*----------------- #02 -----------------*/
41 { 0,1,3, { 0x00FC,0x00E4,0x00F6,0x0000 } },
42 { 0,1,0, { 0x0000 } },
43 { 0,1,3, { 0x0000 } },
47 { /*----------------- END -----------------*/
54 { Tmbsrtowcs
, TST_LOC_enUS
},
56 { /*----------------- #01 -----------------*/
66 { 0,1,3, { 0x0041,0x0042,0x0043,0x0000 } },
67 { 0,1,3, { 0x0041,0x0042,0x0043,0x0000 } },
68 { 0,1,2, { 0x0041,0x0042,0x0043,0x0000 } },
72 { /*----------------- #02 -----------------*/
82 { 0,1,3, { 0x0041,0x0042,0x0043,0x0000 } },
83 { 0,1,0, { 0x0000 } },
84 { 0,1,3, { 0x0000 } },
88 { /*----------------- END -----------------*/
95 { Tmbsrtowcs
, TST_LOC_eucJP
},
97 { /*----------------- #01 -----------------*/
100 { 1, "\244\242\244\244\244\246ABC", 7, 0,0 },
101 { 1, "\244\242\244\244\244\246ABC", 6, 0,0 },
102 { 1, "\244\242\244\244\244\246ABC", 4, 0,0 },
107 { 0,1,6, { 0x3042,0x3044,0x3046,0x0041,0x0042,0x0043,0x0000 }},
108 { 0,1,6, { 0x3042,0x3044,0x3046,0x0041,0x0042,0x0043,0x0000 }},
109 { 0,1,4, { 0x3042,0x3044,0x3046,0x0041,0x0000 } },
113 { /*----------------- #02 -----------------*/
116 { 1, "\244\242\244\244\244\246ABC", 7, 0,0 },
118 { 0, "\244\242\244\244\244\246ABC", 7, 0,0 },
123 { 0,1,6, { 0x3042,0x3044,0x3046,0x0041,0x0042,0x0043,0x0000 }},
124 { 0,1,0, { 0x0000 } },
125 { 0,1,6, { 0x0000 } },
129 { /*----------------- END -----------------*/
135 { Tmbsrtowcs
, TST_LOC_end
}