xref: /dflybsd-src/contrib/expat/lib/ascii.h (revision f0e06f680b0e050b5ef51c84848092142c41acbb)
1*0c65ac1dSAntonio Huete Jimenez /*
2*0c65ac1dSAntonio Huete Jimenez                             __  __            _
3*0c65ac1dSAntonio Huete Jimenez                          ___\ \/ /_ __   __ _| |_
4*0c65ac1dSAntonio Huete Jimenez                         / _ \\  /| '_ \ / _` | __|
5*0c65ac1dSAntonio Huete Jimenez                        |  __//  \| |_) | (_| | |_
6*0c65ac1dSAntonio Huete Jimenez                         \___/_/\_\ .__/ \__,_|\__|
7*0c65ac1dSAntonio Huete Jimenez                                  |_| XML parser
8*0c65ac1dSAntonio Huete Jimenez 
9*0c65ac1dSAntonio Huete Jimenez    Copyright (c) 1999-2000 Thai Open Source Software Center Ltd
10*0c65ac1dSAntonio Huete Jimenez    Copyright (c) 2000      Clark Cooper <coopercc@users.sourceforge.net>
11*0c65ac1dSAntonio Huete Jimenez    Copyright (c) 2002      Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
12*0c65ac1dSAntonio Huete Jimenez    Copyright (c) 2007      Karl Waclawek <karl@waclawek.net>
13*0c65ac1dSAntonio Huete Jimenez    Copyright (c) 2017      Sebastian Pipping <sebastian@pipping.org>
14*0c65ac1dSAntonio Huete Jimenez    Licensed under the MIT license:
15*0c65ac1dSAntonio Huete Jimenez 
16*0c65ac1dSAntonio Huete Jimenez    Permission is  hereby granted,  free of charge,  to any  person obtaining
17*0c65ac1dSAntonio Huete Jimenez    a  copy  of  this  software   and  associated  documentation  files  (the
18*0c65ac1dSAntonio Huete Jimenez    "Software"),  to  deal in  the  Software  without restriction,  including
19*0c65ac1dSAntonio Huete Jimenez    without  limitation the  rights  to use,  copy,  modify, merge,  publish,
20*0c65ac1dSAntonio Huete Jimenez    distribute, sublicense, and/or sell copies of the Software, and to permit
21*0c65ac1dSAntonio Huete Jimenez    persons  to whom  the Software  is  furnished to  do so,  subject to  the
22*0c65ac1dSAntonio Huete Jimenez    following conditions:
23*0c65ac1dSAntonio Huete Jimenez 
24*0c65ac1dSAntonio Huete Jimenez    The above copyright  notice and this permission notice  shall be included
25*0c65ac1dSAntonio Huete Jimenez    in all copies or substantial portions of the Software.
26*0c65ac1dSAntonio Huete Jimenez 
27*0c65ac1dSAntonio Huete Jimenez    THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
28*0c65ac1dSAntonio Huete Jimenez    EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
29*0c65ac1dSAntonio Huete Jimenez    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
30*0c65ac1dSAntonio Huete Jimenez    NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
31*0c65ac1dSAntonio Huete Jimenez    DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
32*0c65ac1dSAntonio Huete Jimenez    OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
33*0c65ac1dSAntonio Huete Jimenez    USE OR OTHER DEALINGS IN THE SOFTWARE.
34fb9a9224SMatthew Dillon */
35fb9a9224SMatthew Dillon 
36fb9a9224SMatthew Dillon #define ASCII_A 0x41
37fb9a9224SMatthew Dillon #define ASCII_B 0x42
38fb9a9224SMatthew Dillon #define ASCII_C 0x43
39fb9a9224SMatthew Dillon #define ASCII_D 0x44
40fb9a9224SMatthew Dillon #define ASCII_E 0x45
41fb9a9224SMatthew Dillon #define ASCII_F 0x46
42fb9a9224SMatthew Dillon #define ASCII_G 0x47
43fb9a9224SMatthew Dillon #define ASCII_H 0x48
44fb9a9224SMatthew Dillon #define ASCII_I 0x49
45fb9a9224SMatthew Dillon #define ASCII_J 0x4A
46fb9a9224SMatthew Dillon #define ASCII_K 0x4B
47fb9a9224SMatthew Dillon #define ASCII_L 0x4C
48fb9a9224SMatthew Dillon #define ASCII_M 0x4D
49fb9a9224SMatthew Dillon #define ASCII_N 0x4E
50fb9a9224SMatthew Dillon #define ASCII_O 0x4F
51fb9a9224SMatthew Dillon #define ASCII_P 0x50
52fb9a9224SMatthew Dillon #define ASCII_Q 0x51
53fb9a9224SMatthew Dillon #define ASCII_R 0x52
54fb9a9224SMatthew Dillon #define ASCII_S 0x53
55fb9a9224SMatthew Dillon #define ASCII_T 0x54
56fb9a9224SMatthew Dillon #define ASCII_U 0x55
57fb9a9224SMatthew Dillon #define ASCII_V 0x56
58fb9a9224SMatthew Dillon #define ASCII_W 0x57
59fb9a9224SMatthew Dillon #define ASCII_X 0x58
60fb9a9224SMatthew Dillon #define ASCII_Y 0x59
61fb9a9224SMatthew Dillon #define ASCII_Z 0x5A
62fb9a9224SMatthew Dillon 
63fb9a9224SMatthew Dillon #define ASCII_a 0x61
64fb9a9224SMatthew Dillon #define ASCII_b 0x62
65fb9a9224SMatthew Dillon #define ASCII_c 0x63
66fb9a9224SMatthew Dillon #define ASCII_d 0x64
67fb9a9224SMatthew Dillon #define ASCII_e 0x65
68fb9a9224SMatthew Dillon #define ASCII_f 0x66
69fb9a9224SMatthew Dillon #define ASCII_g 0x67
70fb9a9224SMatthew Dillon #define ASCII_h 0x68
71fb9a9224SMatthew Dillon #define ASCII_i 0x69
72fb9a9224SMatthew Dillon #define ASCII_j 0x6A
73fb9a9224SMatthew Dillon #define ASCII_k 0x6B
74fb9a9224SMatthew Dillon #define ASCII_l 0x6C
75fb9a9224SMatthew Dillon #define ASCII_m 0x6D
76fb9a9224SMatthew Dillon #define ASCII_n 0x6E
77fb9a9224SMatthew Dillon #define ASCII_o 0x6F
78fb9a9224SMatthew Dillon #define ASCII_p 0x70
79fb9a9224SMatthew Dillon #define ASCII_q 0x71
80fb9a9224SMatthew Dillon #define ASCII_r 0x72
81fb9a9224SMatthew Dillon #define ASCII_s 0x73
82fb9a9224SMatthew Dillon #define ASCII_t 0x74
83fb9a9224SMatthew Dillon #define ASCII_u 0x75
84fb9a9224SMatthew Dillon #define ASCII_v 0x76
85fb9a9224SMatthew Dillon #define ASCII_w 0x77
86fb9a9224SMatthew Dillon #define ASCII_x 0x78
87fb9a9224SMatthew Dillon #define ASCII_y 0x79
88fb9a9224SMatthew Dillon #define ASCII_z 0x7A
89fb9a9224SMatthew Dillon 
90fb9a9224SMatthew Dillon #define ASCII_0 0x30
91fb9a9224SMatthew Dillon #define ASCII_1 0x31
92fb9a9224SMatthew Dillon #define ASCII_2 0x32
93fb9a9224SMatthew Dillon #define ASCII_3 0x33
94fb9a9224SMatthew Dillon #define ASCII_4 0x34
95fb9a9224SMatthew Dillon #define ASCII_5 0x35
96fb9a9224SMatthew Dillon #define ASCII_6 0x36
97fb9a9224SMatthew Dillon #define ASCII_7 0x37
98fb9a9224SMatthew Dillon #define ASCII_8 0x38
99fb9a9224SMatthew Dillon #define ASCII_9 0x39
100fb9a9224SMatthew Dillon 
101fb9a9224SMatthew Dillon #define ASCII_TAB 0x09
102fb9a9224SMatthew Dillon #define ASCII_SPACE 0x20
103fb9a9224SMatthew Dillon #define ASCII_EXCL 0x21
104fb9a9224SMatthew Dillon #define ASCII_QUOT 0x22
105fb9a9224SMatthew Dillon #define ASCII_AMP 0x26
106fb9a9224SMatthew Dillon #define ASCII_APOS 0x27
107fb9a9224SMatthew Dillon #define ASCII_MINUS 0x2D
108fb9a9224SMatthew Dillon #define ASCII_PERIOD 0x2E
109fb9a9224SMatthew Dillon #define ASCII_COLON 0x3A
110fb9a9224SMatthew Dillon #define ASCII_SEMI 0x3B
111fb9a9224SMatthew Dillon #define ASCII_LT 0x3C
112fb9a9224SMatthew Dillon #define ASCII_EQUALS 0x3D
113fb9a9224SMatthew Dillon #define ASCII_GT 0x3E
114fb9a9224SMatthew Dillon #define ASCII_LSQB 0x5B
115fb9a9224SMatthew Dillon #define ASCII_RSQB 0x5D
116fb9a9224SMatthew Dillon #define ASCII_UNDERSCORE 0x5F
117fb9a9224SMatthew Dillon #define ASCII_LPAREN 0x28
118fb9a9224SMatthew Dillon #define ASCII_RPAREN 0x29
119fb9a9224SMatthew Dillon #define ASCII_FF 0x0C
120fb9a9224SMatthew Dillon #define ASCII_SLASH 0x2F
121fb9a9224SMatthew Dillon #define ASCII_HASH 0x23
122fb9a9224SMatthew Dillon #define ASCII_PIPE 0x7C
123fb9a9224SMatthew Dillon #define ASCII_COMMA 0x2C
124