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

| yconstexpr const ucs2_t* YSLib::IO::FS_Now_X | ( | u"." | ) |
| yconstexpr const_path_t YSLib::IO::FS_Parent | ( | ".." | ) |
| yconstexpr const ucs2_t* YSLib::IO::FS_Parent_X | ( | u".." | ) |
| 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 | ) |
| YF_API const char* YSLib::IO::GetExtensionOf | ( | const char * | ) |
截取文件名末尾的扩展名。
在文件 yfilesys.cpp 第 278 行定义.
参考自 HaveSameExtensions(),HaveSameStems() , 以及 IsExtensionOf().

| YF_API const char* YSLib::IO::GetFileNameOf | ( | const_path_t | ) |
| YF_API String YSLib::IO::GetNowDirectory | ( | ) |
取当前工作目录。
在文件 yfilesys.cpp 第 360 行定义.
参考 platform::u16getcwd_n() , 以及 YCL_MAX_PATH_LENGTH.

| YF_API bool YSLib::IO::HaveSameExtensions | ( | const char * | , |
| const char * | |||
| ) |
| YF_API bool YSLib::IO::HaveSameExtensions | ( | const string & | , |
| const string & | |||
| ) |
判断指定两个文件名的扩展名是否相同。
| YF_API bool YSLib::IO::HaveSameStems | ( | const char * | , |
| const char * | |||
| ) |
判断指定两个文件名的主文件名是否相同。
在文件 yfilesys.cpp 第 257 行定义.
参考 GetExtensionOf() , 以及 yunseq().

| YF_API bool YSLib::IO::HaveSameStems | ( | const string & | , |
| 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::IsStemOf | ( | const char * | , |
| const char * | |||
| ) |
| YF_API bool YSLib::IO::IsStemOf | ( | const string & | , |
| const string & | |||
| ) |
对于两个字符串,判断前者是否是后者的主文件名。
|
inline |
在文件 yfilesys.h 第 386 行定义.
|
inline |
在文件 yfilesys.h 第 411 行定义.
|
inline |
|
inline |
在文件 yfilesys.h 第 396 行定义.
|
inline |
|
inline |
在文件 yfilesys.h 第 400 行定义.
|
inline |
在文件 yfilesys.h 第 405 行定义.
| YF_API string::size_type YSLib::IO::SplitPath | ( | const string & | , |
| string & | , | ||
| string & | |||
| ) |
截取路径中的目录名和文件名保存至字符串,并返回最后一个目录分隔符的位置。
|
inline |
交换。
在文件 yfilesys.h 第 420 行定义.
| YF_API bool YSLib::IO::ValidatePath | ( | const string & | ) |
验证绝对路径有效性。
|
inline |
验证绝对路径有效性。
在文件 yfilesys.h 第 557 行定义.
参考 YSLib::IO::Path::GetNativeString() , 以及 ValidatePath().
