123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667 |
- /*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_iswctype.c
- *
- * ISWCTYPE: int iswctype( wint_t wc, wctype_t charclass );
- */
- #include <errno.h>
- #include <stdlib.h>
- #include <wctype.h>
- #include "tst_types.h"
- #include "tgn_locdef.h"
- /*
- * NOTE:
- * Set ret_flg = 1, when a return value is expected to be 0 (FALSE).
- * Set ret_flg = 0, when a return value is expected to be non-zero (TRUE).
- *
- * Since the functions return *non*-zero value for TRUE, can't
- * compare an actual return value with an expected return value.
- * Set the ret_flg=0 for TRUE cases and the tst_isw*() will check
- * the non-zero value.
- *
- * { { WEOF }, { 0,1,0 } },
- * | |
- * | ret_val: an expected return value
- * ret_flg: if 1, compare an actual return value with the
- * ret_val; if 0, the test program checks
- * the actual return value.
- */
- TST_ISWCTYPE tst_iswctype_loc [] = {
- {
- { Tiswctype, TST_LOC_de },
- {
- { { 0x009F, "alnum" }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0, "alnum" }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1, "alnum" }, { 0,1,0 } }, /* UD ! */
- { { 0x00B1, "alnum" }, { 0,1,0 } }, /* +- sign */
- { { 0x00B3, "alnum" }, { 0,1,0 } }, /* SUP 3 */
- { { 0x00B4, "alnum" }, { 0,1,0 } }, /* ACUTE */
- { { 0x00BB, "alnum" }, { 0,1,0 } }, /* >> */
- { { 0x00BE, "alnum" }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF, "alnum" }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0, "alnum" }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6, "alnum" }, { 0,0,0 } }, /* O dia */
- { { 0x00D7, "alnum" }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8, "alnum" }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF, "alnum" }, { 0,0,0 } }, /* small Sh */
- { { 0x00E0, "alnum" }, { 0,0,0 } }, /* a grave */
- { { 0x00F6, "alnum" }, { 0,0,0 } }, /* o dia */
- { { 0x00F7, "alnum" }, { 0,1,0 } }, /* division */
- { { 0x00F8, "alnum" }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF, "alnum" }, { 0,0,0 } }, /* y dia */
- { { 0x0080, "alpha" }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0, "alpha" }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1, "alpha" }, { 0,1,0 } }, /* UD ! */
- { { 0x00B1, "alpha" }, { 0,1,0 } }, /* +- sign */
- { { 0x00B4, "alpha" }, { 0,1,0 } }, /* ACUTE */
- { { 0x00B8, "alpha" }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00B9, "alpha" }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BB, "alpha" }, { 0,1,0 } }, /* >> */
- { { 0x00BE, "alpha" }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF, "alpha" }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0, "alpha" }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6, "alpha" }, { 0,0,0 } }, /* O dia */
- { { 0x00D7, "alpha" }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8, "alpha" }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF, "alpha" }, { 0,0,0 } }, /* small Sh */
- { { 0x00E0, "alpha" }, { 0,0,0 } }, /* a grave */
- { { 0x00F6, "alpha" }, { 0,0,0 } }, /* o dia */
- { { 0x00F7, "alpha" }, { 0,1,0 } }, /* division */
- { { 0x00F8, "alpha" }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF, "alpha" }, { 0,0,0 } }, /* y dia */
- { { 0x0080, "cntrl" }, { 0,0,0 } }, /* CTRL */
- { { 0x009F, "cntrl" }, { 0,0,0 } }, /* CTRL */
- { { 0x00A0, "cntrl" }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00F6, "cntrl" }, { 0,1,0 } }, /* o dia */
- { { 0x00FF, "cntrl" }, { 0,1,0 } }, /* y dia */
- { { 0x00B9, "digit" }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BE, "digit" }, { 0,1,0 } }, /* 3/4 */
- { { 0x009F, "graph" }, { 0,1,0 } }, /* CTRL */
- #ifdef SHOJI_IS_RIGHT
- { { 0x00A0, "graph" }, { 0,1,0 } }, /* NB SPACE */
- #else
- { { 0x00A0, "graph" }, { 0,0,0 } }, /* NB SPACE */
- #endif
- { { 0x00A1, "graph" }, { 0,0,0 } }, /* UD ! */
- { { 0x00B1, "graph" }, { 0,0,0 } }, /* +- sign */
- { { 0x00B3, "graph" }, { 0,0,0 } }, /* SUP 3 */
- { { 0x00B4, "graph" }, { 0,0,0 } }, /* ACUTE */
- { { 0x00BB, "graph" }, { 0,0,0 } }, /* >> */
- { { 0x00BE, "graph" }, { 0,0,0 } }, /* 3/4 */
- { { 0x00C0, "graph" }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6, "graph" }, { 0,0,0 } }, /* O dia */
- { { 0x00D7, "graph" }, { 0,0,0 } }, /* multipl. */
- { { 0x00D8, "graph" }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF, "graph" }, { 0,0,0 } }, /* small Sh */
- { { 0x00F7, "graph" }, { 0,0,0 } }, /* division */
- { { 0x00F8, "graph" }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF, "graph" }, { 0,0,0 } }, /* y dia */
- { { 0x009F, "print" }, { 0,1,0 } }, /* CTRL */
- #ifdef SHOJI_IS_RIGHT
- { { 0x00A0, "print" }, { 0,1,0 } }, /* NB SPACE */
- #else
- { { 0x00A0, "print" }, { 0,0,0 } }, /* NB SPACE */
- #endif
- { { 0x00A1, "print" }, { 0,0,0 } }, /* UD ! */
- { { 0x00B1, "print" }, { 0,0,0 } }, /* +- sign */
- { { 0x00B4, "print" }, { 0,0,0 } }, /* ACUTE */
- { { 0x00B8, "print" }, { 0,0,0 } }, /* CEDILLA */
- { { 0x00B9, "print" }, { 0,0,0 } }, /* SUP 1 */
- { { 0x00BB, "print" }, { 0,0,0 } }, /* >> */
- { { 0x00BE, "print" }, { 0,0,0 } }, /* 3/4 */
- { { 0x00C0, "print" }, { 0,0,0 } }, /* A Grave */
- { { 0x00DF, "print" }, { 0,0,0 } }, /* small Sh */
- { { 0x00F6, "print" }, { 0,0,0 } }, /* o dia */
- { { 0x00F7, "print" }, { 0,0,0 } }, /* division */
- { { 0x00F8, "print" }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF, "print" }, { 0,0,0 } }, /* y dia */
- { { 0x009F, "punct" }, { 0,1,0 } }, /* CTRL */
- #ifdef SHOJI_IS_RIGHT
- { { 0x00A0, "punct" }, { 0,1,0 } }, /* NB SPACE */
- #else
- { { 0x00A0, "punct" }, { 0,0,0 } }, /* NB SPACE */
- #endif
- { { 0x00A1, "punct" }, { 0,0,0 } }, /* UD ! */
- { { 0x00B0, "punct" }, { 0,0,0 } }, /* Degree */
- { { 0x00B1, "punct" }, { 0,0,0 } }, /* +- sign */
- { { 0x00B2, "punct" }, { 0,0,0 } }, /* SUP 2 */
- { { 0x00B3, "punct" }, { 0,0,0 } }, /* SUP 3 */
- { { 0x00B4, "punct" }, { 0,0,0 } }, /* ACUTE */
- { { 0x00B8, "punct" }, { 0,0,0 } }, /* CEDILLA */
- { { 0x00B9, "punct" }, { 0,0,0 } }, /* SUP 1 */
- { { 0x00BB, "punct" }, { 0,0,0 } }, /* >> */
- { { 0x00BC, "punct" }, { 0,0,0 } }, /* 1/4 */
- { { 0x00BD, "punct" }, { 0,0,0 } }, /* 1/2 */
- { { 0x00BE, "punct" }, { 0,0,0 } }, /* 3/4 */
- { { 0x00BF, "punct" }, { 0,0,0 } }, /* UD ? */
- { { 0x00C0, "punct" }, { 0,1,0 } }, /* A Grave */
- { { 0x00D7, "punct" }, { 0,0,0 } }, /* multipl. */
- { { 0x00DF, "punct" }, { 0,1,0 } }, /* small Sh */
- { { 0x00F6, "punct" }, { 0,1,0 } }, /* o dia */
- { { 0x00F7, "punct" }, { 0,0,0 } }, /* division */
- { { 0x00FF, "punct" }, { 0,1,0 } }, /* y dia */
- { { 0x009F, "space" }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0, "space" }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1, "space" }, { 0,1,0 } }, /* UD ! */
- { { 0x00B1, "space" }, { 0,1,0 } }, /* +- sign */
- { { 0x00F8, "space" }, { 0,1,0 } }, /* o stroke */
- { { 0x00B3, "lower" }, { 0,1,0 } }, /* SUP 3 */
- { { 0x00B8, "lower" }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00BE, "lower" }, { 0,1,0 } }, /* 3/4 */
- { { 0x00C0, "lower" }, { 0,1,0 } }, /* A Grave */
- { { 0x00D6, "lower" }, { 0,1,0 } }, /* O dia */
- { { 0x00D8, "lower" }, { 0,1,0 } }, /* O stroke */
- { { 0x00DF, "lower" }, { 0,0,0 } }, /* small Sh */
- { { 0x00E0, "lower" }, { 0,0,0 } }, /* a grave */
- { { 0x00F6, "lower" }, { 0,0,0 } }, /* o dia */
- { { 0x00F7, "lower" }, { 0,1,0 } }, /* division */
- { { 0x00F8, "lower" }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF, "lower" }, { 0,0,0 } }, /* y dia */
- { { 0x00B4, "upper" }, { 0,1,0 } }, /* ACUTE */
- { { 0x00B8, "upper" }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00B9, "upper" }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BE, "upper" }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF, "upper" }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0, "upper" }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6, "upper" }, { 0,0,0 } }, /* O dia */
- { { 0x00D7, "upper" }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8, "upper" }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF, "upper" }, { 0,1,0 } }, /* small Sh */
- { { 0x00FF, "upper" }, { 0,1,0 } }, /* y dia */
- { { 0x00B9, "xdigit" }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BC, "xdigit" }, { 0,1,0 } }, /* 1/4 */
- { .is_last = 1 }
- }
- },
- {
- { Tiswctype, TST_LOC_enUS },
- {
- { { WEOF, "alnum" }, { 0,1,0 } },
- { { 0x0000, "alnum" }, { 0,1,0 } },
- { { 0x001F, "alnum" }, { 0,1,0 } },
- { { 0x0020, "alnum" }, { 0,1,0 } },
- { { 0x0021, "alnum" }, { 0,1,0 } },
- { { 0x002F, "alnum" }, { 0,1,0 } },
- { { 0x0030, "alnum" }, { 0,0,0 } },
- { { 0x0039, "alnum" }, { 0,0,0 } },
- { { 0x003A, "alnum" }, { 0,1,0 } },
- { { 0x0040, "alnum" }, { 0,1,0 } },
- { { 0x0041, "alnum" }, { 0,0,0 } },
- { { 0x005A, "alnum" }, { 0,0,0 } },
- { { 0x005B, "alnum" }, { 0,1,0 } },
- { { 0x0060, "alnum" }, { 0,1,0 } },
- { { 0x0061, "alnum" }, { 0,0,0 } },
- { { 0x007A, "alnum" }, { 0,0,0 } },
- { { 0x007B, "alnum" }, { 0,1,0 } },
- { { 0x007E, "alnum" }, { 0,1,0 } },
- { { 0x007F, "alnum" }, { 0,1,0 } },
- { { 0x0080, "alnum" }, { 0,1,0 } },
- { { 0x0000, "alpha" }, { 0,1,0 } },
- { { 0x001F, "alpha" }, { 0,1,0 } },
- { { 0x0020, "alpha" }, { 0,1,0 } },
- { { 0x0021, "alpha" }, { 0,1,0 } },
- { { 0x002F, "alpha" }, { 0,1,0 } },
- { { 0x0030, "alpha" }, { 0,1,0 } },
- { { 0x0039, "alpha" }, { 0,1,0 } },
- { { 0x003A, "alpha" }, { 0,1,0 } },
- { { 0x0040, "alpha" }, { 0,1,0 } },
- { { 0x0041, "alpha" }, { 0,0,0 } },
- { { 0x005A, "alpha" }, { 0,0,0 } },
- { { 0x005B, "alpha" }, { 0,1,0 } },
- { { 0x0060, "alpha" }, { 0,1,0 } },
- { { 0x0061, "alpha" }, { 0,0,0 } },
- { { 0x007A, "alpha" }, { 0,0,0 } },
- { { 0x007B, "alpha" }, { 0,1,0 } },
- { { 0x007E, "alpha" }, { 0,1,0 } },
- { { 0x007F, "alpha" }, { 0,1,0 } },
- { { 0x0080, "alpha" }, { 0,1,0 } },
- { { 0x0009, "blank" }, { 0,0,0 } },
- { { 0x000B, "blank" }, { 0,1,0 } },
- { { 0x0020, "blank" }, { 0,0,0 } },
- { { 0x0000, "cntrl" }, { 0,0,0 } },
- { { 0x001F, "cntrl" }, { 0,0,0 } },
- { { 0x0020, "cntrl" }, { 0,1,0 } },
- { { 0x0021, "cntrl" }, { 0,1,0 } },
- { { 0x002F, "cntrl" }, { 0,1,0 } },
- { { 0x0030, "cntrl" }, { 0,1,0 } },
- { { 0x0039, "cntrl" }, { 0,1,0 } },
- { { 0x003A, "cntrl" }, { 0,1,0 } },
- { { 0x0040, "cntrl" }, { 0,1,0 } },
- { { 0x0041, "cntrl" }, { 0,1,0 } },
- { { 0x005A, "cntrl" }, { 0,1,0 } },
- { { 0x005B, "cntrl" }, { 0,1,0 } },
- { { 0x0060, "cntrl" }, { 0,1,0 } },
- { { 0x0061, "cntrl" }, { 0,1,0 } },
- { { 0x007A, "cntrl" }, { 0,1,0 } },
- { { 0x007B, "cntrl" }, { 0,1,0 } },
- { { 0x007E, "cntrl" }, { 0,1,0 } },
- { { 0x007F, "cntrl" }, { 0,0,0 } },
- { { 0x0080, "cntrl" }, { 0,0,0 } },
- { { 0x0000, "digit" }, { 0,1,0 } },
- { { 0x001F, "digit" }, { 0,1,0 } },
- { { 0x0020, "digit" }, { 0,1,0 } },
- { { 0x0021, "digit" }, { 0,1,0 } },
- { { 0x002F, "digit" }, { 0,1,0 } },
- { { 0x0030, "digit" }, { 0,0,0 } },
- { { 0x0039, "digit" }, { 0,0,0 } },
- { { 0x003A, "digit" }, { 0,1,0 } },
- { { 0x0040, "digit" }, { 0,1,0 } },
- { { 0x0041, "digit" }, { 0,1,0 } },
- { { 0x005A, "digit" }, { 0,1,0 } },
- { { 0x005B, "digit" }, { 0,1,0 } },
- { { 0x0060, "digit" }, { 0,1,0 } },
- { { 0x0061, "digit" }, { 0,1,0 } },
- { { 0x007A, "digit" }, { 0,1,0 } },
- { { 0x007B, "digit" }, { 0,1,0 } },
- { { 0x007E, "digit" }, { 0,1,0 } },
- { { 0x007F, "digit" }, { 0,1,0 } },
- { { 0x0080, "digit" }, { 0,1,0 } },
- { { 0x0000, "graph" }, { 0,1,0 } },
- { { 0x001F, "graph" }, { 0,1,0 } },
- { { 0x0020, "graph" }, { 0,1,0 } },
- { { 0x0021, "graph" }, { 0,0,0 } },
- { { 0x002F, "graph" }, { 0,0,0 } },
- { { 0x0030, "graph" }, { 0,0,0 } },
- { { 0x0039, "graph" }, { 0,0,0 } },
- { { 0x003A, "graph" }, { 0,0,0 } },
- { { 0x0040, "graph" }, { 0,0,0 } },
- { { 0x0041, "graph" }, { 0,0,0 } },
- { { 0x005A, "graph" }, { 0,0,0 } },
- { { 0x005B, "graph" }, { 0,0,0 } },
- { { 0x0060, "graph" }, { 0,0,0 } },
- { { 0x0061, "graph" }, { 0,0,0 } },
- { { 0x007A, "graph" }, { 0,0,0 } },
- { { 0x007B, "graph" }, { 0,0,0 } },
- { { 0x007E, "graph" }, { 0,0,0 } },
- { { 0x007F, "graph" }, { 0,1,0 } },
- { { 0x0080, "graph" }, { 0,1,0 } },
- { { 0x0000, "print" }, { 0,1,0 } },
- { { 0x001F, "print" }, { 0,1,0 } },
- { { 0x0020, "print" }, { 0,0,0 } },
- { { 0x0021, "print" }, { 0,0,0 } },
- { { 0x002F, "print" }, { 0,0,0 } },
- { { 0x0030, "print" }, { 0,0,0 } },
- { { 0x0039, "print" }, { 0,0,0 } },
- { { 0x003A, "print" }, { 0,0,0 } },
- { { 0x0040, "print" }, { 0,0,0 } },
- { { 0x0041, "print" }, { 0,0,0 } },
- { { 0x005A, "print" }, { 0,0,0 } },
- { { 0x005B, "print" }, { 0,0,0 } },
- { { 0x0060, "print" }, { 0,0,0 } },
- { { 0x0061, "print" }, { 0,0,0 } },
- { { 0x007A, "print" }, { 0,0,0 } },
- { { 0x007B, "print" }, { 0,0,0 } },
- { { 0x007E, "print" }, { 0,0,0 } },
- { { 0x007F, "print" }, { 0,1,0 } },
- { { 0x0080, "print" }, { 0,1,0 } },
- { { 0x0000, "punct" }, { 0,1,0 } },
- { { 0x001F, "punct" }, { 0,1,0 } },
- { { 0x0020, "punct" }, { 0,1,0 } },
- { { 0x0021, "punct" }, { 0,0,0 } },
- { { 0x002F, "punct" }, { 0,0,0 } },
- { { 0x0030, "punct" }, { 0,1,0 } },
- { { 0x0039, "punct" }, { 0,1,0 } },
- { { 0x003A, "punct" }, { 0,0,0 } },
- { { 0x0040, "punct" }, { 0,0,0 } },
- { { 0x0041, "punct" }, { 0,1,0 } },
- { { 0x005A, "punct" }, { 0,1,0 } },
- { { 0x005B, "punct" }, { 0,0,0 } },
- { { 0x0060, "punct" }, { 0,0,0 } },
- { { 0x0061, "punct" }, { 0,1,0 } },
- { { 0x007A, "punct" }, { 0,1,0 } },
- { { 0x007B, "punct" }, { 0,0,0 } },
- { { 0x007E, "punct" }, { 0,0,0 } },
- { { 0x007F, "punct" }, { 0,1,0 } },
- { { 0x0080, "punct" }, { 0,1,0 } },
- { { 0x0000, "space" }, { 0,1,0 } },
- { { 0x001F, "space" }, { 0,1,0 } },
- { { 0x0020, "space" }, { 0,0,0 } },
- { { 0x0021, "space" }, { 0,1,0 } },
- { { 0x002F, "space" }, { 0,1,0 } },
- { { 0x007E, "space" }, { 0,1,0 } },
- { { 0x007F, "space" }, { 0,1,0 } },
- { { 0x0080, "space" }, { 0,1,0 } },
- { { 0x0000, "lower" }, { 0,1,0 } },
- { { 0x001F, "lower" }, { 0,1,0 } },
- { { 0x0020, "lower" }, { 0,1,0 } },
- { { 0x0021, "lower" }, { 0,1,0 } },
- { { 0x002F, "lower" }, { 0,1,0 } },
- { { 0x0030, "lower" }, { 0,1,0 } },
- { { 0x0039, "lower" }, { 0,1,0 } },
- { { 0x003A, "lower" }, { 0,1,0 } },
- { { 0x0040, "lower" }, { 0,1,0 } },
- { { 0x0041, "lower" }, { 0,1,0 } },
- { { 0x005A, "lower" }, { 0,1,0 } },
- { { 0x005B, "lower" }, { 0,1,0 } },
- { { 0x0060, "lower" }, { 0,1,0 } },
- { { 0x0061, "lower" }, { 0,0,0 } },
- { { 0x007A, "lower" }, { 0,0,0 } },
- { { 0x007B, "lower" }, { 0,1,0 } },
- { { 0x007E, "lower" }, { 0,1,0 } },
- { { 0x007F, "lower" }, { 0,1,0 } },
- { { 0x0080, "lower" }, { 0,1,0 } },
- { { 0x0000, "upper" }, { 0,1,0 } },
- { { 0x001F, "upper" }, { 0,1,0 } },
- { { 0x0020, "upper" }, { 0,1,0 } },
- { { 0x0021, "upper" }, { 0,1,0 } },
- { { 0x002F, "upper" }, { 0,1,0 } },
- { { 0x0030, "upper" }, { 0,1,0 } },
- { { 0x0039, "upper" }, { 0,1,0 } },
- { { 0x003A, "upper" }, { 0,1,0 } },
- { { 0x0040, "upper" }, { 0,1,0 } },
- { { 0x0041, "upper" }, { 0,0,0 } },
- { { 0x005A, "upper" }, { 0,0,0 } },
- { { 0x005B, "upper" }, { 0,1,0 } },
- { { 0x0060, "upper" }, { 0,1,0 } },
- { { 0x0061, "upper" }, { 0,1,0 } },
- { { 0x007A, "upper" }, { 0,1,0 } },
- { { 0x007B, "upper" }, { 0,1,0 } },
- { { 0x007E, "upper" }, { 0,1,0 } },
- { { 0x007F, "upper" }, { 0,1,0 } },
- { { 0x0080, "upper" }, { 0,1,0 } },
- { { 0x0000, "xdigit" }, { 0,1,0 } },
- { { 0x001F, "xdigit" }, { 0,1,0 } },
- { { 0x0020, "xdigit" }, { 0,1,0 } },
- { { 0x0021, "xdigit" }, { 0,1,0 } },
- { { 0x002F, "xdigit" }, { 0,1,0 } },
- { { 0x0030, "xdigit" }, { 0,0,0 } },
- { { 0x0039, "xdigit" }, { 0,0,0 } },
- { { 0x003A, "xdigit" }, { 0,1,0 } },
- { { 0x0040, "xdigit" }, { 0,1,0 } },
- { { 0x0041, "xdigit" }, { 0,0,0 } },
- { { 0x005A, "xdigit" }, { 0,1,0 } },
- { { 0x005B, "xdigit" }, { 0,1,0 } },
- { { 0x0060, "xdigit" }, { 0,1,0 } },
- { { 0x0061, "xdigit" }, { 0,0,0 } },
- { { 0x007A, "xdigit" }, { 0,1,0 } },
- { { 0x007B, "xdigit" }, { 0,1,0 } },
- { { 0x007E, "xdigit" }, { 0,1,0 } },
- { { 0x007F, "xdigit" }, { 0,1,0 } },
- { { 0x0080, "xdigit" }, { 0,1,0 } },
- { { 0x0061, "xxxxxx" }, { 0,1,0 } },
- { .is_last = 1 }
- }
- },
- {
- #if 0
- { Tiswctype, TST_LOC_eucJP },
- #else
- { Tiswctype, TST_LOC_ja_UTF8 },
- #endif
- {
- #ifdef SHOJI_IS_RIGHT
- { { 0x3029, "alnum" }, { 0,1,0 } }, /* Hangzhou NUM9 */
- #else
- { { 0x3029, "alnum" }, { 0,0,0 } }, /* Hangzhou NUM9 */
- #endif
- { { 0xFE4F, "alnum" }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFF19, "alnum" }, { 0,0,0 } }, /* FULL 9 */
- { { 0xFF20, "alnum" }, { 0,1,0 } }, /* FULL @ */
- { { 0xFF3A, "alnum" }, { 0,0,0 } }, /* FULL Z */
- { { 0xFF40, "alnum" }, { 0,1,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A, "alnum" }, { 0,0,0 } }, /* FULL z */
- #ifdef SHOJI_IS_RIGHT
- { { 0xFF71, "alnum" }, { 0,1,0 } }, /* HALF KATA A */
- #else
- { { 0xFF71, "alnum" }, { 0,0,0 } }, /* HALF KATA A */
- #endif
- #ifdef SHOJI_IS_RIGHT
- { { 0x3029, "alpha" }, { 0,1,0 } }, /* Hangzhou NUM9 */
- #else
- { { 0x3029, "alpha" }, { 0,0,0 } }, /* Hangzhou NUM9 */
- #endif
- { { 0xFE4F, "alpha" }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- #ifdef SHOJI_IS_RIGHT
- { { 0xFF19, "alpha" }, { 0,1,0 } }, /* FULL 9 */
- #else
- { { 0xFF19, "alpha" }, { 0,0,0 } }, /* FULL 9 */
- #endif
- { { 0xFF20, "alpha" }, { 0,1,0 } }, /* FULL @ */
- { { 0xFF3A, "alpha" }, { 0,0,0 } }, /* FULL Z */
- { { 0xFF40, "alpha" }, { 0,1,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A, "alpha" }, { 0,0,0 } }, /* FULL z */
- #ifdef SHOJI_IS_RIGHT
- { { 0xFF71, "alpha" }, { 0,1,0 } }, /* HALF KATA A */
- #else
- { { 0xFF71, "alpha" }, { 0,0,0 } }, /* HALF KATA A */
- #endif
- { { 0x0080, "cntrl" }, { 0,0,0 } }, /* CNTRL */
- { { 0x3000, "cntrl" }, { 0,1,0 } }, /* IDEO. SPACE */
- { { 0x3029, "digit" }, { 0,1,0 } }, /* Hangzhou NUM9 */
- { { 0x32CB, "digit" }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- /* 21: */
- { { 0x33FE, "digit" }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
- { { 0xFF19, "digit" }, { 0,1,0 } }, /* FULL 9 */
- { { 0x3000, "graph" }, { 0,1,0 } }, /* IDEO. SPACE */
- #ifdef SHOJI_IS_RIGHT
- { { 0x3020, "graph" }, { 0,1,0 } }, /* POSTAL MARK FACE */
- { { 0x3029, "graph" }, { 0,1,0 } }, /* Hangzhou NUM9 */
- { { 0x302F, "graph" }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037, "graph" }, { 0,1,0 } }, /* Separator Symbol */
- { { 0x303F, "graph" }, { 0,1,0 } }, /* IDEO. HALF SPACE */
- #else
- { { 0x3020, "graph" }, { 0,0,0 } }, /* POSTAL MARK FACE */
- { { 0x3029, "graph" }, { 0,0,0 } }, /* Hangzhou NUM9 */
- { { 0x302F, "graph" }, { 0,0,0 } }, /* Diacritics(Hangul) */
- { { 0x3037, "graph" }, { 0,0,0 } }, /* Separator Symbol */
- { { 0x303F, "graph" }, { 0,0,0 } }, /* IDEO. HALF SPACE */
- #endif
- /* 29: */
- { { 0x3041, "graph" }, { 0,0,0 } }, /* HIRAGANA a */
- /* Non jis: */
- #ifdef SHOJI_IS_RIGHT
- { { 0x3094, "graph" }, { 0,1,0 } }, /* HIRAGANA u" */
- #else
- { { 0x3094, "graph" }, { 0,0,0 } }, /* HIRAGANA u" */
- #endif
- /* Non jis: */
- #ifdef SHOJI_IS_RIGHT
- { { 0x3099, "graph" }, { 0,1,0 } }, /* SOUND MARK */
- #else
- { { 0x3099, "graph" }, { 0,0,0 } }, /* SOUND MARK */
- #endif
- { { 0x309E, "graph" }, { 0,0,0 } }, /* ITERATION MARK */
- /* 33: */
- { { 0x30A1, "graph" }, { 0,0,0 } }, /* KATAKANA a */
- /* Non jis: */
- #ifdef SHOJI_IS_RIGHT
- { { 0x30FA, "graph" }, { 0,1,0 } }, /* KATAKANA wo" */
- #else
- { { 0x30FA, "graph" }, { 0,0,0 } }, /* KATAKANA wo" */
- #endif
- { { 0x30FB, "graph" }, { 0,0,0 } }, /* KATAKANA MID.DOT */
- { { 0x30FE, "graph" }, { 0,0,0 } }, /* KATAKANA ITERATION */
- #ifdef SHOJI_IS_RIGHT
- { { 0x3191, "graph" }, { 0,1,0 } }, /* KANBUN REV.MARK */
- { { 0x3243, "graph" }, { 0,1,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB, "graph" }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE, "graph" }, { 0,1,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE, "graph" }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
- #else
- { { 0x3191, "graph" }, { 0,0,0 } }, /* KANBUN REV.MARK */
- { { 0x3243, "graph" }, { 0,0,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB, "graph" }, { 0,0,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE, "graph" }, { 0,0,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE, "graph" }, { 0,0,0 } }, /* CJK IDEO.TEL.31th */
- #endif
- { { 0x4E00, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E05, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- #ifdef SHOJI_IS_RIGHT
- { { 0x4E06, "graph" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- #else
- { { 0x4E06, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- #endif
- { { 0x4E07, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- #ifdef SHOJI_IS_RIGHT
- { { 0x9007, "graph" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4, "graph" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- #else
- { { 0x9007, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- #endif
- /* 51 */
- { { 0x9FA5, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- /* Non jis: */
- #ifdef SHOJI_IS_RIGHT
- { { 0xFE4F, "graph" }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- #else
- { { 0xFE4F, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- #endif
- { { 0xFF0F, "graph" }, { 0,0,0 } }, /* FULL SLASH */
- { { 0xFF19, "graph" }, { 0,0,0 } }, /* FULL 9 */
- { { 0xFF20, "graph" }, { 0,0,0 } }, /* FULL @ */
- { { 0xFF3A, "graph" }, { 0,0,0 } }, /* FULL Z */
- { { 0xFF40, "graph" }, { 0,0,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A, "graph" }, { 0,0,0 } }, /* FULL z */
- { { 0xFF5E, "graph" }, { 0,0,0 } }, /* FULL ~ (tilde) */
- { { 0xFF61, "graph" }, { 0,0,0 } }, /* HALF IDEO.STOP. . */
- { { 0xFF65, "graph" }, { 0,0,0 } }, /* HALF KATA MID.DOT */
- { { 0xFF66, "graph" }, { 0,0,0 } }, /* HALF KATA WO */
- { { 0xFF6F, "graph" }, { 0,0,0 } }, /* HALF KATA tu */
- { { 0xFF70, "graph" }, { 0,0,0 } }, /* HALF KATA PL - */
- { { 0xFF71, "graph" }, { 0,0,0 } }, /* HALF KATA A */
- { { 0xFF9E, "graph" }, { 0,0,0 } }, /* HALF KATA MI */
- { { 0x3000, "print" }, { 0,0,0 } }, /* IDEO. SPACE */
- #ifdef SHOJI_IS_RIGHT
- { { 0x3020, "print" }, { 0,1,0 } }, /* POSTAL MARK FACE */
- { { 0x3029, "print" }, { 0,1,0 } }, /* Hangzhou NUM9 */
- { { 0x302F, "print" }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037, "print" }, { 0,1,0 } }, /* Separator Symbol */
- #else
- { { 0x3020, "print" }, { 0,0,0 } }, /* POSTAL MARK FACE */
- { { 0x3029, "print" }, { 0,0,0 } }, /* Hangzhou NUM9 */
- { { 0x302F, "print" }, { 0,0,0 } }, /* Diacritics(Hangul) */
- { { 0x3037, "print" }, { 0,0,0 } }, /* Separator Symbol */
- #endif
- { { 0x4E00, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E05, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- #ifdef SHOJI_IS_RIGHT
- { { 0x4E06, "print" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- #else
- { { 0x4E06, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- #endif
- { { 0x4E07, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- #ifdef SHOJI_IS_RIGHT
- { { 0x9007, "print" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4, "print" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- #else
- { { 0x9007, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- #endif
- /* 81: */
- { { 0x9FA5, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- /* Non jis: */
- #ifdef SHOJI_IS_RIGHT
- { { 0xFE4F, "print" }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- #else
- { { 0xFE4F, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- #endif
- { { 0x3000, "punct" }, { 0,1,0 } }, /* IDEO. SPACE */
- #ifdef SHOJI_IS_RIGHT
- { { 0x3020, "punct" }, { 0,1,0 } }, /* POSTAL MARK FACE */
- { { 0x302F, "punct" }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037, "punct" }, { 0,1,0 } }, /* FEED Separator */
- { { 0x303F, "punct" }, { 0,1,0 } }, /* IDEO. HALF SPACE */
- #else
- { { 0x3020, "punct" }, { 0,0,0 } }, /* POSTAL MARK FACE */
- { { 0x302F, "punct" }, { 0,0,0 } }, /* Diacritics(Hangul) */
- { { 0x3037, "punct" }, { 0,0,0 } }, /* FEED Separator */
- { { 0x303F, "punct" }, { 0,0,0 } }, /* IDEO. HALF SPACE */
- #endif
- { { 0x3041, "punct" }, { 0,1,0 } }, /* HIRAGANA a */
- { { 0x3094, "punct" }, { 0,1,0 } }, /* HIRAGANA u" */
- /* 90: */
- #ifdef SHOJI_IS_RIGHT
- { { 0x3099, "punct" }, { 0,1,0 } }, /* SOUND MARK */
- #else
- { { 0x3099, "punct" }, { 0,0,0 } }, /* SOUND MARK */
- #endif
- { { 0x309E, "punct" }, { 0,1,0 } }, /* ITERATION MARK */
- { { 0x30A1, "punct" }, { 0,1,0 } }, /* KATAKANA a */
- { { 0x30FA, "punct" }, { 0,1,0 } }, /* KATAKANA wo" */
- { { 0x30FB, "punct" }, { 0,0,0 } }, /* KATAKANA MID.DOT */
- /* 95: */
- { { 0x30FE, "punct" }, { 0,1,0 } }, /* KATAKANA ITERATION */
- #ifdef SHOJI_IS_RIGHT
- { { 0x3191, "punct" }, { 0,1,0 } }, /* KANBUN REV.MARK */
- { { 0x3243, "punct" }, { 0,1,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB, "punct" }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE, "punct" }, { 0,1,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE, "punct" }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
- #else
- { { 0x3191, "punct" }, { 0,0,0 } }, /* KANBUN REV.MARK */
- { { 0x3243, "punct" }, { 0,0,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB, "punct" }, { 0,0,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE, "punct" }, { 0,0,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE, "punct" }, { 0,0,0 } }, /* CJK IDEO.TEL.31th */
- #endif
- { { 0x9007, "punct" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4, "punct" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA5, "punct" }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFF0F, "punct" }, { 0,0,0 } }, /* FULL SLASH */
- /* 105: */
- { { 0xFF19, "punct" }, { 0,1,0 } }, /* FULL 9 */
- { { 0xFF20, "punct" }, { 0,0,0 } }, /* FULL @ */
- { { 0xFF3A, "punct" }, { 0,1,0 } }, /* FULL Z */
- { { 0xFF40, "punct" }, { 0,0,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A, "punct" }, { 0,1,0 } }, /* FULL z */
- { { 0xFF5E, "punct" }, { 0,0,0 } }, /* FULL ~ (tilde) */
- { { 0xFF61, "punct" }, { 0,0,0 } }, /* HALF IDEO.STOP. . */
- { { 0xFF65, "punct" }, { 0,0,0 } }, /* HALF KATA MID.DOT */
- { { 0xFF70, "punct" }, { 0,1,0 } }, /* HALF KATA PL - */
- { { 0xFF9E, "punct" }, { 0,1,0 } }, /* HALF KATA MI */
- /* 115: */
- { { 0x3000, "space" }, { 0,0,0 } }, /* IDEO. SPACE */
- { { 0x303F, "space" }, { 0,1,0 } }, /* IDEO. HALF SPACE */
- { { 0x3041, "lower" }, { 0,1,0 } }, /* HIRAGANA a */
- { { 0x3094, "lower" }, { 0,1,0 } }, /* HIRAGANA u" */
- { { 0x30A1, "lower" }, { 0,1,0 } }, /* KATAKANA a */
- { { 0x30FA, "lower" }, { 0,1,0 } }, /* KATAKANA wo" */
- { { 0xFF66, "lower" }, { 0,1,0 } }, /* HALF KATA WO */
- { { 0xFF6F, "lower" }, { 0,1,0 } }, /* HALF KATA tu */
- { { 0xFF70, "lower" }, { 0,1,0 } }, /* HALF KATA PL - */
- /* 124: */
- { { 0xFF71, "lower" }, { 0,1,0 } }, /* HALF KATA A */
- { { 0xFF9E, "lower" }, { 0,1,0 } }, /* HALF KATA MI */
- { { 0xFF71, "upper" }, { 0,1,0 } }, /* HALF KATA A */
- { { 0xFF19, "xdigit" }, { 0,1,0 } }, /* FULL 9 */
- { { 0x3000, "jspace" }, { 0,0,0 } }, /* IDEO. SPACE */
- /* Non jis? */
- { { 0x303F, "jspace" }, { 0,1,0 } }, /* IDEO.HALF SPACE */
- { { 0xFF19, "jdigit" }, { 0,0,0 } }, /* FULL 9 */
- { { 0x3041, "jhira" }, { 0,0,0 } }, /* HIRAGANA a */
- { { 0x3094, "jhira" }, { 0,1,0 } }, /* HIRAGANA u" */
- { { 0x30A1, "jkata" }, { 0,0,0 } }, /* KATAKANA a */
- /* Non jis: */
- { { 0x30FA, "jkata" }, { 0,1,0 } }, /* KATAKANA wo" */
- { { 0xFF66, "jkata" }, { 0,0,0 } }, /* HALF KATA WO */
- { { 0xFF6F, "jkata" }, { 0,0,0 } }, /* HALF KATA tu */
- { { 0x4E05, "jkanji" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- #ifdef SHOJI_IS_RIGHT
- /* <NO_WAIVER>: */
- { { 0x4E06, "jkanji" }, { 0,1,1 } }, /* CJK UNI.IDEO.NON-J */
- #else
- /* XXX This character does not exist in EUC-JP. */
- { { 0x4E06, "jkanji" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- #endif
- { { 0x4E07, "jkanji" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { .is_last = 1 }
- }
- },
- {
- { Tiswctype, TST_LOC_end }
- }
- };
- /* dat_isw-funcs.c */
|