Back to index

glibc  2.9
dat_wcschr.c
Go to the documentation of this file.
00001 /*
00002  *  TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
00003  *
00004  *      FILE: dat_wcschr.c
00005  *
00006  *      WCSCHR:  wchar_t  *wcschr (const wchar_t *ws, wchar_t wc);
00007  */
00008 
00009 TST_WCSCHR tst_wcschr_loc [] = {
00010 
00011     {  { Twcschr, TST_LOC_de },
00012        {
00013          { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x00C0 },  /* #1 */
00014            /*expect*/ { 0,1,(wchar_t *)NULL },
00015          },
00016          { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x00C1 },  /* #2 */
00017            /*expect*/ { 0,0,0 },
00018          },
00019          { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x00C2 },  /* #3 */
00020            /*expect*/ { 0,0,0 },
00021          },
00022          { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x00C3 },  /* #4 */
00023            /*expect*/ { 0,0,0 },
00024          },
00025          { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x0000 },  /* #5 */
00026            /*expect*/ { 0,0,0 },
00027          },
00028          { /*input.*/ { { 0x0000,0x00C2,0x00C3,0x0000 }, 0x00C1 },  /* #6 */
00029            /*expect*/ { 0,1,(wchar_t *)NULL },
00030          },
00031          { /*input.*/ { { 0x0000,0x00C2,0x00C3,0x0000 }, 0x0000 },  /* #7 */
00032            /*expect*/ { 0,0,0 },
00033          },
00034          { .is_last = 1 }
00035        }
00036     },
00037     {  { Twcschr, TST_LOC_enUS },
00038        {
00039          { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0040 },  /* #1 */
00040            /*expect*/ { 0,1,(wchar_t *)NULL },
00041          },
00042          { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0041 },  /* #2 */
00043            /*expect*/ { 0,0,0 },
00044          },
00045          { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0042 },  /* #3 */
00046            /*expect*/ { 0,0,0 },
00047          },
00048          { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0043 },  /* #4 */
00049            /*expect*/ { 0,0,0 },
00050          },
00051          { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0000 },  /* #5 */
00052            /*expect*/ { 0,0,0 },
00053          },
00054          { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 }, 0x0041 },  /* #6 */
00055            /*expect*/ { 0,1,(wchar_t *)NULL },
00056          },
00057          { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 }, 0x0000 },  /* #7 */
00058            /*expect*/ { 0,0,0 },
00059          },
00060          { .is_last = 1 }
00061        }
00062     },
00063     {  { Twcschr, TST_LOC_eucJP },
00064        {
00065          { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x3040 },  /* #1 */
00066            /*expect*/ { 0,1,(wchar_t *)NULL },
00067          },
00068          { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x3041 },  /* #2 */
00069            /*expect*/ { 0,0,0 },
00070          },
00071          { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x3042 },  /* #3 */
00072            /*expect*/ { 0,0,0 },
00073          },
00074          { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x3043 },  /* #4 */
00075            /*expect*/ { 0,0,0 },
00076          },
00077          { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x0000 },  /* #5 */
00078            /*expect*/ { 0,0,0 },
00079          },
00080          { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 }, 0x3041 },  /* #6 */
00081            /*expect*/ { 0,1,(wchar_t *)NULL },
00082          },
00083          { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 }, 0x0000 },  /* #7 */
00084            /*expect*/ { 0,0,0 },
00085          },
00086          { .is_last = 1 }
00087        }
00088     },
00089     {  { Twcschr, TST_LOC_end } }
00090 };