Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Removes all instances of the specified character from the string.
int Remove(
XCHAR chRemove
);
Parameters
- chRemove
The character to be removed from a string.
Return Value
The count of characters removed from the string. Zero if the string is not changed.
Remarks
Comparisons for the character are case sensitive.
Example
// 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."));
Requirements
Header: cstringt.h