亚洲欧美第一页_禁久久精品乱码_粉嫩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精品黄色片免费大全| 99re亚洲国产精品| 国产精品资源在线看| 偷拍一区二区三区四区| 欧美国产国产综合| 精品久久99ma| 6080国产精品一区二区| 色哟哟亚洲精品| 国产91露脸合集magnet| 精品亚洲免费视频| 五月天欧美精品| 一区二区三区欧美视频| 久久精品亚洲麻豆av一区二区| 欧美高清hd18日本| 色94色欧美sute亚洲13| 99久久精品久久久久久清纯| 狠狠色丁香久久婷婷综合_中| 天堂在线亚洲视频| 亚洲国产成人高清精品| 丰满亚洲少妇av| 久久激情五月激情| 全国精品久久少妇| 午夜精品福利久久久| 亚洲午夜在线视频| 亚洲自拍偷拍欧美| 亚洲国产裸拍裸体视频在线观看乱了 | 热久久一区二区| 亚洲动漫第一页| 亚洲精品久久嫩草网站秘色| 18成人在线观看| 中文字幕一区二区三| 国产精品理伦片| 中文字幕制服丝袜成人av| 日本一区免费视频| 国产精品福利一区| 亚洲男人的天堂在线aⅴ视频| 国产精品久久久99| 亚洲色图制服丝袜| 一区二区三区小说| 亚洲午夜精品17c| 日韩精品电影在线| 另类小说图片综合网| 麻豆视频一区二区| 国产一区二区剧情av在线| 国产精品一区2区| www.性欧美| 在线观看免费视频综合| 欧美日韩一区二区三区高清| 91精品欧美综合在线观看最新| 欧美片网站yy| 欧美mv和日韩mv的网站| wwwwww.欧美系列| 国产精品久久久久久久第一福利| 亚洲靠逼com| 水蜜桃久久夜色精品一区的特点| 日韩国产高清在线| 国产成人三级在线观看| 99精品国产一区二区三区不卡| 在线一区二区三区做爰视频网站| 69av一区二区三区| 欧美国产精品专区| 亚洲在线中文字幕| 久久99深爱久久99精品| 岛国精品在线播放| 欧美三级在线看| 2024国产精品| 亚洲毛片av在线| 精品午夜一区二区三区在线观看| 成人性生交大片免费看中文| 欧美日韩一区二区在线视频| 26uuu亚洲| 亚洲欧美日韩人成在线播放| 日韩高清不卡在线| kk眼镜猥琐国模调教系列一区二区 | 蜜桃传媒麻豆第一区在线观看| 国产一区二区三区蝌蚪| 91极品美女在线| 日韩视频在线一区二区| 中文字幕一区二区三区蜜月| 日韩中文字幕亚洲一区二区va在线| 国产成人综合亚洲网站| 欧美视频一二三区| 国产精品乱子久久久久| 日韩电影免费在线看| av福利精品导航| 欧美mv日韩mv国产网站app| 一区二区三区中文在线| 国产精品综合在线视频| 欧美日韩中文精品| 国产精品电影院| 韩国一区二区三区| 欧美亚洲动漫另类| 中文字幕中文字幕在线一区| 美女在线视频一区| 欧美视频一二三区| 日韩毛片视频在线看| 国产一区999| 欧美一卡二卡在线| 亚洲精品国产成人久久av盗摄| 国产精品小仙女| 日韩免费性生活视频播放| 亚洲综合男人的天堂| 成人av网在线| 久久久99精品免费观看| 日韩av在线播放中文字幕| 色婷婷综合久久久久中文| 久久蜜桃一区二区| 精品一区二区三区免费毛片爱| 欧美精品乱码久久久久久按摩| 亚洲免费资源在线播放| 成人丝袜高跟foot| 精品国产麻豆免费人成网站| 热久久免费视频| 91精品中文字幕一区二区三区| 亚洲国产成人av| 欧美优质美女网站| 亚洲精品videosex极品| 不卡av在线免费观看| 国产婷婷一区二区| 国产一区二区免费视频| 精品福利视频一区二区三区| 美女网站视频久久| 337p亚洲精品色噜噜狠狠| 丝袜美腿亚洲综合| 欧美日韩精品免费| 天天综合日日夜夜精品| 91麻豆精品国产自产在线 | 乱中年女人伦av一区二区| 欧美精品在欧美一区二区少妇| 亚洲图片一区二区| 欧美在线播放高清精品| 午夜激情一区二区| 在线播放视频一区| 久久国产精品色| 久久久亚洲欧洲日产国码αv| 国精品**一区二区三区在线蜜桃| 日韩免费视频线观看| 狠狠色丁香婷婷综合| 国产亚洲精品资源在线26u| 国产**成人网毛片九色| 国产精品久久久一本精品| 91在线视频播放| 亚洲综合男人的天堂| 91麻豆精品国产91久久久更新时间 | 国产喂奶挤奶一区二区三区| 成人激情免费网站| 一区二区三区欧美亚洲| 91精品免费在线| 狠狠色丁香婷综合久久| 国产精品久久久久影院色老大 | 97国产一区二区| 亚洲午夜电影网| 欧美不卡一区二区| 成人国产精品免费网站| 一区二区三区免费| 欧美一级专区免费大片| 国产伦精品一区二区三区免费| 国产精品乱码一区二区三区软件 | 成人高清免费在线播放| 亚洲女同ⅹxx女同tv| 欧美肥妇毛茸茸| 粉嫩嫩av羞羞动漫久久久| 亚洲免费在线视频| 日韩美一区二区三区| www.亚洲激情.com| 日本亚洲欧美天堂免费| 国产欧美一区二区精品秋霞影院| 91官网在线观看| 寂寞少妇一区二区三区| 亚洲免费观看高清完整版在线观看| 欧美日韩不卡视频| 丰满少妇在线播放bd日韩电影| 亚洲国产中文字幕| 国产蜜臀av在线一区二区三区| 欧美丝袜丝nylons| 国产成人超碰人人澡人人澡| 亚洲成av人在线观看| 国产欧美一区二区精品性色| 欧美猛男男办公室激情| 成人成人成人在线视频| 日韩成人一区二区三区在线观看| 国产精品每日更新在线播放网址| 欧美一区二区三区男人的天堂| gogo大胆日本视频一区| 韩国精品主播一区二区在线观看 | 一区二区成人在线观看| 精品嫩草影院久久| 欧美在线观看你懂的| 国产成人精品免费一区二区| 舔着乳尖日韩一区| 亚洲欧美乱综合| 国产拍揄自揄精品视频麻豆| 欧美一区二区视频在线观看| 91传媒视频在线播放| 成人视屏免费看|