| 8 |
|
|
| 9 |
Written by: Philip Hazel <ph10@cam.ac.uk> |
Written by: Philip Hazel <ph10@cam.ac.uk> |
| 10 |
|
|
| 11 |
Copyright (c) 1997-1999 University of Cambridge |
Copyright (c) 1997-2000 University of Cambridge |
| 12 |
|
|
| 13 |
----------------------------------------------------------------------------- |
----------------------------------------------------------------------------- |
| 14 |
Permission is granted to anyone to use this software for any purpose on any |
Permission is granted to anyone to use this software for any purpose on any |
| 89 |
printf(",\n\n"); |
printf(",\n\n"); |
| 90 |
|
|
| 91 |
printf( |
printf( |
| 92 |
"/* This table contains bit maps for digits, 'word' chars, and white\n" |
"/* This table contains bit maps for various character classes.\n" |
| 93 |
"space. Each map is 32 bytes long and the bits run from the least\n" |
"Each map is 32 bytes long and the bits run from the least\n" |
| 94 |
"significant end of each byte. */\n\n"); |
"significant end of each byte. The classes that have their own\n" |
| 95 |
|
"maps are: space, xdigit, digit, upper, lower, word, graph\n" |
| 96 |
|
"print, punct, and cntrl. Other classes are built from combinations. */\n\n"); |
| 97 |
|
|
| 98 |
printf(" "); |
printf(" "); |
| 99 |
for (i = 0; i < cbit_length; i++) |
for (i = 0; i < cbit_length; i++) |
| 106 |
printf("0x%02x", *tables++); |
printf("0x%02x", *tables++); |
| 107 |
if (i != cbit_length - 1) printf(","); |
if (i != cbit_length - 1) printf(","); |
| 108 |
} |
} |
| 109 |
printf(" ,\n\n"); |
printf(",\n\n"); |
| 110 |
|
|
| 111 |
printf( |
printf( |
| 112 |
"/* This table identifies various classes of character by individual bits:\n" |
"/* This table identifies various classes of character by individual bits:\n" |