2015-04-02 22:31:10 +08:00
|
|
|
#ifndef CPPSTRING_H
|
|
|
|
#define CPPSTRING_H
|
|
|
|
|
|
|
|
// cppstring.h
|
|
|
|
// 10/12/2014 jichi
|
|
|
|
|
2016-01-05 23:01:17 +08:00
|
|
|
/#include <string>
|
2015-04-02 22:31:10 +08:00
|
|
|
|
|
|
|
// Initializers
|
|
|
|
|
2016-01-05 23:01:17 +08:00
|
|
|
template <typename charT>
|
|
|
|
inline std::basic_string<charT> cpp_basic_string_of(const std::string &s)
|
|
|
|
{ return std::basic_string<charT>(s.begin(), s.end()); }
|
2015-04-02 22:31:10 +08:00
|
|
|
|
2016-01-05 23:01:17 +08:00
|
|
|
inline std::wstring cpp_wstring_of(const std::string &s)
|
|
|
|
{ return std::wstring(s.begin(), s.end()); }
|
2015-04-02 22:31:10 +08:00
|
|
|
|
|
|
|
#endif // CPPSTRING_H
|