iconvConvert.h
Go to the documentation of this file.
/* iconvConvert.h
*/
#ifndef OSL_ICONVCONVERT_H
#define OSL_ICONVCONVERT_H
#include <string>
namespace osl
{
namespace misc
{
// Since IconvConvert uses iconv, this does not work on Windows.
// If you just want to use eucToLang, use osl/misc/eucToLang.h instead.
struct IconvConvert
{
static std::string eucToLang(const std::string& src);
static std::string convert(const std::string& fromcode,
const std::string& tocode,
const std::string& src);
static std::string langToIconvCode(const std::string& lang);
private:
struct IconvCD;
static std::string convert(IconvCD& cd,
const std::string& src);
};
}
using misc::IconvConvert;
}
#endif /* OSL_ICONVCONVERT_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
osl::misc
Definition basic_type.h:66
osl
Definition additionalEffect.h:6
osl::misc::IconvConvert
Definition iconvConvert.h:15
osl::misc::IconvConvert::langToIconvCode
static std::string langToIconvCode(const std::string &lang)
Definition iconvConvert.cc:24
osl::misc::IconvConvert::eucToLang
static std::string eucToLang(const std::string &src)
Definition iconvConvert.cc:45
osl::misc::IconvConvert::convert
static std::string convert(const std::string &fromcode, const std::string &tocode, const std::string &src)
Definition iconvConvert.cc:60