2015-04-02 23:31:10 +09:00
|
|
|
#ifndef CPPSTRING_H
|
|
|
|
#define CPPSTRING_H
|
|
|
|
|
|
|
|
// cppstring.h
|
|
|
|
// 10/12/2014 jichi
|
|
|
|
|
2016-01-06 00:01:17 +09:00
|
|
|
/#include <string>
|
2015-04-02 23:31:10 +09:00
|
|
|
|
|
|
|
// Initializers
|
|
|
|
|
2016-01-06 00:01:17 +09: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 23:31:10 +09:00
|
|
|
|
2016-01-06 00:01:17 +09:00
|
|
|
inline std::wstring cpp_wstring_of(const std::string &s)
|
|
|
|
{ return std::wstring(s.begin(), s.end()); }
|
2015-04-02 23:31:10 +09:00
|
|
|
|
|
|
|
#endif // CPPSTRING_H
|