亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲丝袜自拍清纯另类| 2020国产精品自拍| 成人app网站| 成人av电影观看| 国产在线国偷精品免费看| 欧美aaaaaa午夜精品| 日本不卡的三区四区五区| 日韩高清一区在线| 免费黄网站欧美| 国产精品一区在线观看你懂的| 精品一区二区三区的国产在线播放| 看电影不卡的网站| 国产永久精品大片wwwapp| 成人免费视频免费观看| 91亚洲午夜精品久久久久久| 欧美日韩高清影院| 日韩欧美电影一二三| 久久久精品中文字幕麻豆发布| 国产精品久久久久永久免费观看| 亚洲国产一区二区视频| 日韩成人伦理电影在线观看| 另类调教123区| 亚洲激情第一区| 亚洲色图一区二区三区| 婷婷综合久久一区二区三区| 国产一区二区女| 色噜噜狠狠色综合欧洲selulu| 欧美在线观看视频在线| 久久新电视剧免费观看| 一区二区三区蜜桃| 精品一区二区三区免费观看| 成人app网站| 欧美大片在线观看一区| 亚洲日本va在线观看| 激情综合色播激情啊| 91免费视频网| 久久精品视频在线看| 亚洲一级二级三级在线免费观看| 国产乱人伦精品一区二区在线观看| 91小宝寻花一区二区三区| 欧美成人国产一区二区| 一区二区三区四区激情| 国产成人免费视频| 日韩你懂的电影在线观看| 亚洲狠狠丁香婷婷综合久久久| 国产麻豆成人精品| 欧美一二三区精品| 亚洲狼人国产精品| bt7086福利一区国产| 26uuu国产电影一区二区| 午夜激情一区二区三区| 色综合色狠狠天天综合色| 久久香蕉国产线看观看99| 日本不卡在线视频| 欧美亚洲综合网| 成人欧美一区二区三区黑人麻豆| 韩国精品在线观看| 日韩限制级电影在线观看| 亚洲第一成年网| 色综合 综合色| 自拍偷自拍亚洲精品播放| 成人丝袜视频网| 精品sm在线观看| 九九国产精品视频| 欧美成人r级一区二区三区| 婷婷国产v国产偷v亚洲高清| 欧美三区在线观看| 亚洲成人自拍偷拍| 91精品久久久久久久99蜜桃| 日韩精品成人一区二区三区| 欧美日韩激情一区| 日韩精品乱码免费| 欧美一级搡bbbb搡bbbb| 美女一区二区三区| 精品国产91久久久久久久妲己| 免费观看一级欧美片| 欧美一区二区精美| 久久99国产精品成人| 精品国产99国产精品| 国产在线不卡视频| 国产精品天天摸av网| 99久久综合色| 亚洲第一激情av| 精品奇米国产一区二区三区| 国内精品免费在线观看| 久久久久一区二区三区四区| 不卡av在线免费观看| 亚洲视频你懂的| 7777精品伊人久久久大香线蕉完整版| 日本亚洲三级在线| 久久精品一区二区三区不卡牛牛| 不卡视频在线看| 亚洲一区二区三区中文字幕| 3d动漫精品啪啪| 国产成人啪免费观看软件| 亚洲男女一区二区三区| 欧美精品日韩一本| 国产精品99久久不卡二区| 国产精品二区一区二区aⅴ污介绍| 在线观看免费视频综合| 久久电影网电视剧免费观看| 国产欧美一区二区精品性| 在线视频综合导航| 韩国欧美国产一区| 亚洲精品视频免费看| 精品久久久久av影院| 色综合天天综合网天天狠天天| 亚洲一区二区三区视频在线| 久久蜜臀中文字幕| 欧美人妇做爰xxxⅹ性高电影 | 亚洲精品你懂的| 日韩一区二区免费电影| 97se狠狠狠综合亚洲狠狠| 青青草97国产精品免费观看无弹窗版| 欧美国产一区二区| 91精品国产综合久久久蜜臀粉嫩 | 欧美午夜精品久久久| 激情综合网av| 亚洲高清在线视频| 国产精品久久99| 欧美福利视频一区| 99视频精品免费视频| 黄色成人免费在线| 日韩极品在线观看| 亚洲一二三四区不卡| 中文字幕欧美日本乱码一线二线| 日韩亚洲欧美综合| 欧美剧在线免费观看网站| 一区二区三区日韩在线观看| 久久久精品tv| 在线电影国产精品| 欧美日韩精品电影| 欧洲精品在线观看| 91丨九色丨黑人外教| 国产99久久久国产精品免费看 | 国产成人午夜视频| 日韩成人av影视| 午夜不卡av在线| 艳妇臀荡乳欲伦亚洲一区| 国产精品区一区二区三区| 国产肉丝袜一区二区| 久久精品一区二区三区av| 精品国产髙清在线看国产毛片 | 国产白丝精品91爽爽久久| 欧美aaaaa成人免费观看视频| 亚洲福利一区二区三区| 亚洲一二三四在线| 婷婷久久综合九色综合绿巨人| 亚洲国产成人精品视频| 亚洲一区二区三区四区在线免费观看| 亚洲视频一区在线| 亚洲人妖av一区二区| 亚洲日本电影在线| 一区二区成人在线视频| 亚洲国产精品一区二区尤物区| 亚洲视频一二三区| 亚洲影院在线观看| 亚洲午夜影视影院在线观看| 亚洲一区av在线| 免费在线观看不卡| 麻豆精品一区二区| 国产成人啪免费观看软件| 成人免费观看男女羞羞视频| 国产成人aaa| 色94色欧美sute亚洲线路一ni | 亚洲天堂2014| 尤物视频一区二区| 日韩黄色免费电影| 国产九九视频一区二区三区| 丰满放荡岳乱妇91ww| 在线欧美日韩精品| 日韩精品中文字幕在线不卡尤物 | 欧美日韩国产美女| 26uuu久久综合| 综合激情成人伊人| 天堂va蜜桃一区二区三区漫画版| 韩国精品在线观看| 色天天综合色天天久久| 欧美精品在线一区二区三区| 精品久久一区二区三区| 中文字幕中文在线不卡住| 日韩黄色小视频| av成人免费在线观看| 欧美一区二区美女| 亚洲同性同志一二三专区| 久久精品国产99| 一本色道久久综合精品竹菊| 欧美刺激脚交jootjob| 亚洲欧美一区二区三区极速播放| 日韩国产欧美在线观看| av高清久久久| 久久综合久色欧美综合狠狠| 亚洲尤物在线视频观看| 国产成人精品1024| 日韩欧美中文一区| 悠悠色在线精品| 成人福利在线看| 日韩精品自拍偷拍| 亚洲18女电影在线观看| av在线不卡网|