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

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

?? mixedcontentmodel.cpp

?? IBM的解析xml的工具Xerces的源代碼
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/* * Copyright 1999-2001,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. *//* * $Log: MixedContentModel.cpp,v $ * Revision 1.12  2004/09/08 13:56:51  peiyongz * Apache License Version 2.0 * * Revision 1.11  2004/08/11 21:08:31  knoaman * Fixing Xerces-C crash when creating a MixedContentModel. Patch by  Andrew Fang. * * Revision 1.10  2004/01/29 11:51:21  cargilld * Code cleanup changes to get rid of various compiler diagnostic messages. * * Revision 1.9  2003/12/17 00:18:38  cargilld * Update to memory management so that the static memory manager (one used to call Initialize) is only for static data. * * Revision 1.8  2003/11/20 18:12:20  knoaman * Use a bitwise operation to check the node type. * * Revision 1.7  2003/11/07 17:08:11  knoaman * For PSVI support, distinguish wildcard elements with namespace lists. * * Revision 1.6  2003/05/18 14:02:06  knoaman * Memory manager implementation: pass per instance manager. * * Revision 1.5  2003/05/16 21:43:20  knoaman * Memory manager implementation: Modify constructors to pass in the memory manager. * * Revision 1.4  2003/05/15 18:48:27  knoaman * Partial implementation of the configurable memory manager. * * Revision 1.3  2002/11/04 14:54:58  tng * C++ Namespace Support. * * Revision 1.2  2002/09/24 19:48:39  tng * Performance: use XMLString::equals instead of XMLString::compareString * * Revision 1.1.1.1  2002/02/01 22:22:39  peiyongz * sane_include * * Revision 1.13  2001/08/24 12:48:48  tng * Schema: AllContentModel * * Revision 1.12  2001/08/21 16:06:11  tng * Schema: Unique Particle Attribution Constraint Checking. * * Revision 1.11  2001/07/09 15:22:37  knoaman * complete <any> declaration. * * Revision 1.10  2001/06/12 22:13:33  peiyongz * validateContentSpecial() : apply SubstitutionGroupComparator.isEquivalentTo() * * Revision 1.9  2001/05/11 13:27:19  tng * Copyright update. * * Revision 1.8  2001/05/03 21:02:30  tng * Schema: Add SubstitutionGroupComparator and update exception messages.  By Pei Yong Zhang. * * Revision 1.7  2001/04/19 18:17:32  tng * Schema: SchemaValidator update, and use QName in Content Model * * Revision 1.6  2001/03/21 21:56:28  tng * Schema: Add Schema Grammar, Schema Validator, and split the DTDValidator into DTDValidator, DTDScanner, and DTDGrammar. * * Revision 1.5  2001/03/21 19:29:57  tng * Schema: Content Model Updates, by Pei Yong Zhang. * * Revision 1.4  2001/02/27 18:32:32  tng * Schema: Use XMLElementDecl instead of DTDElementDecl in Content Model. * * Revision 1.3  2001/02/27 14:48:54  tng * Schema: Add CMAny and ContentLeafNameTypeVector, by Pei Yong Zhang * * Revision 1.2  2001/02/16 14:58:57  tng * Schema: Update Makefile, configure files, project files, and include path in * certain cpp files because of the move of the common Content Model files.  By Pei Yong Zhang. * * Revision 1.1  2001/02/16 14:17:29  tng * Schema: Move the common Content Model files that are shared by DTD * and schema from 'DTD' folder to 'common' folder.  By Pei Yong Zhang. * * Revision 1.5  2000/05/15 22:31:32  andyh * Replace #include<memory.h> with <string.h> everywhere. * * Revision 1.4  2000/03/18 00:00:05  roddey * Initial updates for two way transcoding support * * Revision 1.3  2000/03/02 19:55:39  roddey * This checkin includes many changes done while waiting for the * 1.1.0 code to be finished. I can't list them all here, but a list is * available elsewhere. * * Revision 1.2  2000/02/09 21:42:39  abagchi * Copyright swatswat * * Revision 1.1.1.1  1999/11/09 01:03:43  twl * Initial checkin * * Revision 1.3  1999/11/08 20:45:43  rahul * Swat for adding in Product name and CVS comment log variable. * */// ---------------------------------------------------------------------------//  Includes// ---------------------------------------------------------------------------#include <string.h>#include <xercesc/util/RuntimeException.hpp>#include <xercesc/framework/XMLElementDecl.hpp>#include <xercesc/validators/common/ContentSpecNode.hpp>#include <xercesc/validators/common/MixedContentModel.hpp>#include <xercesc/validators/common/CMStateSet.hpp>#include <xercesc/validators/common/Grammar.hpp>#include <xercesc/validators/schema/SubstitutionGroupComparator.hpp>XERCES_CPP_NAMESPACE_BEGIN// ---------------------------------------------------------------------------//  MixedContentModel: Constructors and Destructor// ---------------------------------------------------------------------------MixedContentModel::MixedContentModel(const bool             dtd                                   , ContentSpecNode* const parentContentSpec                                   , const bool             ordered                                   , MemoryManager* const   manager) :   fCount(0) , fChildren(0) , fChildTypes(0) , fOrdered(ordered) , fDTD(dtd) , fMemoryManager(manager){    //    //  Create a vector of unsigned ints that will be filled in with the    //  ids of the child nodes. It will be expanded as needed but we give    //  it an initial capacity of 64 which should be more than enough for    //  99% of the scenarios.    //    ValueVectorOf<QName*> children(64, fMemoryManager);    ValueVectorOf<ContentSpecNode::NodeTypes> childTypes(64, fMemoryManager);    //    //  Get the parent element's content spec. This is the head of the tree    //  of nodes that describes the content model. We will iterate this    //  tree.    //    ContentSpecNode* curNode = parentContentSpec;    if (!curNode)        ThrowXMLwithMemMgr(RuntimeException, XMLExcepts::CM_NoParentCSN, fMemoryManager);    // And now call the private recursive method that iterates the tree    buildChildList(curNode, children, childTypes);    //    //  And now we know how many elements we need in our member list. So    //  fill them in.    //    fCount = children.size();    fChildren = (QName**) fMemoryManager->allocate(fCount * sizeof(QName*)); //new QName*[fCount];    fChildTypes = (ContentSpecNode::NodeTypes*) fMemoryManager->allocate    (        fCount * sizeof(ContentSpecNode::NodeTypes)    ); //new ContentSpecNode::NodeTypes[fCount];    for (unsigned int index = 0; index < fCount; index++) {        fChildren[index] = new (fMemoryManager) QName(*children.elementAt(index));        fChildTypes[index] = childTypes.elementAt(index);    }}MixedContentModel::~MixedContentModel(){    for (unsigned int index = 0; index < fCount; index++) {        delete fChildren[index];    }    fMemoryManager->deallocate(fChildren); //delete [] fChildren;    fMemoryManager->deallocate(fChildTypes); //delete [] fChildTypes;}// ---------------------------------------------------------------------------//  MixedContentModel: Getter methods// ---------------------------------------------------------------------------bool MixedContentModel::hasDups() const{    // Can't have dups if only one child    if (fCount == 1)        return false;    for (unsigned int index = 0; index < fCount; index++)    {        const QName* curVal = fChildren[index];        for (unsigned int iIndex = 0; iIndex < fCount; iIndex++)        {            if (iIndex == index)                continue;            if (fDTD) {                if (XMLString::equals(curVal->getRawName(), fChildren[iIndex]->getRawName())) {                    return true;                }            }            else {                if ((curVal->getURI() == fChildren[iIndex]->getURI()) &&                    (XMLString::equals(curVal->getLocalPart(), fChildren[iIndex]->getLocalPart()))) {                    return true;                }            }        }    }    return false;}// ---------------------------------------------------------------------------//  MixedContentModel: Implementation of the ContentModel virtual interface// ---------------------------------------------------------------------------////Under the XML Schema mixed model,//the order and number of child elements appearing in an instance//must agree with//the order and number of child elements specified in the model.//intMixedContentModel::validateContent( QName** const         children                                  , const unsigned int    childCount                                  , const unsigned int) const{    // must match order    if (fOrdered) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产高清一区二区三区| 91色乱码一区二区三区| 久久精品国产亚洲5555| 国产电影精品久久禁18| 欧美这里有精品| xf在线a精品一区二区视频网站| 中文字幕一区日韩精品欧美| 首页亚洲欧美制服丝腿| 成人永久免费视频| 欧美日韩国产成人在线91| 91黄色免费看| 国产日韩v精品一区二区| 洋洋成人永久网站入口| 久99久精品视频免费观看| 97精品久久久午夜一区二区三区| 欧美电影影音先锋| 国产色91在线| 日本美女视频一区二区| 97久久超碰国产精品| 日韩欧美中文字幕精品| 一区二区三区四区精品在线视频| 激情图区综合网| 在线视频你懂得一区| www成人在线观看| 一区二区三区四区不卡视频| 国产91精品久久久久久久网曝门 | 国产一区二区成人久久免费影院| a级精品国产片在线观看| 2021中文字幕一区亚洲| 亚洲成人综合网站| 成人h动漫精品| 久久这里只有精品6| 成人欧美一区二区三区| 国产精品77777竹菊影视小说| 欧美精品日日鲁夜夜添| 亚洲无人区一区| av亚洲精华国产精华| 日韩欧美一区二区视频| 亚洲国产成人av好男人在线观看| 成人免费黄色大片| 国产日韩欧美精品在线| 国产在线播放一区三区四| 日韩一区二区麻豆国产| 一片黄亚洲嫩模| 色综合天天性综合| 国产精品伦一区二区三级视频| 韩日av一区二区| 日韩久久久久久| 激情综合五月天| 久久婷婷国产综合精品青草| 国产麻豆精品一区二区| 26uuu成人网一区二区三区| 美女脱光内衣内裤视频久久影院| 欧美美女视频在线观看| 亚洲精品网站在线观看| 色婷婷久久久久swag精品| 成人欧美一区二区三区在线播放| www.亚洲色图.com| 中文字幕人成不卡一区| 色先锋aa成人| 午夜精品久久久久久久久久久| 欧美三级电影一区| 美女视频网站黄色亚洲| 精品久久久久99| 免费观看30秒视频久久| 国产午夜精品一区二区三区四区| 美腿丝袜在线亚洲一区| 久久久精品免费网站| 成人精品在线视频观看| 日本一区二区三区免费乱视频| 国产91丝袜在线播放| 一区二区三区小说| 制服丝袜在线91| 国产精品一区二区视频| 亚洲素人一区二区| 色噜噜久久综合| 麻豆专区一区二区三区四区五区| 精品国产一区二区三区忘忧草| 成熟亚洲日本毛茸茸凸凹| 亚洲精品高清在线观看| 日韩一级片在线观看| 国产黑丝在线一区二区三区| 伊人一区二区三区| 4438x亚洲最大成人网| 免费成人深夜小野草| 国产精品午夜久久| 欧美视频一二三区| 国产精品一区二区三区网站| 日韩美女久久久| 欧美绝品在线观看成人午夜影视| 国产一区二区三区香蕉 | 欧美中文字幕一区二区三区亚洲| 日本成人在线网站| 欧美精品一区二区三区在线播放| 91欧美一区二区| 国产自产v一区二区三区c| 亚洲激情av在线| 久久欧美一区二区| 欧美日韩精品一二三区| 久久精品国产第一区二区三区| 亚洲欧洲中文日韩久久av乱码| 欧美一区二区三区四区久久| 91丨porny丨最新| 蜜臀a∨国产成人精品| 一区二区三区毛片| 国产亚洲va综合人人澡精品 | 国产女主播视频一区二区| 欧美日韩和欧美的一区二区| 国产ts人妖一区二区| 亚洲免费观看视频| 亚洲国产精品国自产拍av| 欧美r级电影在线观看| 欧美日韩成人综合天天影院 | 欧美欧美欧美欧美| 成a人片国产精品| 91丨九色丨蝌蚪富婆spa| av福利精品导航| 91美女片黄在线| 色综合久久天天| 欧美亚洲综合久久| 制服.丝袜.亚洲.中文.综合 | 欧美中文字幕一区二区三区| 91蝌蚪porny| 欧洲中文字幕精品| 欧美日韩国产综合一区二区 | 欧美国产激情二区三区| 国产精品乱码久久久久久 | 国产蜜臀av在线一区二区三区| 国产午夜精品在线观看| 中文字幕制服丝袜一区二区三区 | 日韩精品一二三四| 狠狠色伊人亚洲综合成人| 国产精品18久久久久久久久| 99久久精品国产麻豆演员表| 色婷婷av一区二区| 欧美日韩高清一区二区三区| 精品人伦一区二区色婷婷| 国产亚洲精品aa| 亚洲一区二区在线免费看| 日本美女一区二区| 国产成人三级在线观看| 91亚洲资源网| 日韩一区二区免费在线电影| 欧美激情一区在线| 亚洲小少妇裸体bbw| 韩国欧美国产一区| 91小视频在线| 日韩午夜三级在线| 日韩一区在线免费观看| 日日摸夜夜添夜夜添国产精品| 国产资源精品在线观看| 一本到一区二区三区| 欧美哺乳videos| 亚洲人精品午夜| 国模少妇一区二区三区| 在线免费观看视频一区| 久久人人爽人人爽| 亚洲第一久久影院| 国产激情一区二区三区四区| 欧美羞羞免费网站| 中文字幕不卡在线播放| 免费日本视频一区| 一本色道**综合亚洲精品蜜桃冫| 精品日韩欧美一区二区| 亚洲自拍偷拍av| 国产91丝袜在线观看| 91精品国产综合久久福利| 自拍视频在线观看一区二区| 韩国精品在线观看| 在线播放亚洲一区| 亚洲激情男女视频| 成人av资源在线| 久久免费视频一区| 美女视频一区二区| 欧美精品777| 亚洲午夜视频在线| 一本久道中文字幕精品亚洲嫩| 中文一区二区在线观看| 国产一二精品视频| 日韩视频123| 日本特黄久久久高潮| 日本高清不卡视频| 国产精品久久久久婷婷| 国产精品一区二区三区网站| 欧美一区二区视频网站| 婷婷中文字幕综合| 欧美午夜影院一区| 亚洲永久免费视频| 色综合久久久久综合体桃花网| 国产精品区一区二区三| 国产成人综合亚洲91猫咪| www欧美成人18+| 国产精品伊人色| 国产欧美一区二区精品久导航 | 午夜精品福利久久久| 欧美唯美清纯偷拍| 亚洲综合在线电影| 欧美性猛交xxxx黑人交| 亚洲福中文字幕伊人影院| 欧美日韩一二区|