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

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

?? beosplatformutils.cpp

?? IBM的解析xml的工具Xerces的源代碼
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/* * Copyright 2002-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: BeOSPlatformUtils.cpp,v $ * Revision 1.14  2004/09/08 13:56:38  peiyongz * Apache License Version 2.0 * * Revision 1.13  2004/01/13 16:34:21  cargilld * Misc memory management changes. * * Revision 1.12  2004/01/06 17:31:20  neilg * fix static initialization problems, bug 28517; thanks to Reid Spencer * * Revision 1.11  2003/12/24 15:24:14  cargilld * More updates to memory management so that the static memory manager. * * Revision 1.10  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.9  2003/12/17 13:58:02  cargilld * Platform update for memory management so that the static memory manager (one * used to call Initialize) is only for static data. * * Revision 1.8  2003/10/01 16:32:39  neilg * improve handling of out of memory conditions, bug #23415.  Thanks to David Cargill. * * Revision 1.7  2003/05/15 18:37:47  knoaman * Partial implementation of the configurable memory manager. * * Revision 1.6  2003/04/25 17:18:53  peiyongz * throw exception if getcwd() fails * * Revision 1.5  2003/04/24 02:52:34  peiyongz * Logical Path Resolution * * Revision 1.4  2003/04/21 04:26:47  peiyongz * performance tuning * * Revision 1.3  2003/03/09 16:52:56  peiyongz * PanicHandler * * Revision 1.2  2003/02/05 18:28:39  tng * [Bug 13437] Incorrect memory management in XXXPlatformUtils.cpp. * * Revision 1.1  2002/12/12 21:24:20  peiyongz * typo fix * * Revision 1.2  2002/12/12 16:28:40  peiyongz * MsgCatalogLoader added. * * Revision 1.1  2002/12/02 20:42:30  tng * [Bug 12490] Patches required to build Xerces-C++ on BeOS R5.  Patch from Andrew Bachmann. * * */// ---------------------------------------------------------------------------//  Includes// ---------------------------------------------------------------------------#if !defined(APP_NO_THREADS)	#error BeOS native threads not yet supported.#endif#ifndef _GNU_SOURCE    #error _GNU_SOURCE is not defined in your compile settings#endif#include    <unistd.h>#include    <stdio.h>#include    <stdlib.h>#include    <errno.h>//#include    <libgen.h>#include    <limits.h>           //for PATH_MAX#include    <sys/timeb.h>#include    <string.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/PanicHandler.hpp>#include    <xercesc/util/OutOfMemoryException.hpp>#include <Path.h>char *realpath(const char *path, char *resolved_path) {  BPath tempPath(path,NULL,true);  strcpy(resolved_path,tempPath.Path());  return resolved_path;}#if defined(XML_USE_ICU_TRANSCODER)    #include <xercesc/util/Transcoders/ICU/ICUTransService.hpp>#elif defined (XML_USE_GNU_TRANSCODER)    #include <xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.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>#elif defined (XML_USE_ICONV_MESSAGELOADER)    #include <xercesc/util/MsgLoaders/MsgCatalog/MsgCatalogLoader.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// ---------------------------------------------------------------------------//  XMLPlatformUtils: Private Static Methods// ---------------------------------------------------------------------------XMLNetAccessor* XMLPlatformUtils::makeNetAccessor(){#if 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        // 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;#elif defined (XML_USE_GNU_TRANSCODER)    return new IconvGNUTransService;#else    // Use native transcoding services.    // same as -DXML_USE_NATIVE_TRANSCODER    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){    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){

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91丨porny丨蝌蚪视频| jlzzjlzz亚洲日本少妇| 2017欧美狠狠色| 久久久久久久久久久久久夜| 欧美日韩综合一区| 成人午夜碰碰视频| 国产精品一区不卡| 九色|91porny| 久久99在线观看| 韩国欧美国产1区| 国产电影一区在线| 99精品视频在线播放观看| 不卡的电影网站| 日本道色综合久久| 欧美最猛性xxxxx直播| 欧美三级视频在线观看| 中文在线一区二区| 国产精品美女一区二区三区| 中文字幕成人网| 久久精品久久精品| 在线观看91精品国产麻豆| 91麻豆精品91久久久久久清纯| 欧美军同video69gay| 亚洲欧美激情小说另类| 亚洲精品欧美综合四区| 亚洲成av人片在www色猫咪| 亚洲高清免费一级二级三级| 亚洲国产精品久久不卡毛片| 日韩久久久久久| 久久久久99精品国产片| 久久精品二区亚洲w码| 欧美久久久久久久久| 婷婷开心激情综合| 国产一区999| 欧美一a一片一级一片| 日韩欧美激情在线| 精品综合免费视频观看| 日韩精品一区二区三区蜜臀| 免费在线观看成人| 丰满白嫩尤物一区二区| 欧美日韩一区高清| 日韩av电影免费观看高清完整版 | 亚洲男人的天堂网| 91麻豆精品秘密| 一区二区三区美女视频| 国产原创一区二区三区| 精品国产乱码久久久久久夜甘婷婷| 亚洲免费在线观看| 色欧美88888久久久久久影院| 精品国产一区二区三区av性色| 麻豆91免费看| 色女孩综合影院| 五月婷婷久久综合| 久久看人人爽人人| eeuss国产一区二区三区| 亚洲欧美另类图片小说| 欧美乱妇15p| 狠狠色丁香婷婷综合久久片| 国产女人18毛片水真多成人如厕 | 亚洲主播在线观看| 成人动漫视频在线| 亚洲国产欧美日韩另类综合 | 欧美日韩成人激情| 国产精品久久久久久久久果冻传媒| 日本欧洲一区二区| 日本一区二区三区在线不卡| 色婷婷久久久亚洲一区二区三区| 午夜激情综合网| 国产亚洲精品aa| 国产美女精品一区二区三区| 国产精品免费看片| 欧美电影影音先锋| 成人午夜在线免费| 日本不卡的三区四区五区| 久久精品亚洲乱码伦伦中文 | 日韩高清在线观看| 国产精品视频在线看| 制服丝袜av成人在线看| 成人v精品蜜桃久久一区| 日韩国产欧美在线播放| 中文字幕亚洲综合久久菠萝蜜| 国内精品在线播放| 亚洲一区二区精品视频| 久久美女高清视频| 91精品在线观看入口| 成人h动漫精品一区二区| 男人的天堂亚洲一区| 亚洲青青青在线视频| 337p粉嫩大胆噜噜噜噜噜91av| 欧美日韩午夜精品| 91丝袜高跟美女视频| 国产精品中文字幕欧美| 男男成人高潮片免费网站| 亚洲欧美日韩一区二区| 久久久精品一品道一区| 欧美电视剧在线观看完整版| 欧美日韩精品免费观看视频 | 香港成人在线视频| 国产一区二区毛片| 日韩—二三区免费观看av| 亚洲精品成人在线| 136国产福利精品导航| 国产色婷婷亚洲99精品小说| 日韩免费看的电影| 欧美另类z0zxhd电影| 欧美日韩成人在线| 欧美精品v日韩精品v韩国精品v| 色菇凉天天综合网| 91免费看`日韩一区二区| 豆国产96在线|亚洲| 国产精品乡下勾搭老头1| 韩国一区二区在线观看| 国产综合久久久久久鬼色 | 日韩欧美三级在线| 91精品国产91久久久久久一区二区 | 日韩av一二三| 午夜久久电影网| 丝袜a∨在线一区二区三区不卡| 精品久久久久久久久久久久久久久久久 | 韩国女主播一区| 国产在线乱码一区二区三区| 精彩视频一区二区| 国产一区二三区| 国产精品一区二区久久不卡| 国产电影一区二区三区| 波波电影院一区二区三区| 色偷偷久久人人79超碰人人澡| 一本大道久久a久久精品综合| 色欧美88888久久久久久影院| 91网站最新地址| 欧美人与性动xxxx| 日韩欧美资源站| 色一情一伦一子一伦一区| 在线观看亚洲成人| 日韩欧美一区中文| 久久久久久久国产精品影院| 国产精品成人在线观看| 一区二区三区在线播| 午夜精品福利一区二区蜜股av | av一区二区三区黑人| 97精品电影院| 欧美一区二区视频在线观看| 久久嫩草精品久久久精品| 国产精品乱码一区二区三区软件| 亚洲欧美日韩久久| 美女视频黄 久久| av资源网一区| 91精品在线观看入口| 国产精品视频yy9299一区| 夜夜精品浪潮av一区二区三区| 麻豆精品视频在线| www.综合网.com| 欧美一级理论片| 亚洲视频综合在线| 中文字幕一区二区视频| 午夜电影久久久| 粉嫩高潮美女一区二区三区| 欧美日韩一区高清| 国产精品女同一区二区三区| 亚洲一区二区三区美女| 国产在线精品一区二区不卡了| 91麻豆swag| 国产无一区二区| 日本中文一区二区三区| 91视视频在线观看入口直接观看www | 国产精品久久久久久久久晋中 | 色激情天天射综合网| 欧美videossexotv100| 依依成人综合视频| 国产91高潮流白浆在线麻豆| 欧美无乱码久久久免费午夜一区 | 视频一区二区不卡| 99精品视频一区二区| 久久久久9999亚洲精品| 日本人妖一区二区| 欧美日韩三级一区二区| ...xxx性欧美| 国产999精品久久久久久 | 在线看不卡av| 亚洲日本在线天堂| 成人丝袜高跟foot| 久久只精品国产| 日韩高清在线不卡| 欧美精品18+| 亚洲成人www| 欧美伊人久久大香线蕉综合69| 亚洲欧美成aⅴ人在线观看| 风间由美一区二区三区在线观看 | 欧美日韩成人综合天天影院| 亚洲精品日产精品乱码不卡| 91在线观看地址| 国产精品久久久久影院老司 | 亚洲色图丝袜美腿| 成人app下载| 国产精品女同一区二区三区| 国产精品一区专区| 国产喂奶挤奶一区二区三区| 国产精品系列在线观看| 中文字幕不卡在线| 91丨九色porny丨蝌蚪|