Subversion Repositories spk

Rev

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

Rev 82 Rev 85
Line 87... Line 87...
87
	vsprintf (buffer, sFormat, args);
87
	vsprintf (buffer, sFormat, args);
88
	va_end (args);
88
	va_end (args);
89

89

90
	this->assign(buffer);
90
	this->assign(buffer);
91
	return (*this);
91
	return (*this);
-
 
92
}
-
 
93

-
 
94
String String::Null()
-
 
95
{
-
 
96
	return Utils::String();
92
}
97
}
93

98

94
String String::Format(const char *sFormat, ...)
99
String String::Format(const char *sFormat, ...)
95
{
100
{
96
	char buffer[1024];
101
	char buffer[1024];
Line 788... Line 793...
788
	return (*this);
793
	return (*this);
789
}
794
}
790

795

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