ascii.h 3.6 KB

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