📄 xmlstringlate.h
字号:
// XMLStringTranslate.h: interface for the XMLStringTranslate class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_XMLSTRINGTRANSLATE_H__578927FB_884C_4030_9990_6206CBC30F72__INCLUDED_)
#define AFX_XMLSTRINGTRANSLATE_H__578927FB_884C_4030_9990_6206CBC30F72__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <xercesc/framework/XMLFormatter.hpp>
#include <string>
using namespace std;
class XMLStringTranslate : public XMLFormatTarget
{
public:
XMLStringTranslate(const char * const encoding);
virtual ~XMLStringTranslate();
protected:
XMLFormatter * fFormatter;
XMLCh * fEncodingUsed;
XMLCh * toFill;//new XMLCh[srcCount];
char * m_value;
protected:
enum Constants
{
kTmpBufSize = 16 * 1024,
kCharBufSize = 16 * 1024
};
void clearbuffer();
// -----------------------------------------------------------------------
// Implementations of the format target interface
// -----------------------------------------------------------------------
virtual void writeChars(const XMLByte* const toWrite
, const unsigned int count
, XMLFormatter* const formatter);
public:
string translate(const XMLCh* const value);
const XMLCh * const translate(const char * const value);
};
#endif // !defined(AFX_XMLSTRINGTRANSLATE_H__578927FB_884C_4030_9990_6206CBC30F72__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -