2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
6 * MBRLEN: size_t mbrlen (const char *s, size_t n, mbstate_t *ps);
11 * (1) A mbstate object is initialized for
12 * every new data record by the test program.
14 * (2) USE_MBCURMAX is defined as a value of 99.
19 TST_MBRLEN tst_mbrlen_loc
[] = {
21 { Tmbrlen
, TST_LOC_de
},
23 { /*----------------- #01 -----------------*/
28 { 1, "\300", USE_MBCURMAX
, 0, 0 },
39 { /*----------------- #02 -----------------*/
42 { 1, "\300\001", 0, 0, 0 },
43 { 1, "\300\001", 1, 0, 0 },
44 { 1, "\317\001", USE_MBCURMAX
, 0, 0 },
59 { Tmbrlen
, TST_LOC_enUS
},
61 { /*----------------- #01 -----------------*/
66 { 1, "A", USE_MBCURMAX
, 0, 0 },
77 { /*----------------- #02 -----------------*/
80 { 1, "\317\001", 0, 1, 0 },
81 { 1, "\317\001", 1, 1, 0 },
82 { 1, "\317\001", USE_MBCURMAX
, 1, 0 },
97 { Tmbrlen
, TST_LOC_eucJP
},
99 { /*----------------- #01 -----------------*/
102 { 1, "\317\302", 1, 1, 1 },
104 { 1, "\317\302", USE_MBCURMAX
, 1, 1 },
115 { /*----------------- #02 -----------------*/
118 { 1, "\317", 1, 1, 0 },
119 { 1, "\302", 1, 1, 0 },
120 { 1, "\317\302", USE_MBCURMAX
, 0, 0 },
126 #ifdef SHOJI_IS_RIGHT
129 /* XXX ISO C explicitly says that the return value does not
130 XXX reflect the bytes contained in the state. */
137 { /*----------------- #03 -----------------*/
140 { 1, "\216\217", 0, 0, 0 },
141 { 1, "\216\217", 1, 0, 0 },
142 { 1, "\216\217", USE_MBCURMAX
, 0, 0 },
157 { Tmbrlen
, TST_LOC_end
}