ultimatepp/autotest/StdString/StdString.cpp
cxl cf264c52f7 .reference
git-svn-id: svn://ultimatepp.org/upp/trunk@15734 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2021-02-03 22:54:51 +00:00

32 lines
471 B
C++

#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_COUT|LOG_FILE);
{
String h = "Hello world";
std::string sh = h.ToStd();
DDUMP(sh);
h = sh;
DDUMP(h);
Value v = sh;
DDUMP(v);
sh = v.ToStd();
DDUMP(sh);
}
{
WString h = "Hello world";
std::wstring sh = h.ToStd();
DDUMP(sh);
h = sh;
DDUMP(h);
Value v = sh;
DDUMP(v);
sh = v.ToWStd();
DDUMP(sh);
}
CheckLogEtalon();
}