lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY |
| 3 | * |
| 4 | * FILE: dat_iswcntrl.c |
| 5 | * |
| 6 | * ISW*: int iswcntrl (wint_t wc); |
| 7 | */ |
| 8 | |
| 9 | |
| 10 | #include "dat_isw-funcs.h" |
| 11 | |
| 12 | |
| 13 | TST_ISW_LOC (CNTRL, cntrl) = { |
| 14 | |
| 15 | { TST_ISW_REC (de, cntrl) |
| 16 | { |
| 17 | { { 0x0080 }, { 0,0,0 } }, /* CTRL */ |
| 18 | { { 0x009F }, { 0,0,0 } }, /* CTRL */ |
| 19 | { { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */ |
| 20 | { { 0x00A1 }, { 0,1,0 } }, /* UD ! */ |
| 21 | { { 0x00B0 }, { 0,1,0 } }, /* Degree */ |
| 22 | { { 0x00B1 }, { 0,1,0 } }, /* +- sign */ |
| 23 | { { 0x00B2 }, { 0,1,0 } }, /* SUP 2 */ |
| 24 | { { 0x00B3 }, { 0,1,0 } }, /* SUP 3 */ |
| 25 | { { 0x00B4 }, { 0,1,0 } }, /* ACUTE */ |
| 26 | { { 0x00B8 }, { 0,1,0 } }, /* CEDILLA */ |
| 27 | { { 0x00B9 }, { 0,1,0 } }, /* SUP 1 */ |
| 28 | { { 0x00BB }, { 0,1,0 } }, /* >> */ |
| 29 | { { 0x00BC }, { 0,1,0 } }, /* 1/4 */ |
| 30 | { { 0x00BD }, { 0,1,0 } }, /* 1/2 */ |
| 31 | { { 0x00BE }, { 0,1,0 } }, /* 3/4 */ |
| 32 | { { 0x00BF }, { 0,1,0 } }, /* UD ? */ |
| 33 | { { 0x00C0 }, { 0,1,0 } }, /* A Grave */ |
| 34 | { { 0x00D6 }, { 0,1,0 } }, /* O dia */ |
| 35 | { { 0x00D7 }, { 0,1,0 } }, /* multipl. */ |
| 36 | { { 0x00D8 }, { 0,1,0 } }, /* O stroke */ |
| 37 | { { 0x00DF }, { 0,1,0 } }, /* small Sh */ |
| 38 | { { 0x00E0 }, { 0,1,0 } }, /* a grave */ |
| 39 | { { 0x00F6 }, { 0,1,0 } }, /* o dia */ |
| 40 | { { 0x00F7 }, { 0,1,0 } }, /* division */ |
| 41 | { { 0x00F8 }, { 0,1,0 } }, /* o stroke */ |
| 42 | { { 0x00FF }, { 0,1,0 } }, /* y dia */ |
| 43 | { .is_last = 1 } /* Last element. */ |
| 44 | } |
| 45 | }, |
| 46 | { TST_ISW_REC (enUS, cntrl) |
| 47 | { |
| 48 | { { WEOF }, { 0,1,0 } }, |
| 49 | { { 0x0000 }, { 0,0,0 } }, |
| 50 | { { 0x001F }, { 0,0,0 } }, |
| 51 | { { 0x0020 }, { 0,1,0 } }, |
| 52 | { { 0x0021 }, { 0,1,0 } }, |
| 53 | { { 0x002F }, { 0,1,0 } }, |
| 54 | { { 0x0030 }, { 0,1,0 } }, |
| 55 | { { 0x0039 }, { 0,1,0 } }, |
| 56 | { { 0x003A }, { 0,1,0 } }, |
| 57 | { { 0x0040 }, { 0,1,0 } }, |
| 58 | { { 0x0041 }, { 0,1,0 } }, |
| 59 | { { 0x005A }, { 0,1,0 } }, |
| 60 | { { 0x005B }, { 0,1,0 } }, |
| 61 | { { 0x0060 }, { 0,1,0 } }, |
| 62 | { { 0x0061 }, { 0,1,0 } }, |
| 63 | { { 0x007A }, { 0,1,0 } }, |
| 64 | { { 0x007B }, { 0,1,0 } }, |
| 65 | { { 0x007E }, { 0,1,0 } }, |
| 66 | { { 0x007F }, { 0,0,0 } }, |
| 67 | { { 0x0080 }, { 0,1,0 } }, |
| 68 | { .is_last = 1 } /* Last element. */ |
| 69 | } |
| 70 | }, |
| 71 | #if 0 |
| 72 | { TST_ISW_REC (eucJP, cntrl) |
| 73 | #else |
| 74 | { TST_ISW_REC (ja_UTF8, cntrl) |
| 75 | #endif |
| 76 | { |
| 77 | { { 0x3000 }, { 0,1,0 } }, /* IDEO. SPACE */ |
| 78 | { { 0x3020 }, { 0,1,0 } }, /* POSTAL MARK FACE */ |
| 79 | { { 0x3029 }, { 0,1,0 } }, /* Hangzhou NUM9 */ |
| 80 | { { 0x302F }, { 0,1,0 } }, /* Diacritics(Hangul) */ |
| 81 | { { 0x3037 }, { 0,1,0 } }, /* Separator Symbol */ |
| 82 | { { 0x303F }, { 0,1,0 } }, /* IDEO. HALF SPACE */ |
| 83 | { { 0x3041 }, { 0,1,0 } }, /* HIRAGANA a */ |
| 84 | { { 0x3094 }, { 0,1,0 } }, /* HIRAGANA u" */ |
| 85 | { { 0x3099 }, { 0,1,0 } }, /* SOUND MARK */ |
| 86 | { { 0x309E }, { 0,1,0 } }, /* ITERATION MARK */ |
| 87 | { { 0x30A1 }, { 0,1,0 } }, /* KATAKANA a */ |
| 88 | { { 0x30FA }, { 0,1,0 } }, /* KATAKANA wo" */ |
| 89 | { { 0x30FB }, { 0,1,0 } }, /* KATAKANA MID.DOT */ |
| 90 | { { 0x30FE }, { 0,1,0 } }, /* KATAKANA ITERATION */ |
| 91 | { { 0x3191 }, { 0,1,0 } }, /* KANBUN REV.MARK */ |
| 92 | { { 0x3243 }, { 0,1,0 } }, /* IDEO. MARK (reach) */ |
| 93 | { { 0x32CB }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */ |
| 94 | { { 0x32FE }, { 0,1,0 } }, /* MARU KATAKANA wo */ |
| 95 | { { 0x33FE }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */ |
| 96 | { { 0x4E00 }, { 0,1,0 } }, /* CJK UNI.IDEO. */ |
| 97 | { { 0x4E05 }, { 0,1,0 } }, /* CJK UNI.IDEO. */ |
| 98 | { { 0x4E06 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */ |
| 99 | { { 0x4E07 }, { 0,1,0 } }, /* CJK UNI.IDEO. */ |
| 100 | { { 0x4FFF }, { 0,1,0 } }, /* CJK UNI.IDEO. */ |
| 101 | { { 0x9000 }, { 0,1,0 } }, /* CJK UNI.IDEO. */ |
| 102 | { { 0x9006 }, { 0,1,0 } }, /* CJK UNI.IDEO. */ |
| 103 | { { 0x9007 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */ |
| 104 | { { 0x9FA4 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */ |
| 105 | { { 0x9FA5 }, { 0,1,0 } }, /* CJK UNI.IDEO. */ |
| 106 | { { 0xFE4F }, { 0,1,0 } }, /* CJK UNI.IDEO. */ |
| 107 | { { 0xFF0F }, { 0,1,0 } }, /* FULL SLASH */ |
| 108 | { { 0xFF19 }, { 0,1,0 } }, /* FULL 9 */ |
| 109 | { { 0xFF20 }, { 0,1,0 } }, /* FULL @ */ |
| 110 | { { 0xFF3A }, { 0,1,0 } }, /* FULL Z */ |
| 111 | { { 0xFF40 }, { 0,1,0 } }, /* FULL GRAVE ACC. */ |
| 112 | { { 0xFF5A }, { 0,1,0 } }, /* FULL z */ |
| 113 | { { 0xFF5E }, { 0,1,0 } }, /* FULL ~ (tilde) */ |
| 114 | { { 0xFF61 }, { 0,1,0 } }, /* HALF IDEO.STOP. . */ |
| 115 | { { 0xFF65 }, { 0,1,0 } }, /* HALF KATA MID.DOT */ |
| 116 | { { 0xFF66 }, { 0,1,0 } }, /* HALF KATA WO */ |
| 117 | { { 0xFF6F }, { 0,1,0 } }, /* HALF KATA tu */ |
| 118 | { { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */ |
| 119 | { { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */ |
| 120 | { { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */ |
| 121 | { .is_last = 1 } /* Last element. */ |
| 122 | } |
| 123 | }, |
| 124 | { TST_ISW_REC(end, cntrl) } |
| 125 | }; |