mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 02:44:13 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@61925 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander Trofimov
parent
f0b8b526ea
commit
82f3f4c4c9
19
Common/DocxFormat/Source/XML/stringcommon.cpp
Normal file
19
Common/DocxFormat/Source/XML/stringcommon.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
//#include "stdafx.h"
|
||||
#include "stringcommon.h"
|
||||
|
||||
std::wstring string2std_string(const CString& val)
|
||||
{
|
||||
return std::wstring(val.GetString(), val.GetLength());
|
||||
}
|
||||
std::string string2std_string(const CStringA& val)
|
||||
{
|
||||
return std::string(val.GetString(), val.GetLength());
|
||||
}
|
||||
CString std_string2string(const std::wstring& val)
|
||||
{
|
||||
return CString(val.c_str(), val.length());
|
||||
}
|
||||
CStringA std_string2string(const std::string& val)
|
||||
{
|
||||
return CStringA(val.c_str(), val.length());
|
||||
}
|
||||
Reference in New Issue
Block a user