Textractor_test/vnr/cpputil/cppstring.h

19 lines
397 B
C
Raw Normal View History

2015-04-02 22:31:10 +08:00
#ifndef CPPSTRING_H
#define CPPSTRING_H
// cppstring.h
// 10/12/2014 jichi
/#include <string>
2015-04-02 22:31:10 +08:00
// Initializers
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
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