charsetconverter.h

来自「著名的标准C++的html解析器」· C头文件 代码 · 共 31 行

H
31
字号
#ifndef __CHARSET_CONVERTER_H__#define __CHARSET_CONVERTER_H__#include <iconv.h>#include <string>#include <stdexcept>namespace htmlcxx{	class CharsetConverter	{		public:			class Exception : public std::runtime_error			{				public:					Exception(const std::string &arg)						: std::runtime_error(arg) {}			};						CharsetConverter(const std::string &from, const std::string &to) throw (Exception);			~CharsetConverter();						std::string convert(const std::string &input);		private:			iconv_t mIconvDescriptor;;	};}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?