XMLUniDefs.hpp
上传用户:huihehuasu
上传日期:2007-01-10
资源大小:6948k
文件大小:8k
源码类别:

xml/soap/webservice

开发平台:

C/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.5 2001/05/11 13:26:32 tng Exp $
  58.  */
  59. #if !defined(XMLUNIDEFS_HPP)
  60. #define XMLUNIDEFS_HPP
  61. #include <util/XercesDefs.hpp>
  62. // ---------------------------------------------------------------------------
  63. //  Constants for the Unicode characters of interest to us in an XML parser
  64. //  We don't put these inside the class because then they could not be const
  65. //  inline values, which would have significant performance ramifications.
  66. //
  67. //  We cannot use a namespace because of the requirement to support old
  68. //  compilers.
  69. // ---------------------------------------------------------------------------
  70. const XMLCh chNull                  = 0x00;
  71. const XMLCh chHTab                  = 0x09;
  72. const XMLCh chLF                    = 0x0A;
  73. const XMLCh chVTab                  = 0x0B;
  74. const XMLCh chFF                    = 0x0C;
  75. const XMLCh chCR                    = 0x0D;
  76. const XMLCh chAmpersand             = 0x26;
  77. const XMLCh chAsterisk              = 0x2A;
  78. const XMLCh chAt                    = 0x40;
  79. const XMLCh chBackSlash             = 0x5C;
  80. const XMLCh chBang                  = 0x21;
  81. const XMLCh chCaret                 = 0x5E;
  82. const XMLCh chCloseAngle            = 0x3E;
  83. const XMLCh chCloseCurly            = 0x7D;
  84. const XMLCh chCloseParen            = 0x29;
  85. const XMLCh chCloseSquare           = 0x5D;
  86. const XMLCh chColon                 = 0x3A;
  87. const XMLCh chComma                 = 0x2C;
  88. const XMLCh chDash                  = 0x2D;
  89. const XMLCh chDollarSign            = 0x24;
  90. const XMLCh chDoubleQuote           = 0x22;
  91. const XMLCh chEqual                 = 0x3D;
  92. const XMLCh chForwardSlash          = 0x2F;
  93. const XMLCh chGrave                 = 0x60;
  94. const XMLCh chNEL                   = 0x85;
  95. const XMLCh chOpenAngle             = 0x3C;
  96. const XMLCh chOpenCurly             = 0x7B;
  97. const XMLCh chOpenParen             = 0x28;
  98. const XMLCh chOpenSquare            = 0x5B;
  99. const XMLCh chPercent               = 0x25;
  100. const XMLCh chPeriod                = 0x2E;
  101. const XMLCh chPipe                  = 0x7C;
  102. const XMLCh chPlus                  = 0x2B;
  103. const XMLCh chPound                 = 0x23;
  104. const XMLCh chQuestion              = 0x3F;
  105. const XMLCh chSingleQuote           = 0x27;
  106. const XMLCh chSpace                 = 0x20;
  107. const XMLCh chSemiColon             = 0x3B;
  108. const XMLCh chTilde                 = 0x7E;
  109. const XMLCh chUnderscore            = 0x5F;
  110. const XMLCh chSwappedUnicodeMarker  = XMLCh(0xFFFE);
  111. const XMLCh chUnicodeMarker         = XMLCh(0xFEFF);
  112. const XMLCh chDigit_0               = 0x30;
  113. const XMLCh chDigit_1               = 0x31;
  114. const XMLCh chDigit_2               = 0x32;
  115. const XMLCh chDigit_3               = 0x33;
  116. const XMLCh chDigit_4               = 0x34;
  117. const XMLCh chDigit_5               = 0x35;
  118. const XMLCh chDigit_6               = 0x36;
  119. const XMLCh chDigit_7               = 0x37;
  120. const XMLCh chDigit_8               = 0x38;
  121. const XMLCh chDigit_9               = 0x39;
  122. const XMLCh chLatin_A               = 0x41;
  123. const XMLCh chLatin_B               = 0x42;
  124. const XMLCh chLatin_C               = 0x43;
  125. const XMLCh chLatin_D               = 0x44;
  126. const XMLCh chLatin_E               = 0x45;
  127. const XMLCh chLatin_F               = 0x46;
  128. const XMLCh chLatin_G               = 0x47;
  129. const XMLCh chLatin_H               = 0x48;
  130. const XMLCh chLatin_I               = 0x49;
  131. const XMLCh chLatin_J               = 0x4A;
  132. const XMLCh chLatin_K               = 0x4B;
  133. const XMLCh chLatin_L               = 0x4C;
  134. const XMLCh chLatin_M               = 0x4D;
  135. const XMLCh chLatin_N               = 0x4E;
  136. const XMLCh chLatin_O               = 0x4F;
  137. const XMLCh chLatin_P               = 0x50;
  138. const XMLCh chLatin_Q               = 0x51;
  139. const XMLCh chLatin_R               = 0x52;
  140. const XMLCh chLatin_S               = 0x53;
  141. const XMLCh chLatin_T               = 0x54;
  142. const XMLCh chLatin_U               = 0x55;
  143. const XMLCh chLatin_V               = 0x56;
  144. const XMLCh chLatin_W               = 0x57;
  145. const XMLCh chLatin_X               = 0x58;
  146. const XMLCh chLatin_Y               = 0x59;
  147. const XMLCh chLatin_Z               = 0x5A;
  148. const XMLCh chLatin_a               = 0x61;
  149. const XMLCh chLatin_b               = 0x62;
  150. const XMLCh chLatin_c               = 0x63;
  151. const XMLCh chLatin_d               = 0x64;
  152. const XMLCh chLatin_e               = 0x65;
  153. const XMLCh chLatin_f               = 0x66;
  154. const XMLCh chLatin_g               = 0x67;
  155. const XMLCh chLatin_h               = 0x68;
  156. const XMLCh chLatin_i               = 0x69;
  157. const XMLCh chLatin_j               = 0x6A;
  158. const XMLCh chLatin_k               = 0x6B;
  159. const XMLCh chLatin_l               = 0x6C;
  160. const XMLCh chLatin_m               = 0x6D;
  161. const XMLCh chLatin_n               = 0x6E;
  162. const XMLCh chLatin_o               = 0x6F;
  163. const XMLCh chLatin_p               = 0x70;
  164. const XMLCh chLatin_q               = 0x71;
  165. const XMLCh chLatin_r               = 0x72;
  166. const XMLCh chLatin_s               = 0x73;
  167. const XMLCh chLatin_t               = 0x74;
  168. const XMLCh chLatin_u               = 0x75;
  169. const XMLCh chLatin_v               = 0x76;
  170. const XMLCh chLatin_w               = 0x77;
  171. const XMLCh chLatin_x               = 0x78;
  172. const XMLCh chLatin_y               = 0x79;
  173. const XMLCh chLatin_z               = 0x7A;
  174. const XMLCh chYenSign               = 0xA5;
  175. const XMLCh chWonSign               = 0x20A9;
  176. const XMLCh chLineSeparator         = 0x2028;
  177. const XMLCh chParagraphSeparator    = 0x2029;
  178. #endif