/usr/include/htmlcxx/html/CharsetConverter.h is in libhtmlcxx-dev 0.85-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #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
|