You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
590 B
18 lines
590 B
#ifndef UTILS_HPP
|
|
#define UTILS_HPP
|
|
|
|
#include <string>
|
|
#include <sstream>
|
|
|
|
// ---------------------------------------------------------------------
|
|
|
|
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
|