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

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

?? netbsdplatformutils.cpp

?? IBM的解析xml的工具Xerces的源代碼
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/* * Copyright 1999-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// ---------------------------------------------------------------------------#if !defined(APP_NO_THREADS)#include    <pthread.h>#endif/* #ifndef __USE_UNIX98    #error __USE_UNIX98 is not defined in your compile settings#endif */#include    <unistd.h>#include    <stdio.h>#include    <stdlib.h>#include    <errno.h>#include    <libgen.h>#include    <sys/time.h>#include    <string.h>#include    <strings.h>/* for strcasecmp & strncasecmp */#include    <wchar.h>  /* for win_t */#include    <xercesc/util/PlatformUtils.hpp>#include    <xercesc/util/RuntimeException.hpp>#include    <xercesc/util/Janitor.hpp>#include    <xercesc/util/Mutexes.hpp>#include    <xercesc/util/XMLString.hpp>#include    <xercesc/util/XMLUniDefs.hpp>#include    <xercesc/util/XMLUni.hpp>#include    <xercesc/util/PanicHandler.hpp>#include    <xercesc/util/OutOfMemoryException.hpp>#if defined(XML_USE_ICU_TRANSCODER)    #include <xercesc/util/Transcoders/ICU/ICUTransService.hpp>#else    // Use native transcoder. Same as -DXML_USE_NATIVE_TRANSCODER    #include <xercesc/util/Transcoders/Iconv/IconvTransService.hpp>#endif#if defined(XML_USE_ICU_MESSAGELOADER)    #include <xercesc/util/MsgLoaders/ICU/ICUMsgLoader.hpp>#else    // Same as -DXML_USE_INMEM_MESSAGELOADER    #include <xercesc/util/MsgLoaders/InMemory/InMemMsgLoader.hpp>#endif#if defined (XML_USE_NETACCESSOR_SOCKET)    #include <xercesc/util/NetAccessors/Socket/SocketNetAccessor.hpp>#endifXERCES_CPP_NAMESPACE_BEGIN// ---------------------------------------------------------------------------//  Local Methods// ---------------------------------------------------------------------------static void WriteCharStr( FILE* stream, const char* const toWrite){    if (fputs(toWrite, stream) == EOF)    {        ThrowXML(XMLPlatformUtilsException,                 XMLExcepts::Strm_StdErrWriteFailure);    }}static void WriteUStrStdErr( const XMLCh* const toWrite){    char* tmpVal = XMLString::transcode(toWrite, XMLPlatformUtils::fgMemoryManager);    ArrayJanitor<char> janText(tmpVal, XMLPlatformUtils::fgMemoryManager);    if (fputs(tmpVal, stderr) == EOF)    {       ThrowXML(XMLPlatformUtilsException,                XMLExcepts::Strm_StdErrWriteFailure);   }}static void WriteUStrStdOut( const XMLCh* const toWrite) {    char* tmpVal = XMLString::transcode(toWrite, XMLPlatformUtils::fgMemoryManager);    ArrayJanitor<char> janText(tmpVal, XMLPlatformUtils::fgMemoryManager);    if (fputs(tmpVal, stdout) == EOF)    {        ThrowXML(XMLPlatformUtilsException,                 XMLExcepts::Strm_StdOutWriteFailure);    }}XMLNetAccessor* XMLPlatformUtils::makeNetAccessor(){#if defined (XML_USE_NETACCESSOR_SOCKET)    return new SocketNetAccessor();#else    return 0;#endif}// ---------------------------------------------------------------------------//  XMLPlatformUtils: Private Static Methods// ---------------------------------------------------------------------------////  This method is called by the platform independent part of this class//  when client code asks to have one of the supported message sets loaded.//XMLMsgLoader* XMLPlatformUtils::loadAMsgSet(const XMLCh* const msgDomain){    XMLMsgLoader* retVal;    try    {#if defined (XML_USE_ICU_MESSAGELOADER)        retVal = new ICUMsgLoader(msgDomain);#else        // same as -DXML_USE_INMEM_MESSAGELOADER        retVal = new InMemMsgLoader(msgDomain);#endif    }    catch(const OutOfMemoryException&)    {        throw;    }    catch(...)    {        panic(PanicHandler::Panic_CantLoadMsgDomain);    }    return retVal;}////  This method is called very early in the bootstrapping process. This guy//  must create a transcoding service and return it. It cannot use any string//  methods, any transcoding services, throw any exceptions, etc... It just//  makes a transcoding service and returns it, or returns zero on failure.//XMLTransService* XMLPlatformUtils::makeTransService(){#if defined (XML_USE_ICU_TRANSCODER)    // Use ICU transcoding services.    // same as -DXML_USE_ICU_MESSAGELOADER    return new ICUTransService;#else    // Use native transcoding services.    // same as -DXML_USE_INMEM_MESSAGELOADER    return new IconvTransService;#endif}// ---------------------------------------------------------------------------//  XMLPlatformUtils: The panic method// ---------------------------------------------------------------------------void XMLPlatformUtils::panic(const PanicHandler::PanicReasons reason){    fgUserPanicHandler? fgUserPanicHandler->panic(reason) : fgDefaultPanicHandler->panic(reason);}// ---------------------------------------------------------------------------//  XMLPlatformUtils: File Methods// ---------------------------------------------------------------------------unsigned int XMLPlatformUtils::curFilePos(FileHandle theFile                                          , MemoryManager* const manager){    if (theFile == NULL)        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::CPtr_PointerIsZero, manager);    int curPos = ftell( (FILE*)theFile);    if (curPos == -1)        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::File_CouldNotGetSize, manager);    return (unsigned int)curPos;}void XMLPlatformUtils::closeFile(FileHandle theFile                                 , MemoryManager* const manager){    if (theFile == NULL)        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::CPtr_PointerIsZero, manager);    if (fclose((FILE*)theFile))        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::File_CouldNotCloseFile, manager);}unsigned int XMLPlatformUtils::fileSize(FileHandle theFile                                        , MemoryManager* const manager){    if (theFile == NULL)        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::CPtr_PointerIsZero, manager);    // Get the current position    long  int curPos = ftell((FILE*) theFile);    if (curPos == -1)        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::File_CouldNotGetCurPos, manager);    // Seek to the end and save that value for return     if (fseek((FILE*) theFile, 0, SEEK_END))        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::File_CouldNotSeekToEnd, manager);    long int retVal = ftell((FILE*)theFile);    if (retVal == -1)        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::File_CouldNotSeekToEnd, manager);    // And put the pointer back    if (fseek( (FILE*)theFile, curPos, SEEK_SET) )        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::File_CouldNotSeekToPos, manager);    return (unsigned int)retVal;}FileHandle XMLPlatformUtils::openFile(const XMLCh* const fileName                                      , MemoryManager* const manager){    if (fileName == NULL)        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::CPtr_PointerIsZero, manager);    const char* tmpFileName = XMLString::transcode(fileName, manager);    ArrayJanitor<char> janText((char*)tmpFileName, manager);    FileHandle retVal = (FILE*)fopen( tmpFileName , "r+" );    if (retVal == NULL)        return 0;    return retVal;}FileHandle XMLPlatformUtils::openFile(const char* const fileName                                      , MemoryManager* const manager){    if (fileName == NULL)        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::CPtr_PointerIsZero, manager);    FileHandle retVal = (FILE*)fopen( fileName , "r+" );    if (retVal == NULL)        return 0;    return retVal;}FileHandle XMLPlatformUtils::openFileToWrite(const XMLCh* const fileName                                             , MemoryManager* const manager){    if (fileName == NULL)        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::CPtr_PointerIsZero, manager);    const char* tmpFileName = XMLString::transcode(fileName, manager);    ArrayJanitor<char> janText((char*)tmpFileName, manager);    FileHandle retVal = (FILE*)fopen( tmpFileName, "r+" );    if (retVal == NULL)        return 0;    return retVal;}FileHandle XMLPlatformUtils::openFileToWrite(const char* const fileName                                             , MemoryManager* const manager){    if (fileName == NULL)        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::CPtr_PointerIsZero, manager);    FileHandle retVal = (FILE*)fopen( fileName, "r+" );    if (retVal == NULL)        return 0;    return retVal;}FileHandle XMLPlatformUtils::openStdInHandle(MemoryManager* const manager){    int nfd = dup(0);    if (nfd == -1)        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                XMLExcepts::File_CouldNotDupHandle, manager);    return (FileHandle)fdopen(dup(0), "r");}unsigned intXMLPlatformUtils::readFileBuffer( FileHandle           theFile                                , const unsigned int   toRead                                , XMLByte* const       toFill                                , MemoryManager* const manager){    if ( !theFile || !toFill )        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::CPtr_PointerIsZero, manager);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人h动漫精品一区二区| 亚洲自拍偷拍av| 精品系列免费在线观看| 欧美一级精品大片| 韩国av一区二区三区在线观看| 91精品国产综合久久久蜜臀图片| 日韩和的一区二区| 日韩欧美一区二区三区在线| 美女www一区二区| 久久免费看少妇高潮| 国产成人精品亚洲午夜麻豆| 国产精品嫩草99a| 色网站国产精品| 亚洲国产精品久久不卡毛片 | 粉嫩av亚洲一区二区图片| 久久久久久99精品| 99久久99久久精品国产片果冻| 最近日韩中文字幕| 欧美日韩国产小视频在线观看| 免费亚洲电影在线| 国产精品天干天干在线综合| 欧美性做爰猛烈叫床潮| 欧美aaa在线| 中文字幕在线视频一区| 欧美日韩中文字幕一区二区| 老司机精品视频线观看86 | 丁香激情综合国产| 亚洲一区二区视频在线观看| 91精品在线麻豆| 成人午夜在线视频| 天堂午夜影视日韩欧美一区二区| 久久精品综合网| 欧美三日本三级三级在线播放| 激情五月播播久久久精品| 亚洲视频狠狠干| 精品少妇一区二区三区日产乱码| eeuss鲁片一区二区三区| 日韩avvvv在线播放| 国产精品国产馆在线真实露脸| 欧美精品 日韩| 成人免费视频一区| 免费国产亚洲视频| 亚洲精品水蜜桃| 26uuu亚洲婷婷狠狠天堂| 色综合久久天天综合网| 韩国在线一区二区| 天堂在线一区二区| 亚洲精品乱码久久久久久黑人| 日韩欧美成人一区| 欧美性受xxxx黑人xyx性爽| 国产盗摄一区二区| 美女精品一区二区| 亚欧色一区w666天堂| 亚洲视频免费观看| 国产午夜精品久久久久久久| 精品美女在线播放| 欧美精品1区2区3区| 欧美亚洲国产bt| 91在线高清观看| 成人美女在线观看| 国产成人精品三级| 国产一区二区视频在线播放| 蜜臀久久久久久久| 午夜精品成人在线视频| 亚洲欧美日韩在线| 国产精品国产精品国产专区不蜜 | 亚瑟在线精品视频| 一区二区三区欧美| 综合久久久久久| 国产精品毛片久久久久久| 久久精品一区二区三区av| 精品日韩av一区二区| 欧美一区二区人人喊爽| 欧美乱熟臀69xxxxxx| 欧美色视频在线| 欧美色综合影院| 在线观看免费成人| 欧美日韩在线播放一区| 欧美三级韩国三级日本三斤| 日本韩国欧美一区| 在线精品视频免费播放| 欧美亚洲免费在线一区| 欧美三级日韩三级国产三级| 欧美日免费三级在线| 欧美乱妇15p| 欧美一区二区成人| 日韩美女视频一区二区在线观看| 精品成人佐山爱一区二区| 久久蜜桃一区二区| 国产精品视频一区二区三区不卡| 中文乱码免费一区二区| 日韩美女久久久| 亚洲一区二区三区美女| 亚洲成av人片在线| 秋霞国产午夜精品免费视频| 麻豆91精品视频| 国产91精品免费| 欧美影院一区二区| 日韩女优av电影在线观看| 精品国产亚洲一区二区三区在线观看| 精品精品国产高清一毛片一天堂| 国产日产欧美一区| 亚洲精选在线视频| 麻豆91在线播放| 成人夜色视频网站在线观看| 色94色欧美sute亚洲线路一久| 欧美日韩精品一区二区三区四区 | 3d动漫精品啪啪1区2区免费 | 日韩精品福利网| 国产一区二区毛片| 色一情一乱一乱一91av| 日韩三级高清在线| 国产精品私人影院| 亚洲chinese男男1069| 国产精品资源网| 色老综合老女人久久久| 日韩欧美色电影| 中文字幕欧美一| 美女一区二区三区在线观看| 粉嫩蜜臀av国产精品网站| 欧美视频完全免费看| 国产视频视频一区| 香蕉成人伊视频在线观看| 国产米奇在线777精品观看| 一本大道久久a久久综合| 欧美大肚乱孕交hd孕妇| 国产精品午夜免费| 奇米影视一区二区三区小说| 成人av网在线| 日韩一区二区免费高清| 亚洲免费电影在线| 国产精品自拍三区| 欧美一级日韩一级| 亚洲伦理在线精品| 国产成+人+日韩+欧美+亚洲| 欧美另类videos死尸| 国产精品久久久久久久浪潮网站| 奇米精品一区二区三区在线观看| 色综合天天性综合| 中文字幕欧美激情一区| 久久国产尿小便嘘嘘尿| 在线观看www91| 国产精品成人午夜| 国产乱码一区二区三区| 91.麻豆视频| 亚洲一级二级在线| 成人伦理片在线| 久久久国产综合精品女国产盗摄| 天天操天天色综合| 欧美亚洲一区二区在线| 亚洲日本一区二区三区| 成人av综合在线| 中文字幕不卡一区| 国产福利一区二区三区视频| 欧美成人a视频| 奇米影视在线99精品| 91精品国产综合久久香蕉麻豆| 一区二区三区在线观看网站| 色综合久久综合网| 亚洲欧美日韩系列| 91视频在线观看| 中文字幕日本乱码精品影院| 成人免费av网站| 国产精品久久久久永久免费观看| 国产乱理伦片在线观看夜一区| 欧美精品一区二区精品网| 麻豆久久久久久久| 欧美一卡二卡在线| 久久精品国产一区二区三区免费看| 欧美狂野另类xxxxoooo| 午夜精品久久久久久| 制服丝袜在线91| 奇米影视7777精品一区二区| 日韩免费高清av| 国模套图日韩精品一区二区| 欧美精品一区二区三区一线天视频 | 久久成人免费电影| 精品美女一区二区| 国产麻豆日韩欧美久久| 国产日产亚洲精品系列| 99久久精品99国产精品| 一区二区三区日韩欧美| 欧美情侣在线播放| 久久国产精品露脸对白| 精品国产一区二区三区久久久蜜月 | 丝袜亚洲另类欧美综合| 91精品国产综合久久久蜜臀图片| 捆绑调教一区二区三区| 久久久亚洲国产美女国产盗摄| 成人午夜伦理影院| 亚洲精品免费一二三区| 欧美日产国产精品| 精品一区在线看| 中文字幕一区二区在线播放| 欧美综合天天夜夜久久| 欧美aa在线视频| 国产精品久99| 欧美久久久久中文字幕| 国产精品影音先锋| 一区二区三区精密机械公司|