Subversion Repositories spk

Rev

Rev 69 | Rev 81 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 69 Rev 78
Line 678... Line 678...
678
	return newstr;
678
	return newstr;
679
}
679
}
680

680

681
const String &String::removeChar(const char *cs)
681
const String &String::removeChar(const char *cs)
682
{
682
{
683
	char *current = cs;
683
	char *current = const_cast<char *>(cs);
684
	while ( current[0] != '\0' ) {
684
	while ( current[0] != '\0' ) {
685
		removeChar(current[0]);
685
		removeChar(current[0]);
686
		++current;
686
		++current;
687
	}
687
	}
-
 
688

-
 
689
	return (*this);
688
}
690
}
689

691

690
const String &String::removeChar(char c)
692
const String &String::removeChar(char c)
691
{
693
{
692
	std::string::size_type pos = this->find_first_of(c, 0);
694
	std::string::size_type pos = this->find_first_of(c, 0);