YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
路径。 更多...
#include <yfilesys.h>
类 | |
class | iterator |
Public 类型 | |
typedef GSStringTemplate < ucs2_t >::basic_string | StringType |
内部字符串类型。 | |
typedef iterator | const_iterator |
Public 成员函数 | |
Path ()=default | |
无参数构造:默认实现。 | |
Path (const Path &)=default | |
复制构造:默认实现。 | |
Path (Path &&)=default | |
转移构造:默认实现。 | |
Path (const ucs2_t *pathstr) | |
Path (const NativePathCharType *pathstr) | |
Path (const NativeString &pathstr) | |
template<class _tString > | |
Path (const _tString &pathstr) | |
~Path ()=default | |
Path & | operator= (const Path &)=default |
复制赋值:默认实现。 | |
Path & | operator= (Path &&)=default |
转移赋值:默认实现。 | |
Path & | operator/= (const Path &) |
bool | IsAbsolute () const ynothrow |
bool | IsRelative () const ynothrow |
bool | IsDirectory () const |
判断是否表示目录。 | |
bool | HasRootName () const |
判断是否有根名称。 | |
bool | HasRootDirectory () const |
判断是否有根目录。 | |
bool | HasRootPath () const |
判断是否有根路径。 | |
bool | HasRelativePath () const |
判断是否有相对路径。 | |
bool | HasParentPath () const |
判断是否有父路径。 | |
bool | HasFilename () const |
判断是否有文件名。 | |
bool | HasStem () const |
判断是否有主文件名。 | |
bool | HasExtension () const |
判断是否有扩展名。 | |
Path | GetRootName () const |
取根名称。 | |
Path | GetRootDirectory () const |
取根目录。 | |
Path | GetRootPath () const |
取根路径。 | |
Path | GetRelativePath () const |
取相对路径。 | |
Path | GetParentPath () const |
取父路径。 | |
Path | GetFilename () const |
取文件名。 | |
Path | GetStem () const |
取主文件名。 | |
Path | GetExtension () const |
取扩展名。 | |
NativeString | GetNativeString () const ynothrow |
取本地格式和编码的字符串。 | |
iterator | begin () const |
取起始迭代器。 | |
iterator | end () const |
取终止迭代器。 | |
Path & | MakeAbsolute (const Path &) |
构造绝对路径。 | |
bool | NormalizeTrailingSlash () |
正规化结尾分隔符:根据路径表示的实体修正结尾 Slash 。 | |
Path & | RemoveFilename () |
移除文件名。 | |
Path & | ReplaceExtension (const Path &={}) |
替换扩展名。 | |
静态 Public 属性 | |
static yconstexpr ucs2_t | Slash = YCL_PATH_DELIMITER |
static const Path | Now |
static const Path | Parent |
在文件 yfilesys.h 第 164 行定义.
typedef GSStringTemplate<ucs2_t>::basic_string YSLib::IO::Path::StringType |
内部字符串类型。
在文件 yfilesys.h 第 69 行定义.
|
inlinedefault |
无参数构造:默认实现。
|
inlinedefault |
复制构造:默认实现。
|
inlinedefault |
转移构造:默认实现。
|
inline |
在文件 yfilesys.h 第 182 行定义.
|
inline |
在文件 yfilesys.h 第 185 行定义.
|
inline |
在文件 yfilesys.h 第 188 行定义.
|
inline |
在文件 yfilesys.h 第 192 行定义.
|
inlinedefault |
|
inline |
|
inline |
Path Path::GetExtension | ( | ) | const |
取扩展名。
在文件 yfilesys.cpp 第 139 行定义.
Path Path::GetFilename | ( | ) | const |
|
inline |
取本地格式和编码的字符串。
在文件 yfilesys.h 第 330 行定义.
参考自 GetDesktopDownHandle(),ShlTextReader::LoadFile(),YSLib::IO::operator<(),YSLib::IO::operator==(),YSLib::IO::ValidatePath() , 以及 ShlTextReader::~ShlTextReader().
Path Path::GetParentPath | ( | ) | const |
Path Path::GetRelativePath | ( | ) | const |
Path Path::GetRootDirectory | ( | ) | const |
Path Path::GetRootName | ( | ) | const |
Path Path::GetRootPath | ( | ) | const |
取根路径。
在文件 yfilesys.cpp 第 114 行定义.
Path Path::GetStem | ( | ) | const |
取主文件名。
在文件 yfilesys.cpp 第 134 行定义.
|
inline |
判断是否有扩展名。
在文件 yfilesys.h 第 283 行定义.
|
inline |
判断是否有文件名。
在文件 yfilesys.h 第 267 行定义.
|
inline |
判断是否有父路径。
在文件 yfilesys.h 第 259 行定义.
|
inline |
判断是否有相对路径。
在文件 yfilesys.h 第 251 行定义.
|
inline |
判断是否有根目录。
在文件 yfilesys.h 第 235 行定义.
|
inline |
判断是否有根名称。
在文件 yfilesys.h 第 227 行定义.
|
inline |
判断是否有根路径。
在文件 yfilesys.h 第 243 行定义.
|
inline |
判断是否有主文件名。
在文件 yfilesys.h 第 275 行定义.
|
inline |
在文件 yfilesys.h 第 214 行定义.
bool Path::IsDirectory | ( | ) | const |
判断是否表示目录。
在文件 yfilesys.cpp 第 96 行定义.
参考自 YSLib::IO::FileList::operator=().
|
inline |
构造绝对路径。
在文件 yfilesys.cpp 第 145 行定义.
bool Path::NormalizeTrailingSlash | ( | ) |
正规化结尾分隔符:根据路径表示的实体修正结尾 Slash 。
当路径表示目录时保证以 Slash 结尾,否则若存在结尾的 Slash 则删除。
在文件 yfilesys.cpp 第 152 行定义.
参考 platform_ex::IsDirectory() , 以及 YB_UNLIKELY.
在文件 yfilesys.cpp 第 72 行定义.
参考 begin(),YSLib::end(),end(),YSLib::IO::FS_Parent(),platform_ex::IsDirectory() , 以及 IsRelative().
Path & Path::RemoveFilename | ( | ) |
移除文件名。
在文件 yfilesys.cpp 第 177 行定义.
替换扩展名。
在文件 yfilesys.cpp 第 184 行定义.
|
static |
在文件 yfilesys.h 第 73 行定义.
|
static |
在文件 yfilesys.h 第 74 行定义.
|
static |
在文件 yfilesys.h 第 72 行定义.