All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 
8 namespace 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.
14  struct IconvConvert
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  }
28  using misc::IconvConvert;
29 }
30 
31 #endif /* OSL_ICONVCONVERT_H */
32 // ;;; Local Variables:
33 // ;;; mode:c++
34 // ;;; c-basic-offset:2
35 // ;;; End: