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

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

?? localfileinputsource.cpp

?? IBM的解析xml的工具Xerces的源代碼
?? CPP
字號:
/* * Copyright 1999-2000,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. */// ---------------------------------------------------------------------------//  Includes// ---------------------------------------------------------------------------#include <xercesc/framework/LocalFileInputSource.hpp>#include <xercesc/util/BinFileInputStream.hpp>#include <xercesc/util/PlatformUtils.hpp>#include <xercesc/util/XMLString.hpp>#include <xercesc/util/XMLUniDefs.hpp>XERCES_CPP_NAMESPACE_BEGIN/*** * * Originated by Chris larsson * * Issue: * * There is an inconsistency in URI resolution in the case where the file itself is a  * symbolic link to another path (or the path has path segment which is a symbolic * link to another path). So, is the base path the directory where the symbolic link resides  * or the directory where the real file resides? I'm sure one could argue either way,  * but I think that having the base path be the directory where the symbolic link resides  * is more intuitive.  * * Defining it this way would then make the behavior consistent with using an absolute  * path as well as with the java behavior.  * * Proposal: * * The URI is resolved within the parser code, and is somewhat independant of the OS.  *  * A relative path is resolved by querying the current directory and appending the  * relative part onto the returned current directory string to obtain the base URI.  * An absolute path is simply used as the base URI.  * Then remove all "./" and "../" path segments using an algorithm like weavepath to obtain  * the resolved base URI.  * * When you need to access another file such as a dtd, use the resolved base URI and add on * the relative URI of the dtd file. Then resolve it using the same weavepath algorithm.  * * Note: * *   Java parser behaves differently for a path containning symbolic path segment. When  *   it is given an absolute path, it can locate the primary instance document, while given  *   relative path, it might not. * *   It is because Java parser uses URI solution where "/segment/../" is required to be removed *   from the resultant path if a relative URI is merged to a baseURI. While this is NOT required *   for an absolute URI.  *    *   So if a path segment, which is symbolic link, happen to be followed by the '/../', it is  *   NOT removed from the path if it is given in absolute form, and the underlying file system  *   will locate the file, if in relative form, that symbolic link path segment together with  *   '../' is removed from the resultant path, and the file system may NOT be able to locate  *   the file, if there is a one, it is definitely not the one expected, in fact by accident. * *   Therefore, to keep consistent with Java parser, for now, we do not apply removeDotDotSlash() *   for absolute path. *   ***/// ---------------------------------------------------------------------------//  LocalFileInputSource: Constructors and Destructor// ---------------------------------------------------------------------------LocalFileInputSource::LocalFileInputSource( const XMLCh* const basePath                                          , const XMLCh* const relativePath                                          , MemoryManager* const manager)    : InputSource(manager){    //    //  If the relative part is really relative, then weave it together    //  with the base path. If not, just take the relative path as the    //  entire path.    //    if (XMLPlatformUtils::isRelative(relativePath, manager))    {        XMLCh* tmpBuf = XMLPlatformUtils::weavePaths(basePath, relativePath, manager);        setSystemId(tmpBuf);        manager->deallocate(tmpBuf); //delete [] tmpBuf;    }    else    {        XMLCh* tmpBuf = XMLString::replicate(relativePath, manager);        XMLPlatformUtils::removeDotSlash(tmpBuf, manager);        setSystemId(tmpBuf);        manager->deallocate(tmpBuf);//delete [] tmpBuf;    }}LocalFileInputSource::LocalFileInputSource(const XMLCh* const filePath,                                           MemoryManager* const manager)    : InputSource(manager){    //    //  If the path is relative, then complete it acording to the current    //  working directory rules of the current platform. Else, just take    //  it as is.    //    if (XMLPlatformUtils::isRelative(filePath, manager))    {        XMLCh* curDir = XMLPlatformUtils::getCurrentDirectory(manager);        int    curDirLen = XMLString::stringLen(curDir);        int    filePathLen = XMLString::stringLen(filePath);        XMLCh* fullDir = (XMLCh*) manager->allocate        (            (curDirLen + filePathLen + 2) * sizeof(XMLCh)        );//new XMLCh [ curDirLen + filePathLen + 2];        XMLString::copyString(fullDir, curDir);        fullDir[curDirLen] = chForwardSlash;        XMLString::copyString(&fullDir[curDirLen+1], filePath);                XMLPlatformUtils::removeDotSlash(fullDir, manager);        XMLPlatformUtils::removeDotDotSlash(fullDir, manager);        setSystemId(fullDir);        manager->deallocate(curDir);//delete [] curDir;        manager->deallocate(fullDir);//delete [] fullDir;    }     else    {        XMLCh* tmpBuf = XMLString::replicate(filePath, manager);        XMLPlatformUtils::removeDotSlash(tmpBuf, manager);        setSystemId(tmpBuf);        manager->deallocate(tmpBuf);//delete [] tmpBuf;    }}LocalFileInputSource::~LocalFileInputSource(){}// ---------------------------------------------------------------------------//  LocalFileInputSource: InputSource interface implementation// ---------------------------------------------------------------------------BinInputStream* LocalFileInputSource::makeStream() const{    BinFileInputStream* retStrm = new (getMemoryManager()) BinFileInputStream(getSystemId(), getMemoryManager());    if (!retStrm->getIsOpen())    {        delete retStrm;        return 0;    }    return retStrm;}XERCES_CPP_NAMESPACE_END

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
韩国一区二区在线观看| 一区二区三区四区在线免费观看 | 一区二区三区不卡视频在线观看 | 色婷婷亚洲婷婷| 秋霞国产午夜精品免费视频| 国产精品久久久久久福利一牛影视 | 日韩欧美国产午夜精品| 91麻豆自制传媒国产之光| 毛片av中文字幕一区二区| 国产精品黄色在线观看| 日韩欧美国产综合在线一区二区三区| av中文字幕不卡| 狠狠久久亚洲欧美| 日本不卡一区二区三区 | 精品一区二区国语对白| 亚洲一二三四在线观看| 国产欧美日韩综合| 亚洲精品在线一区二区| 欧美日韩国产精品成人| 一本久久a久久免费精品不卡| 国内精品在线播放| 免费人成黄页网站在线一区二区| 亚洲精选一二三| 国产精品国产a| 久久精品一区二区| 欧美α欧美αv大片| 欧美高清视频在线高清观看mv色露露十八| av激情综合网| av中文字幕不卡| 99久久免费国产| av成人免费在线观看| 国产精品亚洲综合一区在线观看| 精品一区免费av| 奇米影视一区二区三区小说| 日本特黄久久久高潮| 日本成人在线视频网站| 日韩中文字幕麻豆| 五月婷婷综合在线| 亚洲国产日韩一级| 日欧美一区二区| 丝袜a∨在线一区二区三区不卡| 亚洲成人午夜影院| 日韩激情视频网站| 日韩国产欧美在线播放| 日韩国产精品久久| 蜜臀av在线播放一区二区三区| 秋霞成人午夜伦在线观看| 日本成人在线一区| 精品一区二区在线观看| 精品一区二区三区蜜桃| 国产一区二区福利| 成人一区二区在线观看| 成人av动漫网站| 99re成人在线| 欧美做爰猛烈大尺度电影无法无天| 一本色道久久综合狠狠躁的推荐| 欧美丝袜丝交足nylons| 欧美精品99久久久**| 日韩欧美在线综合网| 久久色.com| 亚洲欧洲av色图| 一二三四社区欧美黄| 五月婷婷另类国产| 国产在线播放一区二区三区| 成人午夜激情在线| 欧美中文字幕一区二区三区亚洲| 欧美日韩国产综合一区二区| 日韩一区二区三区观看| 国产视频一区在线观看 | 午夜精品免费在线| 麻豆国产精品一区二区三区| 国产福利一区二区三区在线视频| 99精品视频在线观看免费| 欧美午夜精品免费| 精品电影一区二区| 亚洲欧美激情一区二区| 天堂av在线一区| 国产v日产∨综合v精品视频| 色哟哟亚洲精品| 日韩精品在线一区| 国产精品另类一区| 亚洲国产成人porn| 丁香婷婷综合激情五月色| 在线免费精品视频| 2019国产精品| 亚洲一区二区三区三| 国产一区二区伦理| 欧美日韩一区二区三区不卡| 久久这里只精品最新地址| 一区二区高清免费观看影视大全| 久久99精品久久久| 色婷婷久久久久swag精品| 欧美v亚洲v综合ⅴ国产v| 亚洲欧美日韩久久精品| 久久99精品一区二区三区 | 色中色一区二区| 久久亚洲精华国产精华液| 亚洲一区二区三区免费视频| 国产精品88888| 欧美高清精品3d| 国产精品乱码妇女bbbb| 极品美女销魂一区二区三区| 色婷婷精品大在线视频| 国产欧美日韩另类视频免费观看| 日韩国产成人精品| 在线免费观看视频一区| 亚洲国产成人私人影院tom| 丝袜美腿亚洲一区| 在线观看日韩av先锋影音电影院| 久久影院视频免费| 美日韩黄色大片| 欧美日韩另类一区| 国产精品美女久久久久久2018| 精品一区二区三区在线播放视频 | 99re视频精品| 国产亚洲精品中文字幕| 日本不卡的三区四区五区| 欧美性猛交xxxx乱大交退制版| 国产精品视频免费| 国产原创一区二区三区| 欧美大白屁股肥臀xxxxxx| 午夜精品久久久久久久久久| 一本大道久久精品懂色aⅴ| 国产精品少妇自拍| 国产精品一区二区三区乱码| 日韩美女天天操| 日本不卡一区二区三区| 91精品欧美久久久久久动漫 | 色综合久久88色综合天天免费| 国产欧美精品区一区二区三区 | 91精品蜜臀在线一区尤物| 亚洲国产综合91精品麻豆| 91免费视频观看| 《视频一区视频二区| 成人高清免费观看| 久久精品国产99久久6| 国产在线精品免费| 日韩精品在线一区| 九九**精品视频免费播放| 欧美一级专区免费大片| 日韩精品一二三区| 欧美一区二区免费视频| 三级在线观看一区二区| 在线观看91精品国产麻豆| 丝袜诱惑制服诱惑色一区在线观看| 欧美三级日韩三级| 日本女人一区二区三区| 欧美电影精品一区二区| 国产一区二区视频在线播放| 久久―日本道色综合久久| 国产黄色精品网站| 国产精品青草久久| 色综合久久久久综合体| 亚洲大片在线观看| 91麻豆精品国产自产在线观看一区 | 午夜日韩在线观看| 日韩美女视频一区二区在线观看| 国产自产高清不卡| 国产三级欧美三级| 91日韩在线专区| 午夜电影网亚洲视频| 久久在线免费观看| 91在线视频免费观看| 亚洲国产成人av| 精品国产乱码久久久久久1区2区| 国产精品一区二区久激情瑜伽| 中文字幕在线免费不卡| 欧美亚洲尤物久久| 蜜臀91精品一区二区三区 | 久久婷婷久久一区二区三区| 成人午夜在线播放| 亚洲影院理伦片| 久久久精品天堂| 在线观看日韩一区| 久久精品免费观看| 亚洲精选一二三| 精品三级在线观看| 色综合久久综合网97色综合| 在线电影一区二区三区| 色悠悠久久综合| 日韩视频在线永久播放| 久久你懂得1024| 欧美一区二区美女| 国产精品久久久久9999吃药| 亚洲视频香蕉人妖| 色哟哟一区二区在线观看 | 青青草精品视频| 国产精品久久久久一区二区三区 | 日韩欧美中文字幕精品| 亚洲三级免费观看| 色网综合在线观看| 精品久久99ma| 天堂精品中文字幕在线| 99精品欧美一区二区三区小说| 亚洲综合一区二区三区| 3atv一区二区三区| 99久久亚洲一区二区三区青草| 国内精品嫩模私拍在线| 国产精品久久久99| 97精品超碰一区二区三区|