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

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

?? xlat_icuresourcebundle.cpp

?? IBM的解析xml的工具Xerces的源代碼
?? CPP
字號:
/* * Copyright 1999-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. *//* * $Id: Xlat_ICUResourceBundle.cpp,v 1.6 2004/09/08 13:57:07 peiyongz Exp $ * $Log: Xlat_ICUResourceBundle.cpp,v $ * Revision 1.6  2004/09/08 13:57:07  peiyongz * Apache License Version 2.0 * * Revision 1.5  2003/04/14 08:41:00  gareth * Xlat now works under linux - Big thanks to Neil Graham (I no longer have to find a windows box). Still slight problems working with glibc before 2.2.4 (If you mess up the parameters it seg faults due to handling of wprintf) * * Revision 1.4  2002/12/17 17:39:09  tng * Xlat: generate icu message file with array format as default. * * Revision 1.3  2002/12/12 23:40:38  peiyongz * normlize locale string. * * Revision 1.2  2002/11/05 21:15:16  peiyongz * generate correct <locale>.txt file * * Revision 1.1  2002/09/30 22:09:28  peiyongz * To generate icu resource file (in text) for error message. * * */// ---------------------------------------------------------------------------//  Includes// ---------------------------------------------------------------------------#include "Xlat.hpp"// ---------------------------------------------------------------------------//  ICUResBundFormatter: Constructors and Destructor// ---------------------------------------------------------------------------ICUResBundFormatter::ICUResBundFormatter():fOutFl(0),fTranscoder(0){    //    //  Try to create a transcoder for the format that we were told    //  to output in.    //    //  <TBD> Right now we are just using an LCP transcoding, which is not    //  really the right thing to do!    //    fTranscoder = XMLPlatformUtils::fgTransService->makeNewLCPTranscoder();    if (!fTranscoder)    {        wprintf(L"Could not create LCP transcoder\n");        throw ErrReturn_NoTranscoder;    }}ICUResBundFormatter::~ICUResBundFormatter(){	delete fTranscoder;}// ---------------------------------------------------------------------------//  ICUResBundFormatter: Implementation of the formatter interface// ---------------------------------------------------------------------------void ICUResBundFormatter::endDomain(const   XMLCh*        const    domainName                                  , const   unsigned int           msgCount){    fwprintf(fOutFl, L"\t\t} \n\n");}void ICUResBundFormatter::endMsgType(const MsgTypes type){#ifndef ICU_RESBUNDLE_IN_TABLE_FORM     fwprintf(fOutFl, L"\t\t\"%s End \" ,\n", xmlStrToPrintable(typePrefixes[type]) );     releasePrintableStr#endif}void ICUResBundFormatter::endOutput(){    // Close the output files    fwprintf(fOutFl, L"} \n\n");    fclose(fOutFl);}voidICUResBundFormatter::nextMessage(const  XMLCh* const            msgText                               , const  XMLCh* const            msgId                               , const  unsigned int            messageId                               , const  unsigned int            curId){    //    //  We have to transcode the message text to UTF-8 in order to be able    //  to write it out to a message catalog (which is not Unicode enabled.)    //  If the text is just US-ASCII, this won't have any effect, but don't    //  bother checking, just do it simple and stupid.    //    //	//  array_name {	//               "xxx" ,	//               "yyy" ,	//  }	//	//	//  table_name {	//       AB { "xxx" }	//       CD { "yyy" }	//  }	//#ifdef ICU_RESBUNDLE_IN_TABLE_FORM    fwprintf(fOutFl, L"\t\t %3d { \"%s \" } \n", curId, xmlStrToPrintable(msgText));    releasePrintableStr	// need to print leading 0 if less than 100, not tested yet#else    fwprintf(fOutFl, L"\t\t\"%s \" ,\n", xmlStrToPrintable(msgText));    releasePrintableStr	// need a space between the last character and the closing "#endif}void ICUResBundFormatter::startDomain(const   XMLCh* const    domainName                                    , const   XMLCh* const    nameSpace){    //    //  Output:    //           // an array    //           domainName {	//	int index = XMLString::lastIndexOf(domainName, chForwardSlash);#ifdef ICU_RESBUNDLE_IN_TABLE_FORM    fwprintf(fOutFl, L"\n\t // a table \n");#else    fwprintf(fOutFl, L"\n\t // an array \n");#endif    fwprintf(fOutFl, L"\t%s { \n" , xmlStrToPrintable(&(domainName[index+1])));    releasePrintableStr}void ICUResBundFormatter::startMsgType(const MsgTypes type){#ifndef ICU_RESBUNDLE_IN_TABLE_FORM    fwprintf(fOutFl, L"\t\t\"%s Start \" , \n", xmlStrToPrintable(typePrefixes[type]) );    releasePrintableStr#endif}void ICUResBundFormatter::startOutput(const   XMLCh* const    locale                                    , const   XMLCh* const    outPath){    //    //  Ok, lets try to open the the output file. All of the messages    //  for all the domains are put into a single Msg file, which can be    //  compiled into the program.    //    //  CppErrMsgs_xxxx.Msg    //    //  where xxx is the locale suffix passed in.    //    const unsigned int bufSize = 4095;    XMLCh tmpBuf[bufSize + 1];    tmpBuf[0] = 0;    XMLCh *tmpXMLStr = XMLString::transcode(".txt");    XMLString::catString(tmpBuf, outPath);    XMLString::catString(tmpBuf, locale);    XMLString::catString(tmpBuf, tmpXMLStr );    XMLString::release(&tmpXMLStr);    char *tmpStr = XMLString::transcode(tmpBuf);    fOutFl = fopen(tmpStr, "wt");    XMLString::release(&tmpStr);    if ((!fOutFl) || (fwide(fOutFl, 1) < 0))    {                wprintf(L"Could not open the output file: %s\n\n", xmlStrToPrintable(tmpBuf) );                releasePrintableStr        throw ErrReturn_OutFileOpenFailed;    }    // Set the message delimiter    fwprintf(fOutFl, L"%s { \n", xmlStrToPrintable(locale) );    releasePrintableStr}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区二区91| 国产一区二区伦理片| 国产日韩一级二级三级| 3751色影院一区二区三区| 色视频成人在线观看免| 91色porny| 91蝌蚪porny九色| 一本大道久久a久久精二百| 成人av网在线| 91视频观看视频| 日本精品免费观看高清观看| 91影院在线免费观看| 99re成人在线| www国产成人免费观看视频 深夜成人网| 欧美人妖巨大在线| 日韩一级成人av| 26uuu久久天堂性欧美| 国产日本欧美一区二区| 亚洲欧美乱综合| 亚洲成人动漫在线观看| 免费成人在线观看视频| 国产一区二区三区在线看麻豆| 国产综合一区二区| 91污片在线观看| 91精品国产乱码| 国产午夜精品一区二区| 有码一区二区三区| 蜜桃一区二区三区在线| 国产剧情一区在线| av男人天堂一区| 3d成人动漫网站| 国产精品欧美久久久久一区二区| 亚洲欧美日韩国产另类专区| 亚洲成a人在线观看| 极品尤物av久久免费看| 色悠悠久久综合| 91超碰这里只有精品国产| 久久综合色婷婷| 亚洲成av人片在线观看无码| 国产精品一二三在| 欧美日韩精品欧美日韩精品一| 中文字幕在线观看不卡| 亚洲精品自拍动漫在线| 久久99精品久久久久久国产越南| 91美女视频网站| 久久久亚洲高清| 秋霞电影网一区二区| 91免费视频网址| 精品国产伦一区二区三区观看方式| 国产精品国产三级国产aⅴ原创 | 五月激情综合色| 成人永久看片免费视频天堂| 欧美福利一区二区| 一区二区中文字幕在线| 国产伦精品一区二区三区免费迷| 在线观看91视频| 亚洲视频香蕉人妖| 国v精品久久久网| 久久综合资源网| 日韩国产欧美视频| 91麻豆123| 中文字幕一区二区三中文字幕| 蜜乳av一区二区三区| 欧美三区免费完整视频在线观看| 国产精品美女久久久久久| 人禽交欧美网站| 欧美一级午夜免费电影| 午夜精品久久久久久久| 日韩欧美成人一区二区| 日韩精品乱码av一区二区| 99r国产精品| 中文字幕一区二区三区蜜月| 久久精品国内一区二区三区| 91香蕉国产在线观看软件| 亚洲欧洲av一区二区三区久久| 狠狠久久亚洲欧美| 久久女同性恋中文字幕| 国内精品在线播放| 久久精品人人做| 成人午夜在线播放| 国产精品久久久久一区| jizzjizzjizz欧美| 亚洲人一二三区| 在线一区二区三区四区五区| 亚洲精品老司机| 欧美福利电影网| 久久精品国产**网站演员| 精品少妇一区二区三区| 国产精品综合在线视频| 亚洲欧洲av在线| 在线观看一区不卡| 免费成人性网站| 国产午夜精品久久| 色婷婷精品大视频在线蜜桃视频| 亚洲最新在线观看| 日韩精品一区二区三区视频在线观看| 麻豆国产精品视频| 国产精品久久久久毛片软件| 色女孩综合影院| 麻豆精品视频在线| 国产精品天天摸av网| 色爱区综合激月婷婷| 日韩成人免费在线| 国产精品免费aⅴ片在线观看| 日本精品一区二区三区高清 | 韩国精品主播一区二区在线观看| 一区二区三区在线免费视频| 欧美日韩视频在线一区二区| 蜜桃久久精品一区二区| 亚洲国产精品激情在线观看| 欧美四级电影网| 奇米在线7777在线精品| 国产精品污网站| 欧美日韩国产小视频在线观看| 激情av综合网| 亚洲摸摸操操av| 日韩欧美国产小视频| 99久久亚洲一区二区三区青草| 午夜激情一区二区| 欧美国产日本韩| 欧美性色黄大片手机版| 粉嫩欧美一区二区三区高清影视| 香蕉成人啪国产精品视频综合网| 久久久不卡网国产精品二区| 欧美日韩免费不卡视频一区二区三区| 国产一区视频在线看| 日韩高清不卡在线| 亚洲人成小说网站色在线 | 国产在线一区观看| 亚洲一级电影视频| 中文字幕在线一区免费| 精品少妇一区二区三区视频免付费| 色综合激情五月| 成人av影院在线| 国产综合成人久久大片91| 天天综合网 天天综合色| 亚洲免费观看高清在线观看| 国产视频一区在线观看| 精品国产1区二区| 在线不卡a资源高清| 欧日韩精品视频| 色噜噜狠狠色综合中国| av一区二区三区在线| 成人精品免费看| 国产专区欧美精品| 国产主播一区二区三区| 蜜桃视频免费观看一区| 免费成人在线观看| 蜜桃精品视频在线| 欧美aaa在线| 琪琪一区二区三区| 人人精品人人爱| 免费视频最近日韩| 奇米一区二区三区av| 日本不卡一二三| 亚洲超碰精品一区二区| 亚洲国产精品一区二区www| 一区二区三区蜜桃| 一区二区激情小说| 亚洲国产精品影院| 亚洲伊人伊色伊影伊综合网| 亚洲综合在线第一页| 亚洲成人激情社区| 青青草97国产精品免费观看| 美女一区二区在线观看| 国产中文字幕一区| 成人av免费观看| 欧洲日韩一区二区三区| 91精品国产综合久久精品app| 欧美日韩电影在线| 久久尤物电影视频在线观看| 国产视频一区二区三区在线观看 | 99视频一区二区| av日韩在线网站| 欧洲精品视频在线观看| 777欧美精品| 日韩一区二区在线看| 日韩一区和二区| 日韩欧美在线网站| 欧美一三区三区四区免费在线看| 欧美四级电影网| 精品日本一线二线三线不卡| 国产日韩精品一区二区浪潮av | 夜夜夜精品看看| 免费成人在线影院| 麻豆精品视频在线观看视频| 国产成人免费视| 8x福利精品第一导航| 久久精品一区二区三区不卡| 亚洲三级小视频| 奇米影视在线99精品| av中文字幕不卡| 欧美成人一区二区三区在线观看| 国产精品女主播在线观看| 亚洲午夜私人影院| 国产精品1024| 69成人精品免费视频| 最新中文字幕一区二区三区| 免费观看日韩电影| 欧美亚洲国产一区在线观看网站|