2009-04-18 17:20:12 +00:00
|
|
|
#include "wstring_qt.hh"
|
|
|
|
#include <QVector>
|
|
|
|
|
|
|
|
namespace gd
|
|
|
|
{
|
|
|
|
QString toQString( wstring const & in )
|
|
|
|
{
|
2022-02-17 14:01:09 +00:00
|
|
|
return QString::fromStdU32String( in );
|
2009-04-18 17:20:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
wstring toWString( QString const & in )
|
|
|
|
{
|
2022-04-05 04:19:37 +00:00
|
|
|
return in.toStdU32String();
|
2009-04-18 17:20:12 +00:00
|
|
|
}
|
2013-07-06 18:18:43 +00:00
|
|
|
|
|
|
|
wstring normalize( const wstring & str )
|
|
|
|
{
|
|
|
|
return gd::toWString( gd::toQString( str ).normalized( QString::NormalizationForm_C ) );
|
|
|
|
}
|
|
|
|
|
2022-02-26 00:56:46 +00:00
|
|
|
std::string toStdString(const QString& str)
|
|
|
|
{
|
|
|
|
return str.toStdString();
|
|
|
|
}
|
|
|
|
|
2009-04-18 17:20:12 +00:00
|
|
|
}
|