YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
yfilesys.h 文件参考

平台无关的文件系统抽象。 更多...

#include "ystring.h"
#include <iterator>
yfilesys.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

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"..")
 

详细描述

平台无关的文件系统抽象。

版本
r1401
作者
FrankHBfrank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
早于 build 132
创建时间:
2010-03-28 00:09:28 +0800
修改时间:
2013-01-21 02:57 +0800
文本编码:
UTF-8
模块名称:
YSLib::Core::YFileSystem

在文件 yfilesys.h 中定义.