Beispiel #1
0
void FString::StripChars (char killchar)
{
	if (killchar == '\0')
		return;

	StripChars([&killchar](char c){ return c == killchar; });
}
Beispiel #2
0
void FString::StripChars (const char *killcharset)
{
	if (killcharset == NULL || killcharset[0] == '\0')
		return;

	StripChars([&killcharset](char c){ return strchr(killcharset, c) != NULL; });
}
Beispiel #3
0
void CS34XML::CleanInput(char *pBuffer)
{
	if (pBuffer==NULL)
		return;
	StripChars(pBuffer);
	StripLeadingSpaces(pBuffer);
	StripTrailingSpaces(pBuffer);
	StripBeginningAndEndingQoutes(pBuffer);
}
void
nsTString_CharT::StripWhitespace()
  {
    StripChars(kWhitespace);
  }