Refactoring AllFontsGen (start using CApplicationFontsWorker)

This commit is contained in:
Oleg Korshul
2021-09-06 20:25:12 +03:00
parent 98a8a865fe
commit 8d098d9951
5 changed files with 324 additions and 1333 deletions

View File

@ -581,6 +581,18 @@ namespace NSStringUtils
std::wstring str(m_pData, (int)m_lSizeCur);
return str;
}
std::wstring CStringBuilder::GetSubData(const size_t& start, const size_t& count)
{
if (start >= m_lSizeCur)
return L"";
size_t nCountMax = m_lSizeCur - start;
if (count != std::wstring::npos && count <= nCountMax)
nCountMax = count;
return std::wstring(m_pData + start, nCountMax);
}
wchar_t* CStringBuilder::GetBuffer()
{
return m_pData;

View File

@ -123,6 +123,7 @@ namespace NSStringUtils
void ClearNoAttack();
std::wstring GetData();
std::wstring GetSubData(const size_t& start = 0, const size_t& count = std::wstring::npos);
wchar_t* GetBuffer();
void RemoveLastSpaces();