LIBTHEMIS
strconv.h
[詳解]
1 /**********************************************************************//*
15  * (c) 2009-2016 oZ/acy. ALL RIGHTS RESERVED.
16  */
17 #ifndef INC_STRING_CONV_H_
18 #define INC_STRING_CONV_H_
19 
20 #include <string>
21 #include <iconv.h>
22 
23 
24 namespace themis{
25 
30 {
31 private:
32  iconv_t cv_;
33 
34 public:
42  StringConverter(const std::string& tocode, const std::string& fromcode);
43 
45  ~StringConverter() { iconv_close(cv_); }
46 
50  std::string convert(const std::string& src);
51 
55  static std::string toLower(const std::string& s);
59  static std::wstring toLower(const std::wstring& ws);
60 };
61 
62 
63 }//end of namespace themis
64 
65 
66 #endif
StringConverter(const std::string &tocode, const std::string &fromcode)
構築子
Definition: strconv.cpp:19
Definition: except.h:17
std::string convert(const std::string &src)
文字列の變換
Definition: strconv.cpp:29
~StringConverter()
解體子
Definition: strconv.h:45
文字列變換クラス
Definition: strconv.h:29
static std::string toLower(const std::string &s)
小文字變換
Definition: strconv_tolower.cpp:15