Subversion Repositories spk

Rev

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

Rev 123 Rev 124
Line 796... Line 796...
796
{
796
{
797
	if ( m_sFilename.empty() ) return Utils::String::Null();
797
	if ( m_sFilename.empty() ) return Utils::String::Null();
798
	return m_sFilename.token(".", -1);
798
	return m_sFilename.token(".", -1);
799
}
799
}
800
 
800
 
801
CyString CFileIO::ChangeFileExtension ( CyString ext )
801
CyString CFileIO::ChangeFileExtension(CyString ext) const
-
 
802
{
-
 
803
	return changeFileExtension(ext.ToString());
-
 
804
}
-
 
805
Utils::String CFileIO::changeFileExtension(const Utils::String &ext) const
802
{
806
{
803
	if ( m_sFilename.empty() )
807
	if ( m_sFilename.empty() )
804
		return NullString;
808
		return Utils::String::Null();
805
	
809
	
806
	return m_sFilename.tokens(".", 1, -2) + "." + ext.ToString();
810
	return m_sFilename.tokens(".", 1, -2) + "." + ext;
807
}
811
}
808
 
812
 
809
bool CFileIO::Remove(const Utils::String &rem)
813
bool CFileIO::Remove(const Utils::String &rem)
810
{
814
{
811
	//if ( !Exists() ) return false;
815
	//if ( !Exists() ) return false;