|
Packit |
6c4009 |
/*
|
|
Packit |
6c4009 |
* TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
|
|
Packit |
6c4009 |
*
|
|
Packit |
6c4009 |
* FILE: dat_wctrans.c
|
|
Packit |
6c4009 |
*
|
|
Packit |
6c4009 |
* WCTRANS: wctrans_t wctrans( const char *charclass );
|
|
Packit |
6c4009 |
*/
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/*
|
|
Packit |
6c4009 |
* NOTE:
|
|
Packit |
6c4009 |
* When a return value is expected to be 0 (false),
|
|
Packit |
6c4009 |
* set ret_flg=1 and set ret_val=0.
|
|
Packit |
6c4009 |
* Otherwise just set ret_flg=0.
|
|
Packit |
6c4009 |
*/
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
TST_WCTRANS tst_wctrans_loc [] = {
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
{ { Twctrans, TST_LOC_de },
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
{ /*inp*/ { "" }, /* #1 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,1,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "upper" }, /* #2 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,1,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "lower" }, /* #3 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,1,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "toupper" }, /* #4 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,0,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "tolower" }, /* #5 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,0,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "xxxxx" }, /* #6 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,1,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ .is_last = 1 }
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ { Twctrans, TST_LOC_enUS },
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
{ /*inp*/ { "" }, /* #1 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,1,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "upper" }, /* #2 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,1,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "lower" }, /* #3 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,1,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "toupper" }, /* #4 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,0,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "tolower" }, /* #5 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,0,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "xxxxx" }, /* #6 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,1,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ .is_last = 1 }
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ { Twctrans, TST_LOC_eucJP },
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
{ /*inp*/ { "" }, /* #1 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,1,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "upper" }, /* #2 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,1,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "lower" }, /* #3 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,1,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "toupper" }, /* #4 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,0,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "tolower" }, /* #5 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,0,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "xxxxx" }, /* #6 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,1,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "tojhira" }, /* #7 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,0,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ /*inp*/ { "tojkata" }, /* #8 */
|
|
Packit |
6c4009 |
/*exp*/ { 0,0,0, },
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ .is_last = 1 }
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
},
|
|
Packit |
6c4009 |
{ { Twctrans, TST_LOC_end }}
|
|
Packit |
6c4009 |
};
|