!B (Sandbox) (CE-21795) Importing models with multisubmaterials via fbx switches...
[CRYENGINE.git] / Code / Sandbox / Plugins / LodGeneratorPlugin / Util / StringTool.cpp
blob31e5a42c4566d0443cd0763efd5b03897db55c5b
1 #include "StdAfx.h"
2 #include "StringTool.h"
4 string CStringTool::QStringToCString(QString str)
6 string strTmp = str.toLocal8Bit().data();
7 string cstrTmp = strTmp.c_str();
8 return cstrTmp;
11 QString CStringTool::CStringToQString(string str)
13 QString qstrTemp;
14 #ifdef _UNICODE
15 qstrTemp = QString::fromWCharArray((LPCTSTR)str, str.GetLength());
16 #else
17 qstrTemp = QString((LPCTSTR)str);
18 #endif
20 return qstrTemp;