Subversion Repositories spk

Rev

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

Rev 81 Rev 82
Line 423... Line 423...
423
}
423
}
424

424

425
String String::removeIf(int iChar, char c) const
425
String String::removeIf(int iChar, char c) const
426
{
426
{
427
	Utils::String newStr = *this;
427
	Utils::String newStr = *this;
-
 
428
	if ( newStr.empty() ) return newStr;
428
	if ( this->at(iChar) == c ) newStr.erase(iChar, 1);
429
	if ( this->at(iChar) == c ) newStr.erase(iChar, 1);
429
	return newStr;
430
	return newStr;
430
}
431
}
431

432

432
String String::stripHtml() const
433
String String::stripHtml() const
Line 787... Line 788...
787
	return (*this);
788
	return (*this);
788
}
789
}
789

790

790
const String &String::toFilename()
791
const String &String::toFilename()
791
{
792
{
792
	(*this).findReplace("\\", "/").findReplace("//", "/").removeIf(0, '/');
793
	(*this) = (*this).findReplace("\\", "/").findReplace("//", "/").removeIf(0, '/');
793
	return (*this);
794
	return (*this);
794
}
795
}
795
String String::asFilename() const
796
String String::asFilename() const
796
{
797
{
797
	Utils::String sFile(*this);
798
	Utils::String sFile(*this);