glibc/localedata/tests-mbwc/dat_iswpunct.c
Andreas Jaeger ec7956d922 * tests-mbwc/tst_funcs.h (TMD_ERRET): Don't declare err_flg.
(TST_DECL_VARS): Don't declare err_flg. 
(TST_GET_ERRET): Don't set err_flg. 
(TST_GET_ERRET_SEQ): Likewise. 
(TST_IF_RETURN): Don't use err_flg, check err_exp directly.
	* tests-mbwc/dat_swscanf.c: Don't set err_flg.
	* tests-mbwc/dat_iswalnum.c: Likewise.
	* tests-mbwc/dat_iswalpha.c: Likewise.
	* tests-mbwc/dat_iswcntrl.c: Likewise.
	* tests-mbwc/dat_iswctype.c: Likewise.
	* tests-mbwc/dat_iswdigit.c: Likewise.
	* tests-mbwc/dat_iswgraph.c: Likewise.
	* tests-mbwc/dat_iswlower.c: Likewise.
	* tests-mbwc/dat_iswprint.c: Likewise.
	* tests-mbwc/dat_iswpunct.c: Likewise.
	* tests-mbwc/dat_iswspace.c: Likewise.
	* tests-mbwc/dat_iswupper.c: Likewise.
	* tests-mbwc/dat_iswxdigit.c: Likewise.
	* tests-mbwc/dat_mblen.c: Likewise.
	* tests-mbwc/dat_mbrlen.c: Likewise.
	* tests-mbwc/dat_mbrtowc.c: Likewise.
	* tests-mbwc/dat_mbsrtowcs.c: Likewise.
	* tests-mbwc/dat_mbstowcs.c: Likewise.
	* tests-mbwc/dat_mbtowc.c: Likewise.
	* tests-mbwc/dat_strcoll.c: Likewise.
	* tests-mbwc/dat_strfmon.c: Likewise.
	* tests-mbwc/dat_strxfrm.c: Likewise.
	* tests-mbwc/dat_swscanf.c: Likewise.
	* tests-mbwc/dat_towctrans.c: Likewise.
	* tests-mbwc/dat_towlower.c: Likewise.
	* tests-mbwc/dat_towupper.c: Likewise.
	* tests-mbwc/dat_wcrtomb.c: Likewise.
	* tests-mbwc/dat_wcscat.c: Likewise.
	* tests-mbwc/dat_wcschr.c: Likewise.
	* tests-mbwc/dat_wcscmp.c: Likewise.
	* tests-mbwc/dat_wcscoll.c: Likewise.
	* tests-mbwc/dat_wcscpy.c: Likewise.
	* tests-mbwc/dat_wcscspn.c: Likewise.
	* tests-mbwc/dat_wcslen.c: Likewise.
	* tests-mbwc/dat_wcsncat.c: Likewise.
	* tests-mbwc/dat_wcsncmp.c: Likewise.
	* tests-mbwc/dat_wcsncpy.c: Likewise.
	* tests-mbwc/dat_wcspbrk.c: Likewise.
	* tests-mbwc/dat_wcsrtombs.c: Likewise.
	* tests-mbwc/dat_wcsspn.c: Likewise.
	* tests-mbwc/dat_wcsstr.c: Likewise.
	* tests-mbwc/dat_wcstod.c: Likewise.
	* tests-mbwc/dat_wcstok.c: Likewise.
	* tests-mbwc/dat_wcstombs.c: Likewise.
	* tests-mbwc/dat_wcswidth.c: Likewise.
	* tests-mbwc/dat_wcsxfrm.c: Likewise.
	* tests-mbwc/dat_wctob.c: Likewise.
	* tests-mbwc/dat_wctomb.c: Likewise.
	* tests-mbwc/dat_wctrans.c: Likewise.
	* tests-mbwc/dat_wctype.c: Likewise.
	* tests-mbwc/dat_wcwidth.c: Likewise.
	* tests-mbwc/dat_isw-funcs.h: Fix comment.
2000-08-18  Andreas Jaeger  <aj@suse.de>

	* tests-mbwc/tst_funcs.h (TMD_ERRET): Don't declare err_flg.
	(TST_DECL_VARS): Don't declare err_flg.
	(TST_GET_ERRET): Don't set err_flg.
	(TST_GET_ERRET_SEQ): Likewise.
	(TST_IF_RETURN): Don't use err_flg, check err_exp directly.

	* tests-mbwc/dat_swscanf.c: Don't set err_flg.
	* tests-mbwc/dat_iswalnum.c: Likewise.
	* tests-mbwc/dat_iswalpha.c: Likewise.
	* tests-mbwc/dat_iswcntrl.c: Likewise.
	* tests-mbwc/dat_iswctype.c: Likewise.
	* tests-mbwc/dat_iswdigit.c: Likewise.
	* tests-mbwc/dat_iswgraph.c: Likewise.
	* tests-mbwc/dat_iswlower.c: Likewise.
	* tests-mbwc/dat_iswprint.c: Likewise.
	* tests-mbwc/dat_iswpunct.c: Likewise.
	* tests-mbwc/dat_iswspace.c: Likewise.
	* tests-mbwc/dat_iswupper.c: Likewise.
	* tests-mbwc/dat_iswxdigit.c: Likewise.
	* tests-mbwc/dat_mblen.c: Likewise.
	* tests-mbwc/dat_mbrlen.c: Likewise.
	* tests-mbwc/dat_mbrtowc.c: Likewise.
	* tests-mbwc/dat_mbsrtowcs.c: Likewise.
	* tests-mbwc/dat_mbstowcs.c: Likewise.
	* tests-mbwc/dat_mbtowc.c: Likewise.
	* tests-mbwc/dat_strcoll.c: Likewise.
	* tests-mbwc/dat_strfmon.c: Likewise.
	* tests-mbwc/dat_strxfrm.c: Likewise.
	* tests-mbwc/dat_swscanf.c: Likewise.
	* tests-mbwc/dat_towctrans.c: Likewise.
	* tests-mbwc/dat_towlower.c: Likewise.
	* tests-mbwc/dat_towupper.c: Likewise.
	* tests-mbwc/dat_wcrtomb.c: Likewise.
	* tests-mbwc/dat_wcscat.c: Likewise.
	* tests-mbwc/dat_wcschr.c: Likewise.
	* tests-mbwc/dat_wcscmp.c: Likewise.
	* tests-mbwc/dat_wcscoll.c: Likewise.
	* tests-mbwc/dat_wcscpy.c: Likewise.
	* tests-mbwc/dat_wcscspn.c: Likewise.
	* tests-mbwc/dat_wcslen.c: Likewise.
	* tests-mbwc/dat_wcsncat.c: Likewise.
	* tests-mbwc/dat_wcsncmp.c: Likewise.
	* tests-mbwc/dat_wcsncpy.c: Likewise.
	* tests-mbwc/dat_wcspbrk.c: Likewise.
	* tests-mbwc/dat_wcsrtombs.c: Likewise.
	* tests-mbwc/dat_wcsspn.c: Likewise.
	* tests-mbwc/dat_wcsstr.c: Likewise.
	* tests-mbwc/dat_wcstod.c: Likewise.
	* tests-mbwc/dat_wcstok.c: Likewise.
	* tests-mbwc/dat_wcstombs.c: Likewise.
	* tests-mbwc/dat_wcswidth.c: Likewise.
	* tests-mbwc/dat_wcsxfrm.c: Likewise.
	* tests-mbwc/dat_wctob.c: Likewise.
	* tests-mbwc/dat_wctomb.c: Likewise.
	* tests-mbwc/dat_wctrans.c: Likewise.
	* tests-mbwc/dat_wctype.c: Likewise.
	* tests-mbwc/dat_wcwidth.c: Likewise.
	* tests-mbwc/dat_isw-funcs.h: Fix comment.
2000-08-18 09:34:18 +00:00

122 lines
4.6 KiB
C

/*
* TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
*
* FILE: dat_iswpunct.c
*
* ISW*: int iswpunct (wint_t wc);
*/
#include "dat_isw-funcs.h"
TST_ISW_LOC (PUNCT, punct) = {
{ TST_ISW_REC (de, punct)
{
{ { 0x0080 }, { 0,1,0 } }, /* CTRL */
{ { 0x009F }, { 0,1,0 } }, /* CTRL */
{ { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */
{ { 0x00A1 }, { 0,0,0 } }, /* UD ! */
{ { 0x00B0 }, { 0,0,0 } }, /* Degree */
{ { 0x00B1 }, { 0,0,0 } }, /* +- sign */
{ { 0x00B2 }, { 0,0,0 } }, /* SUP 2 */
{ { 0x00B3 }, { 0,0,0 } }, /* SUP 3 */
{ { 0x00B4 }, { 0,0,0 } }, /* ACUTE */
{ { 0x00B8 }, { 0,0,0 } }, /* CEDILLA */
{ { 0x00B9 }, { 0,0,0 } }, /* SUP 1 */
{ { 0x00BB }, { 0,0,0 } }, /* >> */
{ { 0x00BC }, { 0,0,0 } }, /* 1/4 */
{ { 0x00BD }, { 0,0,0 } }, /* 1/2 */
{ { 0x00BE }, { 0,0,0 } }, /* 3/4 */
{ { 0x00BF }, { 0,0,0 } }, /* UD ? */
{ { 0x00C0 }, { 0,1,0 } }, /* A Grave */
{ { 0x00D6 }, { 0,1,0 } }, /* O dia */
{ { 0x00D7 }, { 0,0,0 } }, /* multipl. */
{ { 0x00D8 }, { 0,1,0 } }, /* O stroke */
{ { 0x00DF }, { 0,1,0 } }, /* small Sh */
{ { 0x00E0 }, { 0,1,0 } }, /* a grave */
{ { 0x00F6 }, { 0,1,0 } }, /* o dia */
{ { 0x00F7 }, { 0,0,0 } }, /* division */
{ { 0x00F8 }, { 0,1,0 } }, /* o stroke */
{ { 0x00FF }, { 0,1,0 } }, /* y dia */
{ is_last: 1 } /* Last element. */
}
},
{ TST_ISW_REC (enUS, punct)
{
{ { WEOF }, { 0,1,0 } }, /* 01 */
{ { 0x0000 }, { 0,1,0 } },
{ { 0x001F }, { 0,1,0 } },
{ { 0x0020 }, { 0,1,0 } },
{ { 0x0021 }, { 0,0,0 } },
{ { 0x002F }, { 0,0,0 } },
{ { 0x0030 }, { 0,1,0 } },
{ { 0x0039 }, { 0,1,0 } },
{ { 0x003A }, { 0,0,0 } },
{ { 0x0040 }, { 0,0,0 } },
{ { 0x0041 }, { 0,1,0 } },
{ { 0x005A }, { 0,1,0 } },
{ { 0x005B }, { 0,0,0 } },
{ { 0x0060 }, { 0,0,0 } },
{ { 0x0061 }, { 0,1,0 } },
{ { 0x007A }, { 0,1,0 } },
{ { 0x007B }, { 0,0,0 } },
{ { 0x007E }, { 0,0,0 } },
{ { 0x007F }, { 0,1,0 } },
{ { 0x0080 }, { 0,1,0 } }, /* 20 */
{ is_last: 1 } /* Last element. */
}
},
{ TST_ISW_REC (eucJP, punct)
{
{ { 0x3000 }, { 0,1,0 } }, /* IDEO. SPACE */
{ { 0x3020 }, { 0,1,0 } }, /* POSTAL MARK FACE */
{ { 0x3029 }, { 0,1,0 } }, /* Hangzhou NUM9 */
{ { 0x302F }, { 0,1,0 } }, /* Diacritics(Hangul) */
{ { 0x3037 }, { 0,1,0 } }, /* Separator Symbol */
{ { 0x303F }, { 0,1,0 } }, /* IDEO. HALF SPACE */
{ { 0x3041 }, { 0,1,0 } }, /* HIRAGANA a */
{ { 0x3094 }, { 0,1,0 } }, /* HIRAGANA u" */
{ { 0x3099 }, { 0,1,0 } }, /* SOUND MARK */
{ { 0x309E }, { 0,1,0 } }, /* ITERATION MARK */ /* 10 */
{ { 0x30A1 }, { 0,1,0 } }, /* KATAKANA a */
{ { 0x30FA }, { 0,1,0 } }, /* KATAKANA wo" */
{ { 0x30FB }, { 0,0,0 } }, /* KATAKANA MID.DOT */
{ { 0x30FE }, { 0,1,0 } }, /* KATAKANA ITERATION */
{ { 0x3191 }, { 0,1,0 } }, /* KANBUN REV.MARK */
{ { 0x3243 }, { 0,1,0 } }, /* IDEO. MARK (reach) */
{ { 0x32CB }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
{ { 0x32FE }, { 0,1,0 } }, /* MARU KATAKANA wo */
{ { 0x33FE }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
{ { 0x4E00 }, { 0,1,0 } }, /* CJK UNI.IDEO. */ /* 20 */
{ { 0x4E05 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
{ { 0x4E06 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
{ { 0x4E07 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
{ { 0x4FFF }, { 0,1,0 } }, /* CJK UNI.IDEO. */
{ { 0x9000 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
{ { 0x9006 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
{ { 0x9007 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
{ { 0x9FA4 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
{ { 0x9FA5 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
{ { 0xFE4F }, { 0,1,0 } }, /* CJK UNI.IDEO. */ /* 30 */
{ { 0xFF0F }, { 0,0,0 } }, /* FULL SLASH */
{ { 0xFF19 }, { 0,1,0 } }, /* FULL 9 */
{ { 0xFF20 }, { 0,0,0 } }, /* FULL @ */
{ { 0xFF3A }, { 0,1,0 } }, /* FULL Z */
{ { 0xFF40 }, { 0,0,0 } }, /* FULL GRAVE ACC. */
{ { 0xFF5A }, { 0,1,0 } }, /* FULL z */
{ { 0xFF5E }, { 0,0,0 } }, /* FULL ~ (tilde) */
{ { 0xFF61 }, { 0,0,0 } }, /* HALF IDEO.STOP. . */
{ { 0xFF65 }, { 0,0,0 } }, /* HALF KATA MID.DOT */
{ { 0xFF66 }, { 0,1,0 } }, /* HALF KATA WO */ /* 40 */
{ { 0xFF6F }, { 0,1,0 } }, /* HALF KATA tu */
{ { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */
{ { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
{ { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
{ is_last: 1 } /* Last element. */
}
},
{ TST_ISW_REC (end, punct) }
};