|
YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
平台无关的文件系统抽象。 更多...

函数 | |
| const char * | GetFileNameOf (const_path_t path) |
| string | GetFileNameOf (const string &path) |
| string | GetDirectoryNameOf (const string &path) |
| string::size_type | SplitPath (const string &path, string &directory, string &file) |
| string | GetStemOf (const string &name) |
| bool | IsStemOf (const char *str, const char *name) |
| 对于两个字符串,判断前者是否是后者的主文件名。 | |
| bool | IsStemOf (const string &str, const string &name) |
| bool | HaveSameStems (const char *a, const char *b) |
| 判断指定两个文件名的主文件名是否相同。 | |
| bool | HaveSameStems (const string &a, const string &b) |
| const char * | GetExtensionOf (const char *name) |
| 截取文件名末尾的扩展名。 | |
| string | GetExtensionOf (const string &name) |
| bool | IsExtensionOf (const char *str, const char *name) |
| 对于两个字符串,判断前者是否是后者的扩展名。 | |
| bool | IsExtensionOf (const string &str, const string &name) |
| bool | HaveSameExtensions (const char *a, const char *b) |
| 判断指定两个文件名的扩展名是否相同。 | |
| bool | HaveSameExtensions (const string &a, const string &b) |
| int | ChangeDirectory (const string &path) |
| String | GetNowDirectory () |
| 取当前工作目录。 | |
| bool | ValidatePath (const string &pathstr) |
平台无关的文件系统抽象。
在文件 yfilesys.cpp 中定义.
| int ChangeDirectory | ( | const string & | path | ) |
在文件 yfilesys.cpp 第 337 行定义.
参考 YB_UNLIKELY , 以及 YCL_MAX_PATH_LENGTH.
| string GetDirectoryNameOf | ( | const string & | path | ) |
在文件 yfilesys.cpp 第 211 行定义.
| const char* GetExtensionOf | ( | const char * | ) |
截取文件名末尾的扩展名。
在文件 yfilesys.cpp 第 278 行定义.
参考自 HaveSameExtensions(),HaveSameStems() , 以及 IsExtensionOf().

| string GetExtensionOf | ( | const string & | name | ) |
在文件 yfilesys.cpp 第 288 行定义.
| const char* GetFileNameOf | ( | const_path_t | path | ) |
在文件 yfilesys.cpp 第 193 行定义.
| string GetFileNameOf | ( | const string & | path | ) |
在文件 yfilesys.cpp 第 203 行定义.
| String GetNowDirectory | ( | ) |
取当前工作目录。
在文件 yfilesys.cpp 第 360 行定义.
参考 platform::u16getcwd_n() , 以及 YCL_MAX_PATH_LENGTH.

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

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

| bool HaveSameStems | ( | const string & | a, |
| const string & | b | ||
| ) |
| bool IsExtensionOf | ( | const char * | str, |
| const char * | name | ||
| ) |
| bool IsExtensionOf | ( | const string & | str, |
| const string & | name | ||
| ) |
| bool IsStemOf | ( | const char * | str, |
| const char * | name | ||
| ) |
| bool IsStemOf | ( | const string & | str, |
| const string & | name | ||
| ) |
在文件 yfilesys.cpp 第 249 行定义.
| string::size_type SplitPath | ( | const string & | path, |
| string & | directory, | ||
| string & | file | ||
| ) |
| bool ValidatePath | ( | const string & | pathstr | ) |
在文件 yfilesys.cpp 第 369 行定义.
参考自 GetDesktopDownHandle() , 以及 YSLib::IO::ValidatePath().
