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

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

?? rangetest.cpp

?? IBM的解析xml的工具Xerces的源代碼
?? CPP
?? 第 1 頁 / 共 4 頁
字號:
/* * Copyright 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. *//** * $Id: RangeTest.cpp,v 1.15 2004/09/08 13:57:03 peiyongz Exp $ *//** This IRangeTest tests all of the cases delineated as examples *  in the DOM Level 2 Range specification, and a few others. *  <p>These do not by any means completely test the API and *  corner cases. */#include <stdio.h>#include <xercesc/dom/DOM.hpp>#include <xercesc/util/PlatformUtils.hpp>#include <xercesc/util/XMLException.hpp>#include <xercesc/util/XMLString.hpp>#include <xercesc/util/XMLUni.hpp>#include <xercesc/util/XMLUniDefs.hpp>#include <xercesc/dom/DOMRange.hpp>XERCES_CPP_NAMESPACE_USEbool errorOccurred = false;#define TASSERT(c) tassert((c), __FILE__, __LINE__)void tassert(bool c, const char *file, int line){    if (!c) {        errorOccurred = true;        printf("Failure.  Line %d,   file %s\n", line, file);    }};#define EXCEPTION_TEST(operation, expected_exception)               \{                                                                   \    try {                                                           \    operation;                                                      \    printf(" Error: no exception thrown at line %d\n", __LINE__);   \    errorOccurred = true;                                           \    }                                                               \    catch (DOMRangeException &e) {                                  \    if (e.code != expected_exception) {                             \        printf(" Wrong RangeException code: %d at line %d\n", e.code, __LINE__); \        errorOccurred = true;                                       \    }                                                               \    }                                                               \    catch (DOMException &e) {                                       \    if (e.code != expected_exception) {                             \        printf(" Wrong exception code: %d at line %d\n", e.code, __LINE__); \        errorOccurred = true;                                       \    }                                                               \    }                                                               \    catch (...)   {                                                 \        printf(" Wrong exception thrown at line %d\n", __LINE__);   \        errorOccurred = true;                                       \    }                                                               \}//Define a bunch of XMLCh* string for comparisonXMLCh xa[] = {chLatin_a, chNull};XMLCh xab[] = {chLatin_a, chLatin_b, chNull};XMLCh xabHello[] = {chLatin_a, chLatin_b, chLatin_H, chLatin_e, chLatin_l, chLatin_l, chLatin_o, chNull};XMLCh xabHellocd[] = {chLatin_a, chLatin_b, chLatin_H, chLatin_e, chLatin_l, chLatin_l, chLatin_o, chSpace, chLatin_c, chLatin_d, chNull};XMLCh xAnotherText[] = {chLatin_A, chLatin_n, chLatin_o, chLatin_t, chLatin_h, chLatin_e, chLatin_r,     chLatin_T, chLatin_e, chLatin_x, chLatin_t, chNull};XMLCh xb[] = {chLatin_b, chNull};XMLCh xBlahxyz[] = {chLatin_B, chLatin_l, chLatin_a, chLatin_h, chSpace,     chLatin_x, chLatin_y, chLatin_z, chNull};XMLCh xBody[] = {chLatin_B, chLatin_o, chLatin_d, chLatin_y, chNull};XMLCh xbody2[] = {chLatin_b, chLatin_o, chLatin_d, chLatin_y, chDigit_2, chNull};XMLCh xc[] = {chLatin_c, chNull};XMLCh xcool[] = {chLatin_c, chLatin_o, chLatin_o, chLatin_l, chNull};XMLCh xef[] = {chLatin_e, chLatin_f, chNull};XMLCh xElement1[] = {chLatin_E, chLatin_l, chLatin_e, chLatin_m, chLatin_e, chLatin_n, chLatin_t, chDigit_1, chNull};XMLCh xElement2[] = {chLatin_E, chLatin_l, chLatin_e, chLatin_m, chLatin_e, chLatin_n, chLatin_t, chDigit_2, chNull};XMLCh xElement3[] = {chLatin_E, chLatin_l, chLatin_e, chLatin_m, chLatin_e, chLatin_n, chLatin_t, chDigit_3, chNull};XMLCh xell[] = {chLatin_e, chLatin_l, chLatin_l, chNull};XMLCh xellocd[] = {chLatin_e, chLatin_l, chLatin_l, chLatin_o, chSpace, chLatin_c, chLatin_d, chNull};XMLCh xellocdef[] = {chLatin_e, chLatin_l, chLatin_l, chLatin_o, chSpace, chLatin_c, chLatin_d, chLatin_e, chLatin_f, chNull};XMLCh xeplacedTextInsertedTexttle[] = {chLatin_e, chLatin_p, chLatin_l, chLatin_a, chLatin_c, chLatin_e, chLatin_d,     chLatin_T, chLatin_e, chLatin_x, chLatin_t, chLatin_I, chLatin_n, chLatin_s, chLatin_e, chLatin_r, chLatin_t, chLatin_e, chLatin_d,     chLatin_T, chLatin_e, chLatin_x, chLatin_t, chLatin_t, chLatin_l, chLatin_e, chNull};XMLCh xex[] = {chLatin_e, chLatin_x, chNull};XMLCh xext1[] = {chLatin_e, chLatin_x, chLatin_t, chDigit_1, chNull};XMLCh xext3[] = {chLatin_e, chLatin_x, chLatin_t, chDigit_3, chNull};XMLCh xfoo[] = {chLatin_f, chLatin_o, chLatin_o, chNull};XMLCh xH1[] = {chLatin_H, chDigit_1, chNull};XMLCh xh2[] = {chLatin_h, chDigit_2, chNull};XMLCh xh3[] = {chLatin_h, chDigit_3, chNull};XMLCh xh4[] = {chLatin_h, chDigit_4, chNull};XMLCh xHellocd[] = {chLatin_H, chLatin_e, chLatin_l, chLatin_l, chLatin_o, chSpace, chLatin_c, chLatin_d, chNull};XMLCh xhead[] = {chLatin_h, chLatin_e, chLatin_a, chLatin_d, chNull};XMLCh xhead2[] = {chLatin_h, chLatin_e, chLatin_a, chLatin_d, chDigit_2, chNull};XMLCh xInsertedText[] = {chLatin_I, chLatin_n, chLatin_s, chLatin_e, chLatin_r, chLatin_t, chLatin_e, chLatin_d,     chLatin_T, chLatin_e, chLatin_x, chLatin_t, chNull};XMLCh xInsertedTexttle[] = {chLatin_I, chLatin_n, chLatin_s, chLatin_e, chLatin_r, chLatin_t, chLatin_e, chLatin_d,     chLatin_T, chLatin_e, chLatin_x, chLatin_t, chLatin_t, chLatin_l, chLatin_e, chNull};XMLCh xmoo[] = {chLatin_m, chLatin_o, chLatin_o, chNull};XMLCh xroot[] = {chLatin_r, chLatin_o, chLatin_o, chLatin_t, chNull};XMLCh xroot2[] = {chLatin_r, chLatin_o, chLatin_o, chLatin_t, chDigit_2, chNull};XMLCh xP[] = {chLatin_P, chNull};XMLCh xp1[] = {chLatin_p, chDigit_1, chNull};XMLCh xp2[] = {chLatin_p, chDigit_2, chNull};XMLCh xptext2[] = {chLatin_p, chLatin_t, chLatin_e, chLatin_x, chLatin_t, chDigit_2, chNull};XMLCh xReplacedText[] = {chLatin_R, chLatin_e, chLatin_p, chLatin_l, chLatin_a, chLatin_c, chLatin_e, chLatin_d,     chLatin_T, chLatin_e, chLatin_x, chLatin_t, chNull};XMLCh xSurroundNode1[] = {chLatin_S, chLatin_u, chLatin_r, chLatin_r, chLatin_o, chLatin_u, chLatin_n, chLatin_d,      chLatin_N, chLatin_o, chLatin_d, chLatin_e, chDigit_1, chNull};XMLCh xt[] = {chLatin_t, chNull};XMLCh xtl[] = {chLatin_t, chLatin_l, chNull};XMLCh xtext1[] = {chLatin_t, chLatin_e, chLatin_x, chLatin_t, chDigit_1, chNull};XMLCh xtext2[] = {chLatin_t, chLatin_e, chLatin_x, chLatin_t, chDigit_2, chNull};XMLCh xtext2ex[] = {chLatin_t, chLatin_e, chLatin_x, chLatin_t, chDigit_2, chLatin_e, chLatin_x, chNull};XMLCh xtext3[] = {chLatin_t, chLatin_e, chLatin_x, chLatin_t, chDigit_3, chNull};XMLCh xtext4[] = {chLatin_t, chLatin_e, chLatin_x, chLatin_t, chDigit_4, chNull};XMLCh xtext4ext3[] = {chLatin_t, chLatin_e, chLatin_x, chLatin_t, chDigit_4, chLatin_e, chLatin_x, chLatin_t, chDigit_3, chNull};XMLCh xttext4ext3[] = {chLatin_t, chLatin_t, chLatin_e, chLatin_x, chLatin_t, chDigit_4, chLatin_e, chLatin_x, chLatin_t, chDigit_3, chNull};XMLCh xtext5[] = {chLatin_t, chLatin_e, chLatin_x, chLatin_t, chDigit_5, chNull};XMLCh xtext6[] = {chLatin_t, chLatin_e, chLatin_x, chLatin_t, chDigit_6, chNull};XMLCh xTi[] = {chLatin_T, chLatin_i, chNull};XMLCh xTitle[] = {chLatin_T, chLatin_i, chLatin_t, chLatin_l, chLatin_e, chNull};XMLCh xtle[] = {chLatin_t, chLatin_l, chLatin_e, chNull};XMLCh xu[] = {chLatin_u, chNull};XMLCh xupbody[] = {chLatin_u, chLatin_p, chLatin_b, chLatin_o, chLatin_d, chLatin_y, chNull};XMLCh xupbody2[] = {chLatin_u, chLatin_p, chLatin_b, chLatin_o, chLatin_d, chLatin_y, chDigit_2, chNull};XMLCh xupp1[] = {chLatin_u, chLatin_p, chLatin_p, chDigit_1, chNull};XMLCh xuptext1[] = {chLatin_u, chLatin_p, chLatin_t, chLatin_e, chLatin_x, chLatin_t, chDigit_1, chNull};XMLCh xuptext2[] = {chLatin_u, chLatin_p, chLatin_t, chLatin_e, chLatin_x, chLatin_t, chDigit_2, chNull};int  main(){	try {		XMLPlatformUtils::Initialize();	}	catch (const XMLException& toCatch) {        char *pMessage = XMLString::transcode(toCatch.getMessage());        fprintf(stderr, "Error during XMLPlatformUtils::Initialize(). \n"                        "  Message is: %s\n", pMessage);        XMLString::release(&pMessage);        return -1;    }    /*    Range tests include testing of    createRange    setStart, setStartBefore. setStartAfter,    setEnd, setEndBefore. setEndAfter    getStartContainer, getStartOffset    getEndContainer, getEndOffset    getCommonAncestorContainer    selectNode    selectNodeContents    insertNode    deleteContents    collapse    getCollapsed    surroundContents    compareBoundaryPoints    cloneRange    cloneContents    extractContents    toString    detach    removeChild    */    {        XMLCh tempStr[100];        XMLString::transcode("Range",tempStr,99);        {            DOMImplementation* impl = DOMImplementationRegistry::getDOMImplementation(tempStr);            DOMDocument* doc = impl->createDocument();            //Creating a root element            DOMElement*     root = doc->createElement(xBody);            doc->appendChild(root);            //Creating the siblings of root            DOMElement*     E11 = doc->createElement(xH1);            root->appendChild(E11);            DOMElement*     E12 = doc->createElement(xP);            root->appendChild(E12);            //Attaching texts to siblings            DOMText*        textNode1 = doc->createTextNode(xTitle);            E11->appendChild(textNode1);            DOMText*        textNode11 = doc->createTextNode(xAnotherText);            E11->appendChild(textNode11);            DOMText*        textNode2 = doc->createTextNode(xBlahxyz);            E12->appendChild(textNode2);            DOMText*     E210 = doc->createTextNode(xInsertedText);            doc->release();        }        {            //DOM Tree and some usable node creation            DOMImplementation* impl = DOMImplementationRegistry::getDOMImplementation(tempStr);            DOMDocument* doc = impl->createDocument();            //Creating a root element            DOMElement*     root = doc->createElement(xBody);            doc->appendChild(root);            //Creating the siblings of root            DOMElement*     E11 = doc->createElement(xH1);            root->appendChild(E11);            DOMElement*     E12 = doc->createElement(xP);            root->appendChild(E12);            //Attaching texts to siblings

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色精品天天在线观看视频| 久久精品久久99精品久久| 丁香啪啪综合成人亚洲小说| 波多野结衣在线aⅴ中文字幕不卡| 欧美日韩精品久久久| 日韩精品一区二区三区四区| 国产精品欧美综合在线| 最新欧美精品一区二区三区| 三级欧美在线一区| 国产成人av自拍| 日韩欧美一级二级三级| 国产色爱av资源综合区| 欧美电影精品一区二区| 亚洲福中文字幕伊人影院| 国产一区二区三区免费在线观看 | 国产精品久久久久精k8| 午夜精品久久久久久久久 | 日本中文字幕一区二区有限公司| 蜜桃视频一区二区| 在线欧美小视频| 欧美激情中文字幕一区二区| 美女精品自拍一二三四| 色婷婷狠狠综合| 国产欧美精品一区| 美女视频第一区二区三区免费观看网站| 97精品视频在线观看自产线路二| 久久精品男人天堂av| 午夜伊人狠狠久久| 99re热这里只有精品视频| 26uuu国产电影一区二区| 久久国产精品露脸对白| 欧美日韩一级二级| 日韩精品一区二区三区老鸭窝| 蜜臀a∨国产成人精品| 在线观看一区日韩| 亚洲一区二区在线视频| 91在线视频免费观看| 国产精品久久久久久久久晋中 | 成人综合在线网站| 国产日韩精品视频一区| 另类中文字幕网| 国产高清精品网站| 国产亚洲欧美日韩日本| 国产一区二区在线免费观看| 国产亚洲综合色| 国产精品12区| 国产精品你懂的在线| 国产经典欧美精品| 国产精品免费视频观看| 丰满少妇久久久久久久| 久久奇米777| 99精品视频在线免费观看| 国产亚洲欧美在线| 色综合天天天天做夜夜夜夜做| 国产精品久久99| 国产69精品一区二区亚洲孕妇| 久久久久久9999| 成人午夜视频免费看| 一区二区三区精品视频在线| 色av综合在线| 久久www免费人成看片高清| 日韩精品一区二区三区中文不卡 | 蜜桃av一区二区在线观看| 精品久久久久久久人人人人传媒| 国产原创一区二区| 欧美一区二区不卡视频| 免费xxxx性欧美18vr| 久久午夜国产精品| 日本高清不卡视频| 天天色天天操综合| 欧美激情综合在线| 日本精品视频一区二区| 免费在线一区观看| 欧美韩国一区二区| 成人一二三区视频| 日韩电影在线一区二区三区| 久久综合色婷婷| 欧美三级中文字幕在线观看| 久久精品国产色蜜蜜麻豆| 1000精品久久久久久久久| 欧美日韩一卡二卡三卡| 人人爽香蕉精品| 中文字幕在线观看不卡视频| 欧美片在线播放| 99视频有精品| 免费看欧美女人艹b| 国产精品久久久久久久浪潮网站| 欧美日韩一区二区三区视频| 国产精品综合一区二区| 亚洲人成影院在线观看| 91麻豆精品国产91久久久资源速度 | 亚洲午夜精品网| 久久一夜天堂av一区二区三区| 93久久精品日日躁夜夜躁欧美| 国产老妇另类xxxxx| 亚洲电影你懂得| 一区二区三区鲁丝不卡| 久久精品男人天堂av| 日韩免费视频一区| 99久久99久久免费精品蜜臀| 大桥未久av一区二区三区中文| 日韩黄色一级片| 亚洲一区二区在线免费看| 国产人妖乱国产精品人妖| 欧美三级中文字| 欧美日本一道本在线视频| 国产成人日日夜夜| 国产一区二区三区黄视频 | 欧美极品美女视频| 欧美一区二区三区的| 欧美日韩在线播放三区| 成人一区二区视频| 粉嫩欧美一区二区三区高清影视| 蜜臀av在线播放一区二区三区| 丝袜美腿一区二区三区| 亚洲欧美日本韩国| 国产精品国产自产拍在线| 久久综合色之久久综合| 欧美一区二区三区四区视频| 欧美videos中文字幕| 欧美精品在线视频| 欧美日韩不卡视频| 欧美视频在线观看一区| 欧美日韩久久久久久| 91高清视频在线| 91精品蜜臀在线一区尤物| 色狠狠色狠狠综合| 成人久久视频在线观看| 国产成人福利片| 黄色日韩网站视频| 粉嫩av一区二区三区在线播放 | 欧美激情艳妇裸体舞| 国产视频一区在线观看| 久久久国产精品不卡| 6080日韩午夜伦伦午夜伦| 欧美日韩精品一区二区三区四区| 欧美性生活一区| 欧美日韩夫妻久久| 日韩免费观看高清完整版 | 日韩制服丝袜先锋影音| 极品尤物av久久免费看| 另类小说色综合网站| 国产99久久久精品| 国产iv一区二区三区| 成人激情黄色小说| 91亚洲午夜精品久久久久久| 91黄色免费网站| 欧美日韩高清影院| 国产亚洲成年网址在线观看| 国产精品超碰97尤物18| 丝袜诱惑制服诱惑色一区在线观看 | 国产精品亚洲一区二区三区在线 | 日韩伦理av电影| 天天色天天爱天天射综合| 视频一区免费在线观看| 国产酒店精品激情| 91色porny在线视频| 972aa.com艺术欧美| 日韩一区二区免费高清| 久久天天做天天爱综合色| 亚洲精品欧美在线| 免费成人在线观看| 91美女福利视频| 91精品中文字幕一区二区三区| 精品国产乱码久久久久久老虎| 欧美xxxx在线观看| 中文字幕日韩一区| 麻豆精品国产传媒mv男同| 粉嫩蜜臀av国产精品网站| 91精品国产综合久久久蜜臀图片| 久久嫩草精品久久久精品| 国产日韩精品一区二区三区| 日韩电影在线免费| www.在线成人| 国产欧美日韩亚州综合 | 中文字幕在线一区| 午夜精品久久久久久久久久| 一本大道久久a久久综合婷婷| www激情久久| 日韩二区三区四区| 91亚洲国产成人精品一区二区三| 欧美精品一区二区三区很污很色的 | 91在线码无精品| 国产精品网站在线观看| 日本伊人精品一区二区三区观看方式| 91在线国产观看| 亚洲精品在线一区二区| 日韩精品一区第一页| av电影一区二区| 国产精品美女久久久久久久久久久 | 色屁屁一区二区| 亚洲欧洲在线观看av| 精品亚洲成av人在线观看| 欧美一区二区黄色| 午夜影院在线观看欧美| 欧美三级三级三级| 亚洲欧美一区二区久久| 99久久伊人网影院| 久久婷婷久久一区二区三区| 国产麻豆日韩欧美久久|