My Project
iconvConvert.h
Go to the documentation of this file.
1/* iconvConvert.h
2 */
3#ifndef OSL_ICONVCONVERT_H
4#define OSL_ICONVCONVERT_H
5
6#include <string>
7
8namespace osl
9{
10 namespace misc
11 {
12 // Since IconvConvert uses iconv, this does not work on Windows.
13 // If you just want to use eucToLang, use osl/misc/eucToLang.h instead.
15 {
16 static std::string eucToLang(const std::string& src);
17 static std::string convert(const std::string& fromcode,
18 const std::string& tocode,
19 const std::string& src);
20
21 static std::string langToIconvCode(const std::string& lang);
22 private:
23 struct IconvCD;
24 static std::string convert(IconvCD& cd,
25 const std::string& src);
26 };
27 }
29}
30
31#endif /* OSL_ICONVCONVERT_H */
32// ;;; Local Variables:
33// ;;; mode:c++
34// ;;; c-basic-offset:2
35// ;;; End:
static std::string langToIconvCode(const std::string &lang)
static std::string eucToLang(const std::string &src)
static std::string convert(const std::string &fromcode, const std::string &tocode, const std::string &src)