полностью реализован механизм билда статической и динамической библиотеки

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63675 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
Oleg.Korshul
2015-07-23 15:08:51 +00:00
committed by Alexander Trofimov
parent f1fe79b8d5
commit b8f1d41eef
13 changed files with 101 additions and 50 deletions

View File

@ -64,6 +64,13 @@ namespace XPS
m_unLen = 0;
create(wsString, false);
}
CWString::CWString(const std::wstring& wsString)
{
m_bOwnBuffer = false;
m_pBuffer = NULL;
m_unLen = 0;
create(wsString, true);
}
CWString::CWString(wchar_t* wsString, bool bCopy, int nLen)
{
m_bOwnBuffer = false;
@ -102,6 +109,12 @@ namespace XPS
m_bOwnBuffer = false;
}
}
void CWString::create(const std::wstring& sString, bool bCopy)
{
// unused bCopy
create(sString.c_str(), true, (int)sString.length());
}
void CWString::clear()
{
if (m_bOwnBuffer)
@ -206,6 +219,10 @@ namespace XPS
{
return 0 == m_unLen;
}
int CWString::tointeger() const
{
return _wtoi(c_str());
}
std::vector<CWString> CWString::split(wchar_t wChar, bool bCopy)
{
std::vector<CWString> vResult;
@ -226,4 +243,4 @@ namespace XPS
}
return vResult;
}
}
}