亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? domconfigurationimpl.cpp

?? IBM的解析xml的工具Xerces的源代碼
?? CPP
字號:
/* * Copyright 2003,2004 The Apache Software Foundation. *  * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *  *      http://www.apache.org/licenses/LICENSE-2.0 *  * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */#include "DOMConfigurationImpl.hpp"#include <xercesc/dom/DOMErrorHandler.hpp>#include <xercesc/util/XMLString.hpp>#include <xercesc/util/XMLUniDefs.hpp>#include <xercesc/dom/DOMException.hpp>#include <xercesc/util/Janitor.hpp>XERCES_CPP_NAMESPACE_BEGINconst bool DOMConfigurationImpl::fFalse = false;const bool DOMConfigurationImpl::fTrue = true;/* canonical-form */const XMLCh DOMConfigurationImpl::fgCANONICAL_FORM[] = { chLatin_c, chLatin_a, chLatin_n, chLatin_o, chLatin_n, chLatin_i, chLatin_c, chLatin_a, chLatin_l, chDash, chLatin_f, chLatin_o, chLatin_r, chLatin_m, chNull };/* cdata-sections */const XMLCh DOMConfigurationImpl::fgCDATA_SECTIONS[] = { chLatin_c, chLatin_d, chLatin_a, chLatin_t, chLatin_a, chDash, chLatin_s, chLatin_e, chLatin_c, chLatin_t, chLatin_i, chLatin_o, chLatin_n, chLatin_s, chNull };/* comments */const XMLCh DOMConfigurationImpl::fgCOMMENTS[] = { chLatin_c, chLatin_o, chLatin_m, chLatin_m, chLatin_e, chLatin_n, chLatin_t, chLatin_s, chNull };/* datatype-normalization */const XMLCh DOMConfigurationImpl::fgDATATYPE_NORMALIZATION[] = { chLatin_d, chLatin_a, chLatin_t, chLatin_a, chLatin_t, chLatin_y, chLatin_p, chLatin_e, chDash, chLatin_n, chLatin_o, chLatin_r, chLatin_m, chLatin_a, chLatin_l, chLatin_i, chLatin_z, chLatin_a, chLatin_t, chLatin_i, chLatin_o, chLatin_n, chNull };/* discard-default-content */const XMLCh DOMConfigurationImpl::fgDISCARD_DEFAULT_CONTENT[] = { chLatin_d, chLatin_i, chLatin_s, chLatin_c, chLatin_a, chLatin_r, chLatin_d, chDash, chLatin_d, chLatin_e, chLatin_f, chLatin_a, chLatin_u, chLatin_l, chLatin_t, chDash, chLatin_c, chLatin_o, chLatin_n, chLatin_t, chLatin_e, chLatin_n, chLatin_t, chNull };/* entities */const XMLCh DOMConfigurationImpl::fgENTITIES[] = { chLatin_e, chLatin_n, chLatin_t, chLatin_i, chLatin_t, chLatin_i, chLatin_e, chLatin_s, chNull };/* infoset */const XMLCh DOMConfigurationImpl::fgINFOSET[] = { chLatin_i, chLatin_n, chLatin_f, chLatin_o, chLatin_s, chLatin_e, chLatin_t, chNull };/* namespaces */const XMLCh DOMConfigurationImpl::fgNAMESPACES[] = { chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chLatin_p, chLatin_a, chLatin_c, chLatin_e, chLatin_s, chNull };/* namespace-declarations */const XMLCh DOMConfigurationImpl::fgNAMESPACE_DECLARATIONS[] = { chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chLatin_p, chLatin_a, chLatin_c, chLatin_e, chDash, chLatin_d, chLatin_e, chLatin_c, chLatin_l, chLatin_a, chLatin_r, chLatin_a, chLatin_t, chLatin_i, chLatin_o, chLatin_n, chLatin_s, chNull };/* normalize-characters */const XMLCh DOMConfigurationImpl::fgNORMALIZE_CHARACTERS[] = { chLatin_n, chLatin_o, chLatin_r, chLatin_m, chLatin_a, chLatin_l, chLatin_i, chLatin_z, chLatin_e, chDash, chLatin_c, chLatin_h, chLatin_a, chLatin_r, chLatin_a, chLatin_c, chLatin_t, chLatin_e, chLatin_r, chLatin_s, chNull };/* split-cdata-sections */const XMLCh DOMConfigurationImpl::fgSPLIT_CDATA_SECTIONS[] = { chLatin_s, chLatin_p, chLatin_l, chLatin_i, chLatin_t, chDash, chLatin_c, chLatin_d, chLatin_a, chLatin_t, chLatin_a, chDash, chLatin_s, chLatin_e, chLatin_c, chLatin_t, chLatin_i, chLatin_o, chLatin_n, chLatin_s, chNull };/* validate */const XMLCh DOMConfigurationImpl::fgVALIDATE[] = { chLatin_v, chLatin_a, chLatin_l, chLatin_i, chLatin_d, chLatin_a, chLatin_t, chLatin_e, chNull };/* validate-if-schema */const XMLCh DOMConfigurationImpl::fgVALIDATE_IF_SCHEMA[] = { chLatin_v, chLatin_a, chLatin_l, chLatin_i, chLatin_d, chLatin_a, chLatin_t, chLatin_e, chDash, chLatin_i, chLatin_f, chDash, chLatin_s, chLatin_c, chLatin_h, chLatin_e, chLatin_m, chLatin_a, chNull };/* whitespace-in-element-content */const XMLCh DOMConfigurationImpl::fgWHITESPACE_IN_ELEMENT_CONTENT[] = { chLatin_w, chLatin_h, chLatin_i, chLatin_t, chLatin_e, chLatin_s, chLatin_p, chLatin_a, chLatin_c, chLatin_e, chDash, chLatin_i, chLatin_n, chDash, chLatin_e, chLatin_l, chLatin_e, chLatin_m, chLatin_e, chLatin_n, chLatin_t, chDash, chLatin_c, chLatin_o, chLatin_n, chLatin_t, chLatin_e, chLatin_n, chLatin_t, chNull };/* error-handler */const XMLCh DOMConfigurationImpl::fgERROR_HANDLER[] = { chLatin_e, chLatin_r, chLatin_r, chLatin_o, chLatin_r, chDash, chLatin_h, chLatin_a, chLatin_n, chLatin_d, chLatin_l, chLatin_e, chLatin_r, chNull };/* schema-type */const XMLCh DOMConfigurationImpl::fgSCHEMA_TYPE[] = { chLatin_s, chLatin_c, chLatin_h, chLatin_e, chLatin_m, chLatin_a, chDash, chLatin_t, chLatin_y, chLatin_p, chLatin_e, chNull };/* schema-location */const XMLCh DOMConfigurationImpl::fgSCHEMA_LOCATION[] = { chLatin_s, chLatin_c, chLatin_h, chLatin_e, chLatin_m, chLatin_a, chDash, chLatin_l, chLatin_o, chLatin_c, chLatin_a, chLatin_t, chLatin_i, chLatin_o, chLatin_n, chNull };const unsigned short DOMConfigurationImpl::fDEFAULT_VALUES = 0x2596;DOMConfigurationImpl::DOMConfigurationImpl(MemoryManager* const manager): featureValues(fDEFAULT_VALUES),                                              fErrorHandler(0), fSchemaType(0), fSchemaLocation(0), fMemoryManager(manager) {}DOMConfigurationImpl::~DOMConfigurationImpl() {}                                        void DOMConfigurationImpl::setParameter(const XMLCh* name, const void* value) {    XMLCh* lowerCaseName = XMLString::replicate(name, fMemoryManager);    ArrayJanitor<XMLCh> janName(lowerCaseName, fMemoryManager);    XMLString::lowerCase(lowerCaseName);    if(!canSetParameter(lowerCaseName, value)) {        throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0, fMemoryManager);    }    bool isBooleanParameter = true;    DOMConfigurationFeature whichFlag;    try {        whichFlag = getFeatureFlag(lowerCaseName);    } catch(DOMException e) {        // must not be a boolean parameter        isBooleanParameter = false;    }    if(isBooleanParameter) {        if(*((bool*)value)) {            featureValues |= whichFlag;        } else {            featureValues &= ~whichFlag;        }    } else {        if(XMLString::equals(lowerCaseName, fgERROR_HANDLER)) {            fErrorHandler = (DOMErrorHandler*)value;        } else if (XMLString::equals(lowerCaseName, fgSCHEMA_TYPE)) {            fSchemaType = (XMLCh*)value;        } else if (XMLString::equals(lowerCaseName, fgSCHEMA_LOCATION)) {            fSchemaLocation = (XMLCh*)value;        } else {  // canSetParameter above should take care of this case            throw DOMException(DOMException::NOT_FOUND_ERR, 0, fMemoryManager);        }    }}// --------------------------------------// Getter Methods// --------------------------------------const void* DOMConfigurationImpl::getParameter(const XMLCh* name) const {    XMLCh* lowerCaseName = XMLString::replicate(name, fMemoryManager);    ArrayJanitor<XMLCh> janName(lowerCaseName, fMemoryManager);    XMLString::lowerCase(lowerCaseName);    bool isBooleanParameter = true;    DOMConfigurationFeature whichFlag;    try {        whichFlag = getFeatureFlag(lowerCaseName);    } catch (DOMException e) {        // must not be a boolean parameter        isBooleanParameter = false;    }    if(isBooleanParameter){        if(featureValues & whichFlag) {            return &fTrue;        } else {            return &fFalse;        }    } else {        if(XMLString::equals(lowerCaseName, fgERROR_HANDLER)) {            return fErrorHandler;        } else if (XMLString::equals(lowerCaseName, fgSCHEMA_TYPE)) {            return fSchemaType;        } else if (XMLString::equals(lowerCaseName, fgSCHEMA_LOCATION)) {            return fSchemaLocation;        } else {            throw DOMException(DOMException::NOT_FOUND_ERR, 0, fMemoryManager);        }    }}// -----------------------------------------// Query Methods// -----------------------------------------bool DOMConfigurationImpl::canSetParameter(const XMLCh* name, const void* value) const {    /**     * canSetParameter(name, value) returns false in two conditions:     *  1) if a [required] feature has no supporting code, then return false in      *     both the true and false outcomes (This is in order to be either fully      *     spec compliant, or not at all)     *  2) if an [optional] feature has no supporting code, then return false     **/         // if value is null, return true    if(value == 0) return true;    XMLCh* lowerCaseName = XMLString::replicate(name, fMemoryManager);    ArrayJanitor<XMLCh> janName(lowerCaseName, fMemoryManager);        XMLString::lowerCase(lowerCaseName);        bool isBooleanParameter = true;    bool booleanValue = false;    DOMConfigurationFeature whichFlag;    try {        whichFlag = getFeatureFlag(lowerCaseName);        booleanValue = *((bool*)value);    } catch (DOMException e) {        // must not be a boolean parameter        isBooleanParameter = false;    }        if(isBooleanParameter) {        switch (whichFlag) {            case FEATURE_CANONICAL_FORM:                 if(booleanValue) return false;      // optional //                else             return true;       // required //             case FEATURE_CDATA_SECTIONS:                 return true;            case FEATURE_COMMENTS:                  return true;            case FEATURE_DATATYPE_NORMALIZATION:                  if(booleanValue) return false;       // required //                else             return true;        // required //            case FEATURE_DISCARD_DEFAULT_CONTENT:                  if(booleanValue) return false;       // required //                else             return true;        // required //            case FEATURE_ENTITIES:                  if(booleanValue) return true;       // required //                else             return true;       // required //            case FEATURE_INFOSET:                  if(booleanValue) return false;       // required //                else             return true;       // no effect//            case FEATURE_NAMESPACES:                  return true;                   case FEATURE_NAMESPACE_DECLARATIONS:                  if(booleanValue) return true;      // optional //                else             return false;       // required //            case FEATURE_NORMALIZE_CHARACTERS:                  if(booleanValue) return false;      // optional //                else             return true;       // required //            case FEATURE_SPLIT_CDATA_SECTIONS:                  //we dont report an error in the false case so we cant claim we do it                if(booleanValue) return false;       // required //                else             return false;       // required //            case FEATURE_VALIDATE:                  if(booleanValue) return false;      // optional //                else             return true;       // required //            case FEATURE_VALIDATE_IF_SCHEMA:                  if(booleanValue) return false;      // optional //                else             return true;       // required //                          case FEATURE_WHITESPACE_IN_ELEMENT_CONTENT:                  if(booleanValue) return true;       // required //                else             return false;      // optional //            default: return false; // should never be here        }    } else {        if(XMLString::equals(lowerCaseName, fgERROR_HANDLER)) {            return true;                               // required //        } else if (XMLString::equals(lowerCaseName, fgSCHEMA_TYPE)) {            return false;                            // optional //        } else if (XMLString::equals(lowerCaseName, fgSCHEMA_LOCATION)) {            return false;                            // optional //        }     }    return false;}// -------------------------------------------// Impl methods// -------------------------------------------DOMConfigurationImpl::DOMConfigurationFeature DOMConfigurationImpl::getFeatureFlag(const XMLCh* name) const {    XMLCh* lowerCaseName = XMLString::replicate(name, fMemoryManager);    ArrayJanitor<XMLCh> janName(lowerCaseName, fMemoryManager);        XMLString::lowerCase(lowerCaseName);      if(XMLString::equals(lowerCaseName, fgCANONICAL_FORM)) {        return FEATURE_CANONICAL_FORM;    } else if (XMLString::equals(lowerCaseName, fgCDATA_SECTIONS )) {        return FEATURE_CDATA_SECTIONS;    } else if (XMLString::equals(lowerCaseName, fgCOMMENTS)) {        return FEATURE_COMMENTS;    } else if (XMLString::equals(lowerCaseName, fgDATATYPE_NORMALIZATION))  {        return FEATURE_DATATYPE_NORMALIZATION;    } else if (XMLString::equals(lowerCaseName, fgDISCARD_DEFAULT_CONTENT)) {        return FEATURE_DISCARD_DEFAULT_CONTENT;    } else if (XMLString::equals(lowerCaseName, fgENTITIES)) {        return FEATURE_ENTITIES;    } else if (XMLString::equals(lowerCaseName, fgINFOSET))  {        return FEATURE_INFOSET;    } else if (XMLString::equals(lowerCaseName, fgNAMESPACES)) {        return FEATURE_NAMESPACES;    } else if (XMLString::equals(lowerCaseName, fgNAMESPACE_DECLARATIONS)) {        return FEATURE_NAMESPACE_DECLARATIONS;    } else if (XMLString::equals(lowerCaseName, fgNORMALIZE_CHARACTERS)) {        return FEATURE_NORMALIZE_CHARACTERS;    } else if (XMLString::equals(lowerCaseName, fgSPLIT_CDATA_SECTIONS)) {        return FEATURE_SPLIT_CDATA_SECTIONS;    } else if (XMLString::equals(lowerCaseName, fgVALIDATE)) {        return FEATURE_VALIDATE;    } else if (XMLString::equals(lowerCaseName, fgVALIDATE_IF_SCHEMA)) {        return FEATURE_VALIDATE_IF_SCHEMA;    } else if (XMLString::equals(lowerCaseName, fgWHITESPACE_IN_ELEMENT_CONTENT)) {        return FEATURE_WHITESPACE_IN_ELEMENT_CONTENT;    } else {        throw DOMException(DOMException::NOT_FOUND_ERR, 0, fMemoryManager);    }        }DOMErrorHandler* DOMConfigurationImpl::getErrorHandler() const {    return fErrorHandler;}const XMLCh* DOMConfigurationImpl::getSchemaType() const {    return fSchemaType;}const XMLCh* DOMConfigurationImpl::getSchemaLocation() const {    return fSchemaLocation;}void DOMConfigurationImpl::setErrorHandler(DOMErrorHandler *erHandler) {    fErrorHandler = erHandler;}void DOMConfigurationImpl::setSchemaType(const XMLCh* st) {    fSchemaType = st;}void DOMConfigurationImpl::setSchemaLocation(const XMLCh* sl) {    fSchemaLocation = sl;}XERCES_CPP_NAMESPACE_END/** * End of file DOMConfigurationImpl.cpp */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜av一区二区| 日韩影视精彩在线| 午夜精品一区二区三区电影天堂 | 亚洲人成网站色在线观看| 夜夜精品视频一区二区| 韩国女主播一区二区三区| 成人美女在线观看| 欧美片网站yy| 国产精品成人免费精品自在线观看| 天天综合日日夜夜精品| 99热精品一区二区| 欧美精品一区二区三区蜜桃| 亚洲一区二区三区国产| 成人午夜电影网站| 精品国产乱码久久久久久图片| 一区二区高清视频在线观看| 国产成人啪午夜精品网站男同| 精品婷婷伊人一区三区三| 国产欧美一区二区三区网站| 婷婷久久综合九色综合伊人色| 99精品1区2区| 国产精品视频你懂的| 国模一区二区三区白浆| 欧美一级一区二区| 欧美精品乱码久久久久久按摩 | 亚洲激情五月婷婷| 不卡影院免费观看| 久久久久久久久久久久电影| 日本欧美肥老太交大片| 7777精品伊人久久久大香线蕉| 亚洲激情第一区| 91免费小视频| 亚洲欧美激情小说另类| 99久久精品99国产精品| 中文字幕av不卡| 大美女一区二区三区| 久久久久国产精品厨房| 国产在线日韩欧美| 国产欧美日韩不卡| 岛国精品在线观看| 国产精品国产三级国产专播品爱网| 国产一区二区三区四| 亚洲精品一区二区三区精华液 | 色综合天天性综合| 亚洲精品欧美二区三区中文字幕| 99国产精品久久久久| 中文字幕日韩一区| 色吧成人激情小说| 亚洲成人一区二区| 日韩一二三区视频| 国产乱码字幕精品高清av| 亚洲国产精品高清| 91香蕉视频污| 丝袜美腿亚洲色图| 日韩视频国产视频| 粉嫩一区二区三区在线看| 中文子幕无线码一区tr | 国产精品主播直播| 国产精品午夜春色av| 99久久er热在这里只有精品15| 亚洲三级电影全部在线观看高清| 在线观看免费一区| 久久国产剧场电影| 亚洲色图在线视频| 777a∨成人精品桃花网| 国产麻豆成人精品| 一区二区三区中文在线| 制服丝袜中文字幕亚洲| 粉嫩欧美一区二区三区高清影视 | 国产精品影视在线| 亚洲欧美电影院| 欧美一区二区三区爱爱| 国产v综合v亚洲欧| 亚洲二区视频在线| 337p粉嫩大胆色噜噜噜噜亚洲| 99免费精品视频| 视频一区视频二区中文| 欧美高清在线一区二区| 欧美精品一卡两卡| 高清国产一区二区| 日韩精品福利网| 国产免费观看久久| 91精品久久久久久久91蜜桃| 成人激情视频网站| 蜜桃久久av一区| 一区二区在线电影| 国产亚洲精品aa午夜观看| 欧美少妇性性性| 成人免费看的视频| 精品一区二区三区久久久| 亚洲激情中文1区| 国产清纯美女被跳蛋高潮一区二区久久w| 色综合天天综合给合国产| 国产一区二区三区最好精华液| 亚洲高清免费观看高清完整版在线观看| 久久久精品黄色| 欧美一级欧美三级| 欧美三级资源在线| 91免费国产在线| 国产aⅴ综合色| 久久aⅴ国产欧美74aaa| 视频在线在亚洲| 伊人一区二区三区| 亚洲精品老司机| 国产精品私人影院| 国产日韩欧美一区二区三区乱码| 日韩一区二区三区视频在线 | 欧美色偷偷大香| 色94色欧美sute亚洲线路一ni| 国产成人aaa| 国产精品一二一区| 精品一区二区国语对白| 男男gaygay亚洲| 视频精品一区二区| 五月天亚洲婷婷| 三级影片在线观看欧美日韩一区二区 | 亚洲视频香蕉人妖| 国产精品久久久久久久蜜臀 | 国产精品一区二区在线观看网站| 久久国内精品自在自线400部| 日韩精品亚洲专区| 日本在线播放一区二区三区| 亚洲一二三四在线观看| 亚洲一区视频在线观看视频| 一片黄亚洲嫩模| 亚洲一级片在线观看| 亚洲成a天堂v人片| 日日夜夜一区二区| 久久精品国产99国产| 精品一区二区免费视频| 国产999精品久久久久久绿帽| 国产成人精品影视| voyeur盗摄精品| 91久久精品一区二区二区| 欧美亚洲禁片免费| 3d成人h动漫网站入口| 欧美mv和日韩mv的网站| 久久综合久久久久88| 国产精品免费久久| 亚洲午夜免费电影| 日本不卡视频一二三区| 国产一区二区三区香蕉| 波多野结衣91| 精品视频一区二区三区免费| 日韩欧美在线网站| 久久久精品黄色| 一区二区三区影院| 秋霞午夜av一区二区三区| 国产成人久久精品77777最新版本| 91无套直看片红桃| 欧美一二三区在线观看| 欧美国产一区视频在线观看| 一区二区激情小说| 久久精品久久综合| 99久久综合99久久综合网站| 欧美精品一卡二卡| 国产精品免费av| 婷婷开心久久网| 波多野结衣中文字幕一区| 欧美日韩情趣电影| 国产欧美视频在线观看| 亚洲自拍偷拍av| 国产精品一级片在线观看| 欧美日韩国产高清一区二区三区| 久久久精品欧美丰满| 偷拍自拍另类欧美| 91在线码无精品| 欧美精品一区二区在线播放| 亚洲女厕所小便bbb| 激情丁香综合五月| 欧美日韩在线一区二区| 欧美激情综合在线| 美女爽到高潮91| 在线观看欧美黄色| 国产精品二三区| 国产一区二区精品在线观看| 欧美美女一区二区三区| 中文字幕一区二区三区av| 激情综合五月婷婷| 欧美剧情片在线观看| 亚洲三级电影全部在线观看高清| 国产精品一区久久久久| 日韩欧美一区在线| 香蕉影视欧美成人| 99精品国产91久久久久久| 久久久青草青青国产亚洲免观| 秋霞电影网一区二区| 欧美日韩一区二区在线视频| 最新久久zyz资源站| 国产盗摄精品一区二区三区在线| 51精品久久久久久久蜜臀| 亚洲成人动漫一区| 91国产精品成人| 1024国产精品| 成人app软件下载大全免费| 久久天堂av综合合色蜜桃网| 日韩和的一区二区| 91精品午夜视频| 日韩电影免费一区| 717成人午夜免费福利电影|