00001 /* 00002 * Copyright 1999-2001,2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 /* 00018 * $Id: XMLUniDefs.hpp,v 1.3 2004/09/08 13:56:24 peiyongz Exp $ 00019 */ 00020 #if !defined(XMLUNIDEFS_HPP) 00021 #define XMLUNIDEFS_HPP 00022 00023 #include <xercesc/util/XercesDefs.hpp> 00024 00025 XERCES_CPP_NAMESPACE_BEGIN 00026 00027 // --------------------------------------------------------------------------- 00028 // Constants for the Unicode characters of interest to us in an XML parser 00029 // We don't put these inside the class because then they could not be const 00030 // inline values, which would have significant performance ramifications. 00031 // 00032 // We cannot use a namespace because of the requirement to support old 00033 // compilers. 00034 // --------------------------------------------------------------------------- 00035 const XMLCh chNull = 0x00; 00036 const XMLCh chHTab = 0x09; 00037 const XMLCh chLF = 0x0A; 00038 const XMLCh chVTab = 0x0B; 00039 const XMLCh chFF = 0x0C; 00040 const XMLCh chCR = 0x0D; 00041 const XMLCh chAmpersand = 0x26; 00042 const XMLCh chAsterisk = 0x2A; 00043 const XMLCh chAt = 0x40; 00044 const XMLCh chBackSlash = 0x5C; 00045 const XMLCh chBang = 0x21; 00046 const XMLCh chCaret = 0x5E; 00047 const XMLCh chCloseAngle = 0x3E; 00048 const XMLCh chCloseCurly = 0x7D; 00049 const XMLCh chCloseParen = 0x29; 00050 const XMLCh chCloseSquare = 0x5D; 00051 const XMLCh chColon = 0x3A; 00052 const XMLCh chComma = 0x2C; 00053 const XMLCh chDash = 0x2D; 00054 const XMLCh chDollarSign = 0x24; 00055 const XMLCh chDoubleQuote = 0x22; 00056 const XMLCh chEqual = 0x3D; 00057 const XMLCh chForwardSlash = 0x2F; 00058 const XMLCh chGrave = 0x60; 00059 const XMLCh chNEL = 0x85; 00060 const XMLCh chOpenAngle = 0x3C; 00061 const XMLCh chOpenCurly = 0x7B; 00062 const XMLCh chOpenParen = 0x28; 00063 const XMLCh chOpenSquare = 0x5B; 00064 const XMLCh chPercent = 0x25; 00065 const XMLCh chPeriod = 0x2E; 00066 const XMLCh chPipe = 0x7C; 00067 const XMLCh chPlus = 0x2B; 00068 const XMLCh chPound = 0x23; 00069 const XMLCh chQuestion = 0x3F; 00070 const XMLCh chSingleQuote = 0x27; 00071 const XMLCh chSpace = 0x20; 00072 const XMLCh chSemiColon = 0x3B; 00073 const XMLCh chTilde = 0x7E; 00074 const XMLCh chUnderscore = 0x5F; 00075 00076 const XMLCh chSwappedUnicodeMarker = XMLCh(0xFFFE); 00077 const XMLCh chUnicodeMarker = XMLCh(0xFEFF); 00078 00079 const XMLCh chDigit_0 = 0x30; 00080 const XMLCh chDigit_1 = 0x31; 00081 const XMLCh chDigit_2 = 0x32; 00082 const XMLCh chDigit_3 = 0x33; 00083 const XMLCh chDigit_4 = 0x34; 00084 const XMLCh chDigit_5 = 0x35; 00085 const XMLCh chDigit_6 = 0x36; 00086 const XMLCh chDigit_7 = 0x37; 00087 const XMLCh chDigit_8 = 0x38; 00088 const XMLCh chDigit_9 = 0x39; 00089 00090 const XMLCh chLatin_A = 0x41; 00091 const XMLCh chLatin_B = 0x42; 00092 const XMLCh chLatin_C = 0x43; 00093 const XMLCh chLatin_D = 0x44; 00094 const XMLCh chLatin_E = 0x45; 00095 const XMLCh chLatin_F = 0x46; 00096 const XMLCh chLatin_G = 0x47; 00097 const XMLCh chLatin_H = 0x48; 00098 const XMLCh chLatin_I = 0x49; 00099 const XMLCh chLatin_J = 0x4A; 00100 const XMLCh chLatin_K = 0x4B; 00101 const XMLCh chLatin_L = 0x4C; 00102 const XMLCh chLatin_M = 0x4D; 00103 const XMLCh chLatin_N = 0x4E; 00104 const XMLCh chLatin_O = 0x4F; 00105 const XMLCh chLatin_P = 0x50; 00106 const XMLCh chLatin_Q = 0x51; 00107 const XMLCh chLatin_R = 0x52; 00108 const XMLCh chLatin_S = 0x53; 00109 const XMLCh chLatin_T = 0x54; 00110 const XMLCh chLatin_U = 0x55; 00111 const XMLCh chLatin_V = 0x56; 00112 const XMLCh chLatin_W = 0x57; 00113 const XMLCh chLatin_X = 0x58; 00114 const XMLCh chLatin_Y = 0x59; 00115 const XMLCh chLatin_Z = 0x5A; 00116 00117 const XMLCh chLatin_a = 0x61; 00118 const XMLCh chLatin_b = 0x62; 00119 const XMLCh chLatin_c = 0x63; 00120 const XMLCh chLatin_d = 0x64; 00121 const XMLCh chLatin_e = 0x65; 00122 const XMLCh chLatin_f = 0x66; 00123 const XMLCh chLatin_g = 0x67; 00124 const XMLCh chLatin_h = 0x68; 00125 const XMLCh chLatin_i = 0x69; 00126 const XMLCh chLatin_j = 0x6A; 00127 const XMLCh chLatin_k = 0x6B; 00128 const XMLCh chLatin_l = 0x6C; 00129 const XMLCh chLatin_m = 0x6D; 00130 const XMLCh chLatin_n = 0x6E; 00131 const XMLCh chLatin_o = 0x6F; 00132 const XMLCh chLatin_p = 0x70; 00133 const XMLCh chLatin_q = 0x71; 00134 const XMLCh chLatin_r = 0x72; 00135 const XMLCh chLatin_s = 0x73; 00136 const XMLCh chLatin_t = 0x74; 00137 const XMLCh chLatin_u = 0x75; 00138 const XMLCh chLatin_v = 0x76; 00139 const XMLCh chLatin_w = 0x77; 00140 const XMLCh chLatin_x = 0x78; 00141 const XMLCh chLatin_y = 0x79; 00142 const XMLCh chLatin_z = 0x7A; 00143 00144 const XMLCh chYenSign = 0xA5; 00145 const XMLCh chWonSign = 0x20A9; 00146 00147 const XMLCh chLineSeparator = 0x2028; 00148 const XMLCh chParagraphSeparator = 0x2029; 00149 00150 XERCES_CPP_NAMESPACE_END 00151 00152 #endif