#ifndef UTILS_HPP #define UTILS_HPP #include #include // --------------------------------------------------------------------- extern std::wstring fromUtf8( const char* pStr , int len=-1 ) ; inline std::wstring fromUtf8( const std::string& str ) { return fromUtf8(str.c_str(),str.length()) ; } // --------------------------------------------------------------------- #define MAKE_STRING( msg ) ( ((std::ostringstream&)((std::ostream&)std::ostringstream() << msg)).str() ) // --------------------------------------------------------------------- #endif // UTILS_HPP