XMLUniDefs.hpp
上传用户:zhuqijet
上传日期:2013-06-25
资源大小:10074k
文件大小:8k
源码类别:

词法分析

开发平台:

Visual C++

  1. /*
  2.  * The Apache Software License, Version 1.1
  3.  *
  4.  * Copyright (c) 1999-2001 The Apache Software Foundation.  All rights
  5.  * reserved.
  6.  *
  7.  * Redistribution and use in source and binary forms, with or without
  8.  * modification, are permitted provided that the following conditions
  9.  * are met:
  10.  *
  11.  * 1. Redistributions of source code must retain the above copyright
  12.  *    notice, this list of conditions and the following disclaimer.
  13.  *
  14.  * 2. Redistributions in binary form must reproduce the above copyright
  15.  *    notice, this list of conditions and the following disclaimer in
  16.  *    the documentation and/or other materials provided with the
  17.  *    distribution.
  18.  *
  19.  * 3. The end-user documentation included with the redistribution,
  20.  *    if any, must include the following acknowledgment:
  21.  *       "This product includes software developed by the
  22.  *        Apache Software Foundation (http://www.apache.org/)."
  23.  *    Alternately, this acknowledgment may appear in the software itself,
  24.  *    if and wherever such third-party acknowledgments normally appear.
  25.  *
  26.  * 4. The names "Xerces" and "Apache Software Foundation" must
  27.  *    not be used to endorse or promote products derived from this
  28.  *    software without prior written permission. For written
  29.  *    permission, please contact apache@apache.org.
  30.  *
  31.  * 5. Products derived from this software may not be called "Apache",
  32.  *    nor may "Apache" appear in their name, without prior written
  33.  *    permission of the Apache Software Foundation.
  34.  *
  35.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  36.  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  37.  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  38.  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  39.  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  40.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  41.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  42.  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  43.  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  44.  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  45.  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  46.  * SUCH DAMAGE.
  47.  * ====================================================================
  48.  *
  49.  * This software consists of voluntary contributions made by many
  50.  * individuals on behalf of the Apache Software Foundation, and was
  51.  * originally based on software copyright (c) 1999, International
  52.  * Business Machines, Inc., http://www.ibm.com .  For more information
  53.  * on the Apache Software Foundation, please see
  54.  * <http://www.apache.org/>.
  55.  */
  56. /*
  57.  * $Id: XMLUniDefs.hpp,v 1.2 2002/11/04 15:22:05 tng Exp $
  58.  */
  59. #if !defined(XMLUNIDEFS_HPP)
  60. #define XMLUNIDEFS_HPP
  61. #include <xercesc/util/XercesDefs.hpp>
  62. XERCES_CPP_NAMESPACE_BEGIN
  63. // ---------------------------------------------------------------------------
  64. //  Constants for the Unicode characters of interest to us in an XML parser
  65. //  We don't put these inside the class because then they could not be const
  66. //  inline values, which would have significant performance ramifications.
  67. //
  68. //  We cannot use a namespace because of the requirement to support old
  69. //  compilers.
  70. // ---------------------------------------------------------------------------
  71. const XMLCh chNull                  = 0x00;
  72. const XMLCh chHTab                  = 0x09;
  73. const XMLCh chLF                    = 0x0A;
  74. const XMLCh chVTab                  = 0x0B;
  75. const XMLCh chFF                    = 0x0C;
  76. const XMLCh chCR                    = 0x0D;
  77. const XMLCh chAmpersand             = 0x26;
  78. const XMLCh chAsterisk              = 0x2A;
  79. const XMLCh chAt                    = 0x40;
  80. const XMLCh chBackSlash             = 0x5C;
  81. const XMLCh chBang                  = 0x21;
  82. const XMLCh chCaret                 = 0x5E;
  83. const XMLCh chCloseAngle            = 0x3E;
  84. const XMLCh chCloseCurly            = 0x7D;
  85. const XMLCh chCloseParen            = 0x29;
  86. const XMLCh chCloseSquare           = 0x5D;
  87. const XMLCh chColon                 = 0x3A;
  88. const XMLCh chComma                 = 0x2C;
  89. const XMLCh chDash                  = 0x2D;
  90. const XMLCh chDollarSign            = 0x24;
  91. const XMLCh chDoubleQuote           = 0x22;
  92. const XMLCh chEqual                 = 0x3D;
  93. const XMLCh chForwardSlash          = 0x2F;
  94. const XMLCh chGrave                 = 0x60;
  95. const XMLCh chNEL                   = 0x85;
  96. const XMLCh chOpenAngle             = 0x3C;
  97. const XMLCh chOpenCurly             = 0x7B;
  98. const XMLCh chOpenParen             = 0x28;
  99. const XMLCh chOpenSquare            = 0x5B;
  100. const XMLCh chPercent               = 0x25;
  101. const XMLCh chPeriod                = 0x2E;
  102. const XMLCh chPipe                  = 0x7C;
  103. const XMLCh chPlus                  = 0x2B;
  104. const XMLCh chPound                 = 0x23;
  105. const XMLCh chQuestion              = 0x3F;
  106. const XMLCh chSingleQuote           = 0x27;
  107. const XMLCh chSpace                 = 0x20;
  108. const XMLCh chSemiColon             = 0x3B;
  109. const XMLCh chTilde                 = 0x7E;
  110. const XMLCh chUnderscore            = 0x5F;
  111. const XMLCh chSwappedUnicodeMarker  = XMLCh(0xFFFE);
  112. const XMLCh chUnicodeMarker         = XMLCh(0xFEFF);
  113. const XMLCh chDigit_0               = 0x30;
  114. const XMLCh chDigit_1               = 0x31;
  115. const XMLCh chDigit_2               = 0x32;
  116. const XMLCh chDigit_3               = 0x33;
  117. const XMLCh chDigit_4               = 0x34;
  118. const XMLCh chDigit_5               = 0x35;
  119. const XMLCh chDigit_6               = 0x36;
  120. const XMLCh chDigit_7               = 0x37;
  121. const XMLCh chDigit_8               = 0x38;
  122. const XMLCh chDigit_9               = 0x39;
  123. const XMLCh chLatin_A               = 0x41;
  124. const XMLCh chLatin_B               = 0x42;
  125. const XMLCh chLatin_C               = 0x43;
  126. const XMLCh chLatin_D               = 0x44;
  127. const XMLCh chLatin_E               = 0x45;
  128. const XMLCh chLatin_F               = 0x46;
  129. const XMLCh chLatin_G               = 0x47;
  130. const XMLCh chLatin_H               = 0x48;
  131. const XMLCh chLatin_I               = 0x49;
  132. const XMLCh chLatin_J               = 0x4A;
  133. const XMLCh chLatin_K               = 0x4B;
  134. const XMLCh chLatin_L               = 0x4C;
  135. const XMLCh chLatin_M               = 0x4D;
  136. const XMLCh chLatin_N               = 0x4E;
  137. const XMLCh chLatin_O               = 0x4F;
  138. const XMLCh chLatin_P               = 0x50;
  139. const XMLCh chLatin_Q               = 0x51;
  140. const XMLCh chLatin_R               = 0x52;
  141. const XMLCh chLatin_S               = 0x53;
  142. const XMLCh chLatin_T               = 0x54;
  143. const XMLCh chLatin_U               = 0x55;
  144. const XMLCh chLatin_V               = 0x56;
  145. const XMLCh chLatin_W               = 0x57;
  146. const XMLCh chLatin_X               = 0x58;
  147. const XMLCh chLatin_Y               = 0x59;
  148. const XMLCh chLatin_Z               = 0x5A;
  149. const XMLCh chLatin_a               = 0x61;
  150. const XMLCh chLatin_b               = 0x62;
  151. const XMLCh chLatin_c               = 0x63;
  152. const XMLCh chLatin_d               = 0x64;
  153. const XMLCh chLatin_e               = 0x65;
  154. const XMLCh chLatin_f               = 0x66;
  155. const XMLCh chLatin_g               = 0x67;
  156. const XMLCh chLatin_h               = 0x68;
  157. const XMLCh chLatin_i               = 0x69;
  158. const XMLCh chLatin_j               = 0x6A;
  159. const XMLCh chLatin_k               = 0x6B;
  160. const XMLCh chLatin_l               = 0x6C;
  161. const XMLCh chLatin_m               = 0x6D;
  162. const XMLCh chLatin_n               = 0x6E;
  163. const XMLCh chLatin_o               = 0x6F;
  164. const XMLCh chLatin_p               = 0x70;
  165. const XMLCh chLatin_q               = 0x71;
  166. const XMLCh chLatin_r               = 0x72;
  167. const XMLCh chLatin_s               = 0x73;
  168. const XMLCh chLatin_t               = 0x74;
  169. const XMLCh chLatin_u               = 0x75;
  170. const XMLCh chLatin_v               = 0x76;
  171. const XMLCh chLatin_w               = 0x77;
  172. const XMLCh chLatin_x               = 0x78;
  173. const XMLCh chLatin_y               = 0x79;
  174. const XMLCh chLatin_z               = 0x7A;
  175. const XMLCh chYenSign               = 0xA5;
  176. const XMLCh chWonSign               = 0x20A9;
  177. const XMLCh chLineSeparator         = 0x2028;
  178. const XMLCh chParagraphSeparator    = 0x2029;
  179. XERCES_CPP_NAMESPACE_END
  180. #endif