library of assembled shared sources |
http://lass.cocamware.com |
Functions | |
bool | lass::io::fileDoesExist (const std::string &iFileName) |
return true if file exists | |
std::string | lass::io::fileExtension (const std::string &iFileName) |
return the part of the file name behind the last dot. | |
std::string | lass::io::fileWithoutExtension (const std::string &iFileName) |
return the part of the file name before the last dot. | |
std::string | lass::io::filePath (const std::string &iFileName) |
return the part of the file name before the last (back)slash. | |
std::string | lass::io::fileWithoutPath (const std::string &iFileName) |
return the part of the file name behind the last (back)slash. | |
std::string | lass::io::fileJoinExtension (const std::string &iFilename, const std::string &iExtension) |
std::string | lass::io::fileJoinPath (const std::string &iPath, const std::string &iFilename) |
LASS_DLL bool LASS_CALL lass::io::fileDoesExist | ( | const std::string & | iFileName | ) |
LASS_DLL std::string LASS_CALL lass::io::fileExtension | ( | const std::string & | iFileName | ) |
return the part of the file name behind the last dot.
return an empty string if there's no dot. e.g. foo returns an empty string, foo.bar returns bar, foo.bar.fun returns fun.
Definition at line 94 of file file_attribute.cpp.
References lass::io::extensionSeperator.
Referenced by lass::io::Image::open(), and lass::io::Image::save().
LASS_DLL std::string LASS_CALL lass::io::fileWithoutExtension | ( | const std::string & | iFileName | ) |
return the part of the file name before the last dot.
return an original string if there's no dot. e.g. foo returns foo, foo.bar returns foo, foo.bar.fun returns foo.bar .
Definition at line 108 of file file_attribute.cpp.
References lass::io::extensionSeperator.
LASS_DLL std::string LASS_CALL lass::io::filePath | ( | const std::string & | iFileName | ) |
return the part of the file name before the last (back)slash.
return an empty string if there's no (back)slash. e.g. foo returns an empty string, foo/bar returns foo, foo/bar/fun returns foo/bar.
Definition at line 121 of file file_attribute.cpp.
References lass::io::pathAlternativeSeperator, and lass::io::pathSeperator.
LASS_DLL std::string LASS_CALL lass::io::fileWithoutPath | ( | const std::string & | iFileName | ) |
return the part of the file name behind the last (back)slash.
return the original string if there's no (back)slash. e.g. foo returns foo, foo/bar returns bar, foo/bar/fun returns fun .
Definition at line 136 of file file_attribute.cpp.
References lass::io::pathAlternativeSeperator, and lass::io::pathSeperator.
LASS_DLL std::string LASS_CALL lass::io::fileJoinExtension | ( | const std::string & | iFilename, | |
const std::string & | iExtension | |||
) |
Definition at line 147 of file file_attribute.cpp.
References lass::stde::begins_with(), and lass::io::extensionSeperator.
LASS_DLL std::string LASS_CALL lass::io::fileJoinPath | ( | const std::string & | iPath, | |
const std::string & | iFilename | |||
) |
Definition at line 161 of file file_attribute.cpp.
References lass::stde::ends_with(), lass::io::pathAlternativeSeperator, and lass::io::pathSeperator.
Generated on Mon Nov 10 14:22:06 2008 for Library of Assembled Shared Sources by 1.5.7.1 |