##CString to sed::string CString std::wstring '(\.|\>)(\s*)\s*\(' '\1\02size\(' '(\.|\>)(\s*)\s*\(' '\1\02empty\(' '(\.|\>)(\s*)\s*\(' '\1substr\(0, ' '(\.|\>)(\s*)\s*\(' '\1substr\(' '\.\s*\s*\(([^)]+)\)' '\[\1\]' '\.\s*\s*\(' '.erase\(' '\.\s*\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\('