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