root/trunk/thune/charset.c

Revision 523, 1.6 kB (checked in by krobillard, 7 months ago)

Builds on Solaris.

Line 
1/*
2*/
3
4
5#ifdef __sun__
6#include <inttypes.h>
7#else
8
9#include <stdint.h>
10#endif
11
12
13
14/* Blanks: null space tab cr lf */
15uint8_t charset_white[32] = {
16        0x01,0x26,0x00,0x00,0x01,0x00,0x00,0x00,
17        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
18        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
20};
21
22
23/* Delimiters: [](){}"; null space tab cr lf */
24uint8_t charset_delimiters[32] = {
25        0x01,0x26,0x00,0x00,0x05,0x03,0x00,0x08,
26        0x00,0x00,0x00,0x28,0x00,0x00,0x00,0x28,
27        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
28        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
29};
30
31
32/* Start of Word: a-z A-Z ?!.*&|=_~ and all ascii >= 127  */
33uint8_t charset_sword[32] = {
34        0x00,0x00,0x00,0x00,0x42,0x44,0x00,0xF0,
35        0xFE,0xFF,0xFF,0x97,0xFF,0xFF,0xFF,0x57,
36        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
37        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
38};
39
40
41/* Word: 0-9 a-z A-Z ?!.+-*&|=_~ and all ascii >= 127 */
42uint8_t charset_word[32] = {
43        0x00,0x00,0x00,0x00,0x42,0x6C,0xFF,0xF3,
44        0xFE,0xFF,0xFF,0x97,0xFF,0xFF,0xFF,0x57,
45        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
46        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
47};
48
49
50/* Binary: 0-9 a-z A-Z space tab lf */
51uint8_t charset_binary[32] = {
52    0x00,0x06,0x00,0x00,0x01,0x00,0xFF,0x03,
53    0x7E,0x00,0x00,0x00,0x7E,0x00,0x00,0x00,
54    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
55    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
56};
57
58
59/* Hex: 0-9 a-z A-Z */
60uint8_t charset_hex[32] = {
61    0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x03,
62    0x7E,0x00,0x00,0x00,0x7E,0x00,0x00,0x00,
63    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
64    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
65};
66
67
68/*EOF*/
Note: See TracBrowser for help on using the browser.