void FString::StripChars (char killchar) { if (killchar == '\0') return; StripChars([&killchar](char c){ return c == killchar; }); }
void FString::StripChars (const char *killcharset) { if (killcharset == NULL || killcharset[0] == '\0') return; StripChars([&killcharset](char c){ return strchr(killcharset, c) != NULL; }); }
void CS34XML::CleanInput(char *pBuffer) { if (pBuffer==NULL) return; StripChars(pBuffer); StripLeadingSpaces(pBuffer); StripTrailingSpaces(pBuffer); StripBeginningAndEndingQoutes(pBuffer); }
void nsTString_CharT::StripWhitespace() { StripChars(kWhitespace); }