antoine-source/appleworksgs/Spell/Src/CHARTYPE.C
2023-03-04 03:45:20 +01:00

1 line
3.2 KiB
C
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* #define TWSPACE 0x01 /* White space
* #define TLETTER 0x02 /* Letter
* #define TDIGIT 0x04 /* Digit
* #define THYPHEN 0x08 /* Hyphen
* #define TSLASH 0x10 /* Slash
* #define TNONALNUM 0x20 /* Non-alphanumeric
* #define TBPUNC 0x40 /* Beginning punctuation
* #define TEPUNC 0x80 /* Ending punctuation
*/
char chartype[256] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ^@ */
0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, /* ^H */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ^P */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ^X */
0x01, 0x80, 0xc0, 0x00, 0x00, 0x00, 0x00, 0xc0, /* sp */
0x40, 0x80, 0xC0, 0x00, 0x80, 0x08, 0x80, 0x10, /* ( */
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, /* 0 */
0x04, 0x04, 0x80, 0x80, 0x40, 0x00, 0x80, 0x80, /* 8 */
0x00, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, /* @ */
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, /* H */
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, /* P */
0x02, 0x02, 0x02, 0x40, 0x00, 0x80, 0x00, 0x00, /* X */
0x40, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, /* ` */
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, /* h */
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, /* p */
0x02, 0x02, 0x02, 0x40, 0x00, 0x80, 0x00, 0x00, /* x */
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, /* € */
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, /* ˆ */
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, /* <20> */
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, /* ˜ */
0xC0, 0x00, 0x00, 0x00, 0x40, 0x40, 0x40, 0x02, /*   */
0x80, 0x00, 0x80, 0x80, 0x00, 0x00, 0x02, 0x02, /* ¨ */
0x00, 0x00, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, /* ° */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, /* ¸ */
0x40, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, /* À */
0x80, 0xC0, 0x01, 0x02, 0x02, 0x02, 0x02, 0x02, /* È */
0x08, 0x08, 0x40, 0x80, 0x40, 0x80, 0x10, 0x00, /* Ð */
0x02, 0x02, 0x10, 0x00, 0x40, 0x80, 0x02, 0x02, /* Ø */
0xC0, 0x00, 0x80, 0x80, 0x00, 0x02, 0x02, 0x02, /* à */
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, /* è */
0x00, 0x02, 0x02, 0x02, 0x02, 0x02, 0x00, 0x00, /* ð */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /* ø */
};
char _SPdeftab[256] = {
0, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 1, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,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