CStringT::Remove |
Send Feedback on this topic to Microsoft.
|
View this topic online in your default browser.
|
Removes all instances of the specified character from the string.
// typedef CStringT<TCHAR, StrTraitATL<TCHAR, ChTraitsCRT<TCHAR>>> CAtlString; CAtlString str(_T("This is a test.")); int n = str.Remove(_T('t')); ASSERT(n == 2); ASSERT(str == _T("This is a es."));
// typedef CStringT<TCHAR, StrTraitATL<TCHAR, ChTraitsCRT<TCHAR>>> CAtlString; CAtlString str(_T("This is a test.")); int n = str.Remove(_T('t')); ASSERT(n == 2); ASSERT(str == _T("This is a es."));