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

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

?? unixwareplatformutils.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. *//* * $Log: UnixWarePlatformUtils.cpp,v $ * Revision 1.18  2004/09/08 13:56:43  peiyongz * Apache License Version 2.0 * * Revision 1.17  2004/01/29 11:51:21  cargilld * Code cleanup changes to get rid of various compiler diagnostic messages. * * Revision 1.16  2004/01/13 16:34:22  cargilld * Misc memory management changes. * * Revision 1.15  2003/12/24 15:24:14  cargilld * More updates to memory management so that the static memory manager. * * Revision 1.14  2003/12/17 19:58:05  cargilld * Platform update for memory management so that the static memory manager (one * used to call Initialize) is only for static data. * * Revision 1.13  2003/12/17 15:16:10  cargilld * Platform update for memory management so that the static memory manager (one * used to call Initialize) is only for static data. * * Revision 1.12  2003/12/17 13:58:03  cargilld * Platform update for memory management so that the static memory manager (one * used to call Initialize) is only for static data. * * Revision 1.11  2003/10/01 16:32:40  neilg * improve handling of out of memory conditions, bug #23415.  Thanks to David Cargill. * * Revision 1.10  2003/05/15 18:37:49  knoaman * Partial implementation of the configurable memory manager. * * Revision 1.9  2003/04/25 17:21:31  peiyongz * throw exception if getcwd() fails * * Revision 1.8  2003/04/24 02:59:20  peiyongz * Logical Path Resolution * * Revision 1.7  2003/04/21 04:32:10  peiyongz * performance tuning * * Revision 1.6  2003/03/09 17:01:08  peiyongz * PanicHandler * * Revision 1.5  2003/03/07 20:34:16  tng * [Bug 17774] Unixware platform utils not implemented .  Patch from Peter Crozier. * * Revision 1.4  2002/11/04 15:13:01  tng * C++ Namespace Support. * * Revision 1.3  2002/05/21 20:31:48  tng * Minor update: Remove obsolete code * * Revision 1.2  2002/05/01 21:13:32  tng * [Bug 7265] UnixWare port broken in platformTerm() since rev 1.10. * * Revision 1.1.1.1  2002/02/01 22:22:26  peiyongz * sane_include * * Revision 1.11  2001/10/25 15:20:31  tng * Need to guard with NO_APP_THREADS when destroying the mutex. * * Revision 1.10  2001/10/23 23:13:09  peiyongz * [Bug#880] patch to PlatformUtils:init()/term() and related. from Mark Weaver * * Revision 1.9  2001/02/09 14:40:02  tng * Update support for SCO UnixWare 7 (gcc).  Tested under UnixWare 7.1.1 with gcc version 2.95.2 19991024 (release) with gmake 3.79.1.  Updated by Martin Kalen. * * Revision 1.8  2000/07/25 22:30:54  aruna1 * Char definitions in XMLUni moved to XMLUniDefs * * Revision 1.7  2000/03/24 00:13:34  aruna1 * Platform initialization taken care for both threaded and non-threaded environment * * Revision 1.6  2000/03/02 21:10:39  abagchi * Added empty function platformTerm() * * Revision 1.5  2000/03/02 20:42:42  abagchi * Fixed typo in XMLExcepts * * Revision 1.4  2000/03/02 19:55:33  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.3  2000/02/06 07:48:31  rahulj * Year 2K copyright swat. * * Revision 1.2  2000/01/25 22:33:13  aruna1 * Updated panic information * * Revision 1.1  1999/12/17 22:24:03  rahulj * Added missing UnixWare files to the repository. * * Created by Ron Record (rr@sco.com) based on SolarisPlatformUtils.cpp * 13-Nov-1999 */// ---------------------------------------------------------------------------//  Includes// ---------------------------------------------------------------------------#if !defined (APP_NO_THREADS)#include    <pthread.h>#endif // APP_NO_THREADS#include    <unistd.h>#include    <stdio.h>#include    <stdlib.h>#include    <errno.h>#include    <libgen.h>#include    <sys/timeb.h>#include    <limits.h>#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/OutOfMemoryException.hpp>#if defined (XML_USE_ICU_TRANSCODER)    #include <xercesc/util/Transcoders/ICU/ICUTransService.hpp>#elif defined (XML_USE_NATIVE_TRANSCODER)    #include <xercesc/util/Transcoders/Iconv/IconvTransService.hpp>#else    #error Transcoding service unknown by UnixWarePlatformUtils.cpp#endif#if defined(XML_USE_ICU_MESSAGELOADER)    #include <xercesc/util/MsgLoaders/ICU/ICUMsgLoader.hpp>#elif defined (XML_USE_ICONV_MESSAGELOADER)    #include <xercesc/util/MsgLoaders/MsgCatalog/MsgCatalogLoader.hpp>#elif defined (XML_USE_INMEM_MESSAGELOADER)    #include <xercesc/util/MsgLoaders/InMemory/InMemMsgLoader.hpp>#else    #error Message loading service unknown by UnixWarePlatformUtils.cpp#endif#if defined (XML_USE_NETACCESSOR_LIBWWW)    #include <xercesc/util/NetAccessors/libWWW/LibWWWNetAccessor.hpp>#elif defined (XML_USE_NETACCESSOR_SOCKET)    #include <xercesc/util/NetAccessors/Socket/SocketNetAccessor.hpp>#endifXERCES_CPP_NAMESPACE_BEGIN// ---------------------------------------------------------------------------//  XMLPlatformUtils: Private Static Methods// ---------------------------------------------------------------------------XMLNetAccessor* XMLPlatformUtils::makeNetAccessor(){#if defined (XML_USE_NETACCESSOR_LIBWWW)    return new LibWWWNetAccessor();#elif defined (XML_USE_NETACCESSOR_SOCKET)    return new SocketNetAccessor();#else    return 0;#endif}////  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);#elif defined (XML_USE_ICONV_MESSAGELOADER)        retVal = new MsgCatalogLoader(msgDomain);#else        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)        return new ICUTransService;#elif defined (XML_USE_ICONV_TRANSCODER)    return new IconvTransService;#else // Use Native transcoding service    return new IconvTransService;#endif}// ---------------------------------------------------------------------------//  XMLPlatformUtils: The panic method// ---------------------------------------------------------------------------void XMLPlatformUtils::panic(const PanicReasons reason){    fgUserPanicHandler? fgUserPanicHandler->panic(reason) : fgDefaultPanicHandler->panic(reason);}// ---------------------------------------------------------------------------//  XMLPlatformUtils: File Methods// ---------------------------------------------------------------------------unsigned int XMLPlatformUtils::curFilePos(FileHandle theFile                                          , MemoryManager* const manager){    // Get the current position    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 (fclose((FILE*) theFile))        ThrowXMLwithMemMgr(XMLPlatformUtilsException,                 XMLExcepts::File_CouldNotCloseFile, manager);}unsigned int XMLPlatformUtils::fileSize(FileHandle theFile                                        , MemoryManager* const 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){    const char* tmpFileName = XMLString::transcode(fileName, manager);    ArrayJanitor<char> janText((char*)tmpFileName, manager);    FileHandle retVal = (FILE*)fopen( tmpFileName , "rb" );    if (retVal == NULL)        return 0;    return retVal;}FileHandle XMLPlatformUtils::openFile(const char* const fileName                                      , MemoryManager* const manager){    FileHandle retVal = (FILE*)fopen( fileName , "rb" );    if (retVal == NULL)        return 0;    return retVal;}FileHandle XMLPlatformUtils::openFileToWrite(const XMLCh* const fileName                                             , MemoryManager* const manager){    const char* tmpFileName = XMLString::transcode(fileName, manager);    ArrayJanitor<char> janText((char*)tmpFileName, manager);    return fopen( tmpFileName , "wb" );}FileHandle XMLPlatformUtils::openFileToWrite(const char* const fileName                                             , MemoryManager* const manager){    return fopen( fileName , "wb" );}FileHandle XMLPlatformUtils::openStdInHandle(MemoryManager* const manager){	return (FileHandle)fdopen(dup(0), "rb");}unsigned intXMLPlatformUtils::readFileBuffer( FileHandle          theFile                               , const unsigned int      toRead                               , XMLByte* const          toFill                               , MemoryManager* const manager){    size_t noOfItemsRead = fread((void*) toFill, 1, toRead, (FILE*) theFile);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
视频在线观看一区| 精品视频全国免费看| 国产欧美日产一区| 高清shemale亚洲人妖| 国产精品久久福利| 色综合中文字幕国产 | 337p粉嫩大胆色噜噜噜噜亚洲 | 一区二区视频在线看| 91日韩精品一区| 亚洲精品国产成人久久av盗摄| 色偷偷一区二区三区| 亚洲综合一二三区| 欧美一区二区三区四区久久| 捆绑调教美女网站视频一区| 国产亚洲精品久| 99精品国产视频| 午夜欧美视频在线观看| 精品国产1区二区| 99精品视频一区二区三区| 亚洲午夜久久久久久久久久久| 欧美日韩国产一二三| 日本欧美久久久久免费播放网| 日韩欧美色综合| 波多野结衣欧美| 午夜精品久久久久久| 国产亚洲一区二区三区四区| 色丁香久综合在线久综合在线观看| 午夜av区久久| 国产精品久久久久久久久果冻传媒| 欧美性生活一区| 激情六月婷婷久久| 一区二区三区影院| 国产午夜一区二区三区| 日本道精品一区二区三区| 麻豆精品精品国产自在97香蕉| 中文字幕一区二区三区在线不卡| 欧美精品一卡二卡| 成人黄页毛片网站| 毛片av一区二区三区| 中文字幕一区二区三区蜜月 | 亚洲男人的天堂在线aⅴ视频| 91精品国产aⅴ一区二区| 99精品久久99久久久久| 精品系列免费在线观看| 一区二区久久久| 国产欧美精品国产国产专区 | 一区二区三区在线视频免费| 久久亚洲精华国产精华液| 欧美三区免费完整视频在线观看| 国产一区二区三区免费播放 | 亚洲欧美日韩一区| 国产亚洲欧洲997久久综合 | 亚洲一区二区影院| 国产清纯美女被跳蛋高潮一区二区久久w| 一本色道**综合亚洲精品蜜桃冫| 麻豆91在线播放| 亚洲国产精品自拍| 亚洲激情av在线| 国产精品电影院| 久久一区二区三区四区| 日韩一区二区视频| 欧美日韩中文一区| 欧美伊人精品成人久久综合97 | 欧美视频在线不卡| gogo大胆日本视频一区| 国产传媒一区在线| 韩国v欧美v日本v亚洲v| 久久成人麻豆午夜电影| 日本不卡一二三区黄网| 五月天中文字幕一区二区| 亚洲精品久久7777| 亚洲精品水蜜桃| 亚洲在线视频网站| 一区二区成人在线观看| 亚洲激情图片一区| 亚洲一区二区三区四区五区黄| 中文字幕一区二区三区精华液 | 亚洲综合一二区| 亚洲一区电影777| 亚洲电影中文字幕在线观看| 亚洲激情图片一区| 亚洲资源在线观看| 视频在线观看一区| 久久精品国产亚洲高清剧情介绍| 免费在线观看视频一区| 久久成人免费日本黄色| 国产在线视频不卡二| 国产精品18久久久久久久久| 国产精品亚洲专一区二区三区| 精品综合免费视频观看| 国产一区二区在线观看视频| 国模大尺度一区二区三区| 国产91富婆露脸刺激对白| 国产成人精品在线看| av在线不卡电影| 色欧美片视频在线观看| 欧美日韩黄色一区二区| 日韩免费高清视频| 欧美国产乱子伦| 亚洲在线免费播放| 精品亚洲成a人| 成人av免费观看| 欧美日韩免费在线视频| 91精品国产福利| 国产人成亚洲第一网站在线播放 | 欧美三级中文字| 日韩一级片在线观看| 久久久久88色偷偷免费| 亚洲精品高清在线| 免费看精品久久片| 成人免费毛片片v| 欧美在线视频你懂得| 精品人在线二区三区| 国产精品久久毛片| 亚洲chinese男男1069| 国产盗摄一区二区| 91网站黄www| 在线不卡欧美精品一区二区三区| 久久久噜噜噜久久中文字幕色伊伊| 最好看的中文字幕久久| 免费人成网站在线观看欧美高清| 粉嫩13p一区二区三区| 这里是久久伊人| 国产精品第一页第二页第三页| 喷水一区二区三区| 色中色一区二区| 久久先锋资源网| 午夜电影一区二区三区| 97se亚洲国产综合自在线观| 日韩欧美一区中文| 亚洲主播在线观看| 成人a级免费电影| 日韩精品一区二区三区蜜臀| 日韩毛片高清在线播放| 国内成人自拍视频| 欧美久久久久中文字幕| 一区二区中文视频| 国产乱码精品1区2区3区| 在线播放日韩导航| 一区二区三区日韩精品视频| 国产98色在线|日韩| 日韩免费福利电影在线观看| 亚洲综合色在线| aaa亚洲精品| 久久精品亚洲乱码伦伦中文 | 精品免费99久久| 日韩高清在线一区| 欧美在线观看视频在线| 国产精品久久看| 国产精品456| 久久色成人在线| 麻豆成人av在线| 欧美久久久影院| 午夜欧美视频在线观看| 91精品91久久久中77777| 国产精品丝袜91| 国产福利91精品| 日韩欧美国产三级| 免费成人结看片| 欧美精品三级日韩久久| 亚洲成人综合在线| 欧美亚洲图片小说| 亚洲国产三级在线| 欧美日韩国产高清一区二区| 一区二区免费看| 欧美在线色视频| 亚洲国产日韩精品| 欧美浪妇xxxx高跟鞋交| 首页综合国产亚洲丝袜| 欧美群妇大交群中文字幕| 婷婷综合另类小说色区| 欧美日本不卡视频| 日本aⅴ亚洲精品中文乱码| 欧美少妇性性性| 爽好多水快深点欧美视频| 亚洲免费看黄网站| 在线免费观看日韩欧美| 一区二区三区精品| 欧美日韩国产精品自在自线| 日韩av高清在线观看| 精品欧美一区二区久久 | 亚洲v中文字幕| 欧美男女性生活在线直播观看| 香港成人在线视频| 日韩精品专区在线影院观看| 国产在线观看一区二区| 国产精品免费aⅴ片在线观看| 91亚洲资源网| 午夜久久电影网| 欧美成人福利视频| 国产99久久久国产精品潘金网站| 中文天堂在线一区| 欧美日韩成人高清| 黑人巨大精品欧美黑白配亚洲 | 中文在线资源观看网站视频免费不卡| 国产盗摄视频一区二区三区| 亚洲免费在线观看视频| 欧美亚洲国产怡红院影院| 五月天欧美精品| 久久久久久久久久电影|