1355604Sdelphij/* 2355604Sdelphij __ __ _ 3355604Sdelphij ___\ \/ /_ __ __ _| |_ 4355604Sdelphij / _ \\ /| '_ \ / _` | __| 5355604Sdelphij | __// \| |_) | (_| | |_ 6355604Sdelphij \___/_/\_\ .__/ \__,_|\__| 7355604Sdelphij |_| XML parser 8355604Sdelphij 9355604Sdelphij Copyright (c) 1997-2000 Thai Open Source Software Center Ltd 10355604Sdelphij Copyright (c) 2000-2017 Expat development team 11355604Sdelphij Licensed under the MIT license: 12355604Sdelphij 13355604Sdelphij Permission is hereby granted, free of charge, to any person obtaining 14355604Sdelphij a copy of this software and associated documentation files (the 15355604Sdelphij "Software"), to deal in the Software without restriction, including 16355604Sdelphij without limitation the rights to use, copy, modify, merge, publish, 17355604Sdelphij distribute, sublicense, and/or sell copies of the Software, and to permit 18355604Sdelphij persons to whom the Software is furnished to do so, subject to the 19355604Sdelphij following conditions: 20355604Sdelphij 21355604Sdelphij The above copyright notice and this permission notice shall be included 22355604Sdelphij in all copies or substantial portions of the Software. 23355604Sdelphij 24355604Sdelphij THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 25355604Sdelphij EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 26355604Sdelphij MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 27355604Sdelphij NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 28355604Sdelphij DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 29355604Sdelphij OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 30355604Sdelphij USE OR OTHER DEALINGS IN THE SOFTWARE. 31104349Sphk*/ 32104349Sphk 33104349Sphk#define ASCII_A 0x41 34104349Sphk#define ASCII_B 0x42 35104349Sphk#define ASCII_C 0x43 36104349Sphk#define ASCII_D 0x44 37104349Sphk#define ASCII_E 0x45 38104349Sphk#define ASCII_F 0x46 39104349Sphk#define ASCII_G 0x47 40104349Sphk#define ASCII_H 0x48 41104349Sphk#define ASCII_I 0x49 42104349Sphk#define ASCII_J 0x4A 43104349Sphk#define ASCII_K 0x4B 44104349Sphk#define ASCII_L 0x4C 45104349Sphk#define ASCII_M 0x4D 46104349Sphk#define ASCII_N 0x4E 47104349Sphk#define ASCII_O 0x4F 48104349Sphk#define ASCII_P 0x50 49104349Sphk#define ASCII_Q 0x51 50104349Sphk#define ASCII_R 0x52 51104349Sphk#define ASCII_S 0x53 52104349Sphk#define ASCII_T 0x54 53104349Sphk#define ASCII_U 0x55 54104349Sphk#define ASCII_V 0x56 55104349Sphk#define ASCII_W 0x57 56104349Sphk#define ASCII_X 0x58 57104349Sphk#define ASCII_Y 0x59 58104349Sphk#define ASCII_Z 0x5A 59104349Sphk 60104349Sphk#define ASCII_a 0x61 61104349Sphk#define ASCII_b 0x62 62104349Sphk#define ASCII_c 0x63 63104349Sphk#define ASCII_d 0x64 64104349Sphk#define ASCII_e 0x65 65104349Sphk#define ASCII_f 0x66 66104349Sphk#define ASCII_g 0x67 67104349Sphk#define ASCII_h 0x68 68104349Sphk#define ASCII_i 0x69 69104349Sphk#define ASCII_j 0x6A 70104349Sphk#define ASCII_k 0x6B 71104349Sphk#define ASCII_l 0x6C 72104349Sphk#define ASCII_m 0x6D 73104349Sphk#define ASCII_n 0x6E 74104349Sphk#define ASCII_o 0x6F 75104349Sphk#define ASCII_p 0x70 76104349Sphk#define ASCII_q 0x71 77104349Sphk#define ASCII_r 0x72 78104349Sphk#define ASCII_s 0x73 79104349Sphk#define ASCII_t 0x74 80104349Sphk#define ASCII_u 0x75 81104349Sphk#define ASCII_v 0x76 82104349Sphk#define ASCII_w 0x77 83104349Sphk#define ASCII_x 0x78 84104349Sphk#define ASCII_y 0x79 85104349Sphk#define ASCII_z 0x7A 86104349Sphk 87104349Sphk#define ASCII_0 0x30 88104349Sphk#define ASCII_1 0x31 89104349Sphk#define ASCII_2 0x32 90104349Sphk#define ASCII_3 0x33 91104349Sphk#define ASCII_4 0x34 92104349Sphk#define ASCII_5 0x35 93104349Sphk#define ASCII_6 0x36 94104349Sphk#define ASCII_7 0x37 95104349Sphk#define ASCII_8 0x38 96104349Sphk#define ASCII_9 0x39 97104349Sphk 98104349Sphk#define ASCII_TAB 0x09 99178848Scokane#define ASCII_SPACE 0x20 100104349Sphk#define ASCII_EXCL 0x21 101104349Sphk#define ASCII_QUOT 0x22 102104349Sphk#define ASCII_AMP 0x26 103104349Sphk#define ASCII_APOS 0x27 104104349Sphk#define ASCII_MINUS 0x2D 105104349Sphk#define ASCII_PERIOD 0x2E 106104349Sphk#define ASCII_COLON 0x3A 107104349Sphk#define ASCII_SEMI 0x3B 108104349Sphk#define ASCII_LT 0x3C 109104349Sphk#define ASCII_EQUALS 0x3D 110104349Sphk#define ASCII_GT 0x3E 111104349Sphk#define ASCII_LSQB 0x5B 112104349Sphk#define ASCII_RSQB 0x5D 113104349Sphk#define ASCII_UNDERSCORE 0x5F 114178848Scokane#define ASCII_LPAREN 0x28 115178848Scokane#define ASCII_RPAREN 0x29 116178848Scokane#define ASCII_FF 0x0C 117178848Scokane#define ASCII_SLASH 0x2F 118178848Scokane#define ASCII_HASH 0x23 119178848Scokane#define ASCII_PIPE 0x7C 120178848Scokane#define ASCII_COMMA 0x2C 121