YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
平台无关的文件系统抽象。 更多...
类 | |
class | YSLib::IO::Path |
路径。 更多... | |
class | YSLib::IO::Path::iterator |
class | YSLib::IO::FileList |
文件列表模块。 更多... | |
命名空间 | |
namespace | YSLib |
namespace | YSLib::IO |
类型定义 | |
typedef GSStringTemplate < NativePathCharType > ::basic_string | YSLib::IO::NativeString |
本机字符串。 | |
函数 | |
const auto | YSLib::IO::CP_Path (Text::CS_Default) |
路径编码。 | |
bool | YSLib::IO::operator== (const Path &x, const Path &y) |
bool | YSLib::IO::operator!= (const Path &x, const Path &y) |
bool | YSLib::IO::operator< (const Path &x, const Path &y) |
bool | YSLib::IO::operator<= (const Path &x, const Path &y) |
bool | YSLib::IO::operator> (const Path &x, const Path &y) |
bool | YSLib::IO::operator>= (const Path &x, const Path &y) |
Path | YSLib::IO::operator/ (const Path &x, const Path &y) |
void | YSLib::IO::swap (Path &x, Path &y) |
交换。 | |
YF_API const char * | YSLib::IO::GetFileNameOf (const_path_t) |
截取路径末尾的文件名。 | |
YF_API string | YSLib::IO::GetFileNameOf (const string &) |
截取路径末尾的文件名。 | |
YF_API string | YSLib::IO::GetDirectoryNameOf (const string &) |
截取路径中的目录名并返回字符串。 | |
YF_API string::size_type | YSLib::IO::SplitPath (const string &, string &, string &) |
截取路径中的目录名和文件名保存至字符串,并返回最后一个目录分隔符的位置。 | |
YF_API string | YSLib::IO::GetStemOf (const string &) |
截取文件名开头的主文件名。 | |
YF_API bool | YSLib::IO::IsStemOf (const char *, const char *) |
对于两个字符串,判断前者是否是后者的主文件名。 | |
YF_API bool | YSLib::IO::IsStemOf (const string &, const string &) |
对于两个字符串,判断前者是否是后者的主文件名。 | |
YF_API bool | YSLib::IO::HaveSameStems (const char *, const char *) |
判断指定两个文件名的主文件名是否相同。 | |
YF_API bool | YSLib::IO::HaveSameStems (const string &, const string &) |
判断指定两个文件名的主文件名是否相同。 | |
YF_API const char * | YSLib::IO::GetExtensionOf (const char *) |
截取文件名末尾的扩展名。 | |
YF_API string | YSLib::IO::GetExtensionOf (const string &) |
截取文件名末尾的扩展名。 | |
YF_API bool | YSLib::IO::IsExtensionOf (const char *, const char *) |
对于两个字符串,判断前者是否是后者的扩展名。 | |
YF_API bool | YSLib::IO::IsExtensionOf (const string &, const string &) |
对于两个字符串,判断前者是否是后者的扩展名。 | |
YF_API bool | YSLib::IO::HaveSameExtensions (const char *, const char *) |
判断指定两个文件名的扩展名是否相同。 | |
YF_API bool | YSLib::IO::HaveSameExtensions (const string &, const string &) |
判断指定两个文件名的扩展名是否相同。 | |
int | YSLib::IO::ChangeDirectory (const_path_t path) |
切换路径。 | |
YF_API int | YSLib::IO::ChangeDirectory (const string &) |
切换路径。 | |
YF_API String | YSLib::IO::GetNowDirectory () |
取当前工作目录。 | |
YF_API bool | YSLib::IO::ValidatePath (const string &) |
验证绝对路径有效性。 | |
bool | YSLib::IO::ValidatePath (const Path &path) |
验证绝对路径有效性。 | |
yconstexpr const_path_t | YSLib::IO::FS_Root (YCL_PATH_ROOT) |
文件系统常量:前缀 FS 表示文件系统 (File System) 。 | |
yconstexpr const_path_t | YSLib::IO::FS_Seperator (YCL_PATH_SEPERATOR) |
yconstexpr const_path_t | YSLib::IO::FS_Now (".") |
yconstexpr const_path_t | YSLib::IO::FS_Parent ("..") |
yconstexpr const ucs2_t * | YSLib::IO::FS_Now_X (u".") |
yconstexpr const ucs2_t * | YSLib::IO::FS_Parent_X (u"..") |
平台无关的文件系统抽象。
在文件 yfilesys.h 中定义.