Samchon Framework for CPP  1.0.0
Charset.hpp
1 #pragma once
2 #include <samchon/API.hpp>
3 
4 #include <string>
5 #include <samchon/WeakString.hpp>
6 
7 namespace samchon
8 {
9 namespace library
10 {
30  class SAMCHON_FRAMEWORK_API Charset
31  {
32  public:
33  enum : int
34  {
35  MULTIBYTE = 4,
36  UTF8 = 8
37  };
38 
51  static auto toMultibyte(const std::string &)->std::string;
52 
65  static auto toMultibyte(const std::wstring &)->std::string;
66 
78  static auto toUTF8(const std::string &)->std::string;
79 
92  static auto toUTF8(const std::wstring &)->std::string;
93 
104  static auto toUnicode(const std::string &, int)->std::wstring;
105  };
106 };
107 };
A utility class supporting conversion between multiple character-sets.
Definition: Charset.hpp:30
Top level namespace of products built from samchon.
Definition: ByteArray.hpp:7