1  /*
       2   *  TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
       3   *
       4   *	 FILE:	dat_wctype.c
       5   *
       6   *	 WCTYPE:  wctype_t  wctype( const char *class );
       7   */
       8  
       9  /*
      10   *  NOTE:
      11   *	  When a return value is expected to be 0 (false),
      12   *	  set ret_flg=1 and set ret_val=0.
      13   *	  Otherwise just set ret_flg=0.
      14   */
      15  
      16  
      17  TST_WCTYPE tst_wctype_loc [] = {
      18  
      19      {	{ Twctype, TST_LOC_de },
      20  	{
      21  	  { /*inp*/ { "alnum"	       },  /* #01 */
      22  	    /*exp*/ { 0,0,0,	       },
      23  	  },
      24  	  { /*inp*/ { "alpha"	       },  /* #02 */
      25  	    /*exp*/ { 0,0,0,	       },
      26  	  },
      27  	  { /*inp*/ { "cntrl"	       },  /* #03 */
      28  	    /*exp*/ { 0,0,0,	       },
      29  	  },
      30  	  { /*inp*/ { "digit"	       },  /* #04 */
      31  	    /*exp*/ { 0,0,0,	       },
      32  	  },
      33  	  { /*inp*/ { "graph"	       },  /* #05 */
      34  	    /*exp*/ { 0,0,0,	       },
      35  	  },
      36  	  { /*inp*/ { "lower"	       },  /* #06 */
      37  	    /*exp*/ { 0,0,0,	       },
      38  	  },
      39  	  { /*inp*/ { "print"	       },  /* #07 */
      40  	    /*exp*/ { 0,0,0,	       },
      41  	  },
      42  	  { /*inp*/ { "punct"	       },  /* #08 */
      43  	    /*exp*/ { 0,0,0,	       },
      44  	  },
      45  	  { /*inp*/ { "space"	       },  /* #09 */
      46  	    /*exp*/ { 0,0,0,	       },
      47  	  },
      48  	  { /*inp*/ { "upper"	       },  /* #10 */
      49  	    /*exp*/ { 0,0,0,	       },
      50  	  },
      51  	  { /*inp*/ { "xdigit"	       },  /* #11 */
      52  	    /*exp*/ { 0,0,0,	       },
      53  	  },
      54  	  { /*inp*/ { ""	       },  /* #12 */
      55  	    /*exp*/ { 0,1,0,	       },
      56  	  },
      57  	  { /*inp*/ { "ideograph"      },  /* #13 */
      58  	    /*exp*/ { 0,1,0,	       },
      59  	  },
      60  	  { /*inp*/ { "english"	       },  /* #14 */
      61  	    /*exp*/ { 0,1,0,	       },
      62  	  },
      63  	  { /*inp*/ { "ascii"	       },  /* #15 */
      64  	    /*exp*/ { 0,1,0,	       },
      65  	  },
      66  	  { /*inp*/ { "special"	       },  /* #16 */
      67  	    /*exp*/ { 0,1,0,	       },
      68  	  },
      69  	  { .is_last = 1 }
      70  	}
      71      },
      72      {	{ Twctype, TST_LOC_enUS },
      73  	{
      74  	  { /*inp*/ { "alnum"	       },  /* #01 */
      75  	    /*exp*/ { 0,0,0,	       },
      76  	  },
      77  	  { /*inp*/ { "alpha"	       },  /* #02 */
      78  	    /*exp*/ { 0,0,0,	       },
      79  	  },
      80  	  { /*inp*/ { "cntrl"	       },  /* #03 */
      81  	    /*exp*/ { 0,0,0,	       },
      82  	  },
      83  	  { /*inp*/ { "digit"	       },  /* #04 */
      84  	    /*exp*/ { 0,0,0,	       },
      85  	  },
      86  	  { /*inp*/ { "graph"	       },  /* #05 */
      87  	    /*exp*/ { 0,0,0,	       },
      88  	  },
      89  	  { /*inp*/ { "lower"	       },  /* #06 */
      90  	    /*exp*/ { 0,0,0,	       },
      91  	  },
      92  	  { /*inp*/ { "print"	       },  /* #07 */
      93  	    /*exp*/ { 0,0,0,	       },
      94  	  },
      95  	  { /*inp*/ { "punct"	       },  /* #08 */
      96  	    /*exp*/ { 0,0,0,	       },
      97  	  },
      98  	  { /*inp*/ { "space"	       },  /* #09 */
      99  	    /*exp*/ { 0,0,0,	       },
     100  	  },
     101  	  { /*inp*/ { "upper"	       },  /* #10 */
     102  	    /*exp*/ { 0,0,0,	       },
     103  	  },
     104  	  { /*inp*/ { "xdigit"	       },  /* #11 */
     105  	    /*exp*/ { 0,0,0,	       },
     106  	  },
     107  	  { /*inp*/ { ""	       },  /* #12 */
     108  	    /*exp*/ { 0,1,0,	       },
     109  	  },
     110  	  { /*inp*/ { "ideograph"      },  /* #13 */
     111  	    /*exp*/ { 0,1,0,	       },
     112  	  },
     113  	  { /*inp*/ { "english"	       },  /* #14 */
     114  	    /*exp*/ { 0,1,0,	       },
     115  	  },
     116  	  { /*inp*/ { "ascii"	       },  /* #15 */
     117  	    /*exp*/ { 0,1,0,	       },
     118  	  },
     119  	  { /*inp*/ { "special"	       },  /* #16 */
     120  	    /*exp*/ { 0,1,0,	       },
     121  	  },
     122  	  { .is_last = 1 }
     123  	}
     124      },
     125      {	{ Twctype, TST_LOC_eucJP },
     126  	{
     127  	  { /*inp*/ { "alnum"	       },  /* #01 */
     128  	    /*exp*/ { 0,0,0,	       },
     129  	  },
     130  	  { /*inp*/ { "alpha"	       },  /* #02 */
     131  	    /*exp*/ { 0,0,0,	       },
     132  	  },
     133  	  { /*inp*/ { "cntrl"	       },  /* #03 */
     134  	    /*exp*/ { 0,0,0,	       },
     135  	  },
     136  	  { /*inp*/ { "digit"	       },  /* #04 */
     137  	    /*exp*/ { 0,0,0,	       },
     138  	  },
     139  	  { /*inp*/ { "graph"	       },  /* #05 */
     140  	    /*exp*/ { 0,0,0,	       },
     141  	  },
     142  	  { /*inp*/ { "lower"	       },  /* #06 */
     143  	    /*exp*/ { 0,0,0,	       },
     144  	  },
     145  	  { /*inp*/ { "print"	       },  /* #07 */
     146  	    /*exp*/ { 0,0,0,	       },
     147  	  },
     148  	  { /*inp*/ { "punct"	       },  /* #08 */
     149  	    /*exp*/ { 0,0,0,	       },
     150  	  },
     151  	  { /*inp*/ { "space"	       },  /* #09 */
     152  	    /*exp*/ { 0,0,0,	       },
     153  	  },
     154  	  { /*inp*/ { "upper"	       },  /* #10 */
     155  	    /*exp*/ { 0,0,0,	       },
     156  	  },
     157  	  { /*inp*/ { "xdigit"	       },  /* #11 */
     158  	    /*exp*/ { 0,0,0,	       },
     159  	  },
     160  	  { /*inp*/ { "ideogram"       },  /* #12 */
     161  	    /*exp*/ { 0,1,0,	       },
     162  	  },
     163  	  { /*inp*/ { "phonogram"      },  /* #13 */
     164  	    /*exp*/ { 0,1,0,	       },
     165  	  },
     166  	  { /*inp*/ { "jspace"	       },  /* #14 */
     167  	    /*exp*/ { 0,0,0,	       },
     168  	  },
     169  	  { /*inp*/ { "jhira"	       },  /* #15 */
     170  	    /*exp*/ { 0,0,0,	       },
     171  	  },
     172  	  { /*inp*/ { "jkata"	       },  /* #16 */
     173  	    /*exp*/ { 0,0,0,	       },
     174  	  },
     175  	  { /*inp*/ { "jkanji"	       },  /* #17 */
     176  	    /*exp*/ { 0,0,0,	       },
     177  	  },
     178  	  { /*inp*/ { "jdigit"	       },  /* #18 */
     179  	    /*exp*/ { 0,0,0,	       },
     180  	  },
     181  	  { .is_last = 1 }
     182  	}
     183      },
     184      {	{ Twctype, TST_LOC_end }}
     185  };