﻿##CString to sed::string
CString	std::wstring
'(\.|\>)(\s*)<GetLength>\s*\('	'\1\02size\('
'(\.|\>)(\s*)<IsEmpty>\s*\('		'\1\02empty\('
'(\.|\>)(\s*)<Left>\s*\('	'\1substr\(0, '
'(\.|\>)(\s*)<Mid>\s*\('	'\1substr\('




'\.\s*<GetAt>\s*\(([^)]+)\)'		'\[\1\]'
'\.\s*<Delete>\s*\('		'.erase\('
'\.\s*<Empty>\s*\('		'.clear\('

'<(\w+)>'	'\T{\1}'

"_T\(('[^']*')\)"	"L\1"
"_T\(('\\.')\)"	"L\1"
'_T\(("[^"]*")\)'	"L\1"

'(\w+)\.Format\('	'\1=strtools::format\('
'(\w+)\.Trim\('	'strtools::trim\(\1'
'(\w+)\.TrimRight\('	'strtools::rtrim\(\1'
'(\w+)\.TrimLeft\('	'strtools::ltrim\(\1'
'(\w+)\.MakeUpper\('	'strtools::toupper\(\1'
'(\w+)\.MakeLower\('	'strtools::tolower\(\1'


'strSection\s*,'	'strSection.c_str(),'
'^(.*Doc|.*this)(\.|-\>)size\('	'\1\2GetLength\('
'^(.*Doc-\>m_text\.)erase\('	'\1Delete\('
'^(.*f_todo)(\.|-\>)size\('	'\1\2GetLength\('
'AfxMessageBox\(\s*(\w+)\s*,'	'AfxMessageBox\(\1.c_str(),'
'm_sTempText.GetAllocLength\s*\('	'm_sTempText.size\('
