| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 | /* *  TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY * *	 FILE:	dat_wcwidth.c * *	 WCWIDTH:  int wcwidth (wchar_t wc); */TST_WCWIDTH tst_wcwidth_loc [] = {    {      { Twcwidth, TST_LOC_de },      {	{ /*inp*/ { 0x0000		     },	 /* #01 */	  /*exp*/ { 0,	1,0,	     },	},	{ /*inp*/ { 0x0020		     },	 /* #02 */	  /*exp*/ { 0,	1,1,	     },	},	{ /*inp*/ { 0x007F		     },	 /* #03 */	  /*exp*/ { 0,	1,-1,	     },	},	{ /*inp*/ { 0x0080		     },	 /* #04 */	  /*exp*/ { 0,	1,-1,	     },	},	{ /*inp*/ { 0x00A1		     },	 /* #05 */	  /*exp*/ { 0,	1,1,	     },	},	{ /*inp*/ { 0x00C1		     },	 /* #06 */	  /*exp*/ { 0,	1,1,	     },	},#ifdef SHOJI_IS_RIGHT	/* <WAIVER> */	/* CHECK : wint_t */	{ /*inp*/ { 0x3041		     },	 /* #07 */	  /*exp*/ { 0,	1,0,	     },	},#else	{ /*inp*/ { 0x3041		     },	 /* #07 */	  /*exp*/ { 0,	1,EOF,	     },	},#endif	{ .is_last = 1 }      }    },    {      { Twcwidth, TST_LOC_enUS },      {	{ /*inp*/ { 0x0000		     },	 /* #01 */	  /*exp*/ { 0,	1,0,	     },	},	{ /*inp*/ { 0x0020		     },	 /* #02 */	  /*exp*/ { 0,	1,1,	     },	},	{ /*inp*/ { 0x007F		     },	 /* #03 */	  /*exp*/ { 0,	1,-1,	     },	},	{ /*inp*/ { 0x0080		     },	 /* #04 */	  /*exp*/ { 0,	1,-1,	     },	},	{ /*inp*/ { 0x00A1		     },	 /* #05 */	  /*exp*/ { 0,	1,-1,	     },	},	{ /*inp*/ { 0x00C1		     },	 /* #06 */	  /*exp*/ { 0,	1,-1,	     },	},	{ /*inp*/ { 0x3041		     },	 /* #07 */	  /*exp*/ { 0,	1,-1,	     },	},	{ .is_last = 1 }      }    },#if 0    {      { Twcwidth, TST_LOC_eucJP },      {	{ /*inp*/ { 0x0000		     },	 /* #01 */	  /*exp*/ { 0,	1,0,	     },	},	{ /*inp*/ { 0x0020		     },	 /* #02 */	  /*exp*/ { 0,	1,1,	     },	},	{ /*inp*/ { 0x007F		     },	 /* #03 */	  /*exp*/ { 0,	1,-1,	     },	},	{ /*inp*/ { 0x0080		     },	 /* #04 */	  /*exp*/ { 0,	1,-1,	     },	},#ifdef SHOJI_IS_RIGHT	/* <NO_WAIVER> */	{ /*inp*/ { 0x00A1		     },	 /* #05 */	  /*exp*/ { 0,	1,0,	     },	},#else	/* XXX U00A1 is a valid character in EUC-JP.  */	{ /*inp*/ { 0x00A1		     },	 /* #05 */	  /*exp*/ { 0,	1,2,	     },	},#endif	/* jisx0212 */	{ /*inp*/ { 0x00C1		     },	 /* #06 */	  /*exp*/ { 0,	1,2,	     },	},	{ /*inp*/ { 0x3041		     },	 /* #07 */	  /*exp*/ { 0,	1,2,	     },	},	{ .is_last = 1 }      }    },#else    {      { Twcwidth, TST_LOC_ja_UTF8 },      {	{ /*inp*/ { 0x0000		     },	 /* #01 */	  /*exp*/ { 0,	1,0,	     },	},	{ /*inp*/ { 0x0020		     },	 /* #02 */	  /*exp*/ { 0,	1,1,	     },	},	{ /*inp*/ { 0x007F		     },	 /* #03 */	  /*exp*/ { 0,	1,-1,	     },	},	{ /*inp*/ { 0x0080		     },	 /* #04 */	  /*exp*/ { 0,	1,-1,	     },	},#ifdef SHOJI_IS_RIGHT	/* <NO_WAIVER> */	{ /*inp*/ { 0x00A1		     },	 /* #05 */	  /*exp*/ { 0,	1,0,	     },	},#else	/* XXX U00A1 is a valid character in EUC-JP.UTF-8.  */	{ /*inp*/ { 0x00A1		     },	 /* #05 */	  /*exp*/ { 0,	1,1,	     },	},#endif	/* jisx0212 */	{ /*inp*/ { 0x00C1		     },	 /* #06 */	  /*exp*/ { 0,	1,1,	     },	},	{ /*inp*/ { 0x3041		     },	 /* #07 */	  /*exp*/ { 0,	1,2,	     },	},	{ .is_last = 1 }      }    },#endif    {      { Twcwidth, TST_LOC_end }    }};
 |