この章の目次にもどる
前頁:1.15 tad.h にもどる
次頁:1.17 tctype.h にすすむ

1.16 tcode.h

TRON 日本語文字コードの英文字、数字、制御コードの定義である。

#define     TK_DEL      0x007f      /* DEL  */
#define     TK_SP0      0x0020      /*  */
#define     TK_SP1      0x00a0      /*  */
#define     TK_NULL     0x0000      /* NULL */
#define     TK_TAB      0x0009      /* TAB  */
#define     TK_NL       0x000a      /* NL   */

#define     TK_BS       0x0008      /* BS   */
#define     TK_END      0x0004      /* CR   */
#define     TK_CAN      0x0018      /* CAN  */
#define     TK_CNV      0x001e      /* 変換 */
#define     TK_RCNV     0x001f      /* 逆変換 */
#define     TK_DICT     0x0083      /* 補助 */

#define     TK_KSP      0x2121      /*  */
#define     TK_EXCL     0x212a      /* !    */
#define     TK_RQOT     0x212e      /* `    */
#define     TK_DQOT     0x2149      /* "   */
#define     TK_SHRP     0x2174      /* #    */
#define     TK_DLLR     0x2170      /* $    */
#define     TK_PCNT     0x2173      /* %    */
#define     TK_AND      0x2175      /* &    */
#define     TK_SQOT     0x2147      /* '    */
#define     TK_LPAR     0x214a      /* (    */
#define     TK_RPAR     0x214b      /* )    */
#define     TK_ASTR     0x2176      /* *    */
#define     TK_PLUS     0x215c      /* +    */
#define     TK_CMMA     0x2124      /* ,    */
#define     TK_MINS     0x215d      /* -    */
#define     TK_PROD     0x2125      /* .    */
#define     TK_SLSH     0x213f      /* /    */
#define     TK_COLN     0x2127      /* :    */
#define     TK_SCLN     0x2128      /* ;    */
#define     TK_LSTN     0x2163      /* < */
#define     TK_EQAL     0x2161      /* =    */
#define     TK_GTTN     0x2164      /* > */
#define     TK_QSTN     0x2129      /* ?    */
#define     TK_ATMK     0x2177      /* @    */
#define     TK_LABR     0x214e      /* [    */
#define     TK_BSLH     0x216f      /* \    */
#define     TK_RABR     0x214f      /* ]    */
#define     TK_EXOR     0x2130      /* ^    */
#define     TK_USCR     0x2132      /* _    */
#define     TK_LCBR     0x2150      /* {    */
#define     TK_OR       0x2143      /* |    */
#define     TK_RCBR     0x2151      /* }    */
#define     TK_TILD     0x2131      /* ~    */

#define     TK_AL_A     0x2341      /* 'A'  */
#define     TK_AL_X     0x2358      /* 'X'  */
#define     TK_AL_Z     0x235a      /* 'Z'  */

#define     TK_AL_a     0x2361      /* 'a'  */
#define     TK_AL_x     0x2378      /* 'x'  */
#define     TK_AL_z     0x237a      /* 'z'  */

#define     TK_NU_0     0x2330      /* '0'  */
#define     TK_NU_9     0x2339      /* '9'  */

#define     TK_KK_S     0x2521      /* カナカナ先頭 */
#define     TK_KK_E     0x2576      /* カナカナ最後 */
#define     TK_HK_S     0x2421      /* ひらがな先頭 */
#define     TK_HK_E     0x2473      /* ひらがな最後 */

#define     TK_DKON     0x212b      /* 濁音     */
#define     TK_HNDK     0x212c      /* 半濁音   */

#define     TK_0        (TK_NU_0+0)
#define     TK_1        (TK_NU_0+1)
#define     TK_2        (TK_NU_0+2)
#define     TK_3        (TK_NU_0+3)
#define     TK_4        (TK_NU_0+4)
#define     TK_5        (TK_NU_0+5)
#define     TK_6        (TK_NU_0+6)
#define     TK_7        (TK_NU_0+7)
#define     TK_8        (TK_NU_0+8)
#define     TK_9        (TK_NU_0+9)

#define     TK_A        (TK_AL_A+0)
#define     TK_B        (TK_AL_A+1)
#define     TK_C        (TK_AL_A+2)
#define     TK_D        (TK_AL_A+3)
#define     TK_E        (TK_AL_A+4)
#define     TK_F        (TK_AL_A+5)
#define     TK_G        (TK_AL_A+6)
#define     TK_H        (TK_AL_A+7)
#define     TK_I        (TK_AL_A+8)
#define     TK_J        (TK_AL_A+9)
#define     TK_K        (TK_AL_A+10)
#define     TK_L        (TK_AL_A+11)
#define     TK_M        (TK_AL_A+12)
#define     TK_N        (TK_AL_A+13)
#define     TK_O        (TK_AL_A+14)
#define     TK_P        (TK_AL_A+15)
#define     TK_Q        (TK_AL_A+16)
#define     TK_R        (TK_AL_A+17)
#define     TK_S        (TK_AL_A+18)
#define     TK_T        (TK_AL_A+19)
#define     TK_U        (TK_AL_A+20)
#define     TK_V        (TK_AL_A+21)
#define     TK_W        (TK_AL_A+22)
#define     TK_X        (TK_AL_A+23)
#define     TK_Y        (TK_AL_A+24)
#define     TK_Z        (TK_AL_A+25)

#define     TK_a        (TK_AL_a+0)
#define     TK_b        (TK_AL_a+1)
#define     TK_c        (TK_AL_a+2)
#define     TK_d        (TK_AL_a+3)
#define     TK_e        (TK_AL_a+4)
#define     TK_f        (TK_AL_a+5)
#define     TK_g        (TK_AL_a+6)
#define     TK_h        (TK_AL_a+7)
#define     TK_i        (TK_AL_a+8)
#define     TK_j        (TK_AL_a+9)
#define     TK_k        (TK_AL_a+10)
#define     TK_l        (TK_AL_a+11)
#define     TK_m        (TK_AL_a+12)
#define     TK_n        (TK_AL_a+13)
#define     TK_o        (TK_AL_a+14)
#define     TK_p        (TK_AL_a+15)
#define     TK_q        (TK_AL_a+16)
#define     TK_r        (TK_AL_a+17)
#define     TK_s        (TK_AL_a+18)
#define     TK_t        (TK_AL_a+19)
#define     TK_u        (TK_AL_a+20)
#define     TK_v        (TK_AL_a+21)
#define     TK_w        (TK_AL_a+22)
#define     TK_x        (TK_AL_a+23)
#define     TK_y        (TK_AL_a+24)
#define     TK_z        (TK_AL_a+25)

この章の目次にもどる
前頁:1.15 tad.h にもどる
次頁:1.17 tctype.h にすすむ