source: trunk/src/libctests/glibc/localedata/tests-mbwc/dat_wctob.c@ 2036

Last change on this file since 2036 was 2036, checked in by bird, 20 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1/*
2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
3 *
4 * FILE: dat_wctob.c
5 *
6 * ISW*: int wctob( wint_t wc );
7 */
8
9
10TST_WCTOB tst_wctob_loc [] = {
11
12 { { Twctob, TST_LOC_de },
13 {
14 { { WEOF }, { 0, 1, EOF } },
15 { { 0x0020 }, { 0, 1, 0x20 } },
16 { { 0x0061 }, { 0, 1, 0x61 } },
17 { { 0x0080 }, { 0, 1, 0x80 } },
18 { { 0x00C4 }, { 0, 1, 0xC4 } },
19 { { 0x30C4 }, { 0, 1, EOF } },
20 { .is_last = 1 } /* Last element. */
21 }
22 },
23 { { Twctob, TST_LOC_enUS },
24 {
25 { { WEOF }, { 0, 1, EOF } },
26 { { 0x0020 }, { 0, 1, 0x20 } },
27 { { 0x0061 }, { 0, 1, 0x61 } },
28#ifdef SHOJI_IS_RIGHT
29 { { 0x0080 }, { 0, 1, 0x80 } },
30 { { 0x00C4 }, { 0, 1, 0xC4 } },
31#else
32 /* XXX These are no valid characters. */
33 { { 0x0080 }, { 0, 1, EOF } },
34 { { 0x00C4 }, { 0, 1, EOF } },
35#endif
36 { { 0x30C4 }, { 0, 1, EOF } },
37 { .is_last = 1 } /* Last element. */
38 }
39 },
40 { { Twctob, TST_LOC_eucJP },
41 {
42 { { WEOF }, { 0, 1, EOF } },
43 { { 0x0020 }, { 0, 1, 0x20 } },
44 { { 0x0061 }, { 0, 1, 0x61 } },
45 { { 0x0080 }, { 0, 1, 0x80 } },
46 { { 0x00FF }, { 0, 1, EOF } },
47 { { 0x00C4 }, { 0, 1, EOF } },
48 { { 0x30C4 }, { 0, 1, EOF } },
49 { .is_last = 1 } /* Last element. */
50 }
51 },
52 { { Twctob, TST_LOC_end } }
53};
Note: See TracBrowser for help on using the repository browser.