🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::fs_simple::path类 参考

Public 成员函数

 path (const char_type *source)
 
 path (const string_type &source)
 
std::string string () const
 
const string_type & native () const
 
const char_type * c_str () const
 
path filename () const
 
path extension () const
 
path stem () const
 
path parent_path () const
 
bool is_absolute () const
 
bool is_relative () const
 
AST_UTIL_API path lexically_relative (const path &base) const
 
bool empty () const
 
path operator/ (const path &other) const
 
pathoperator/= (const path &other)
 
 operator string_type () const
 

静态 Public 成员函数

static bool is_separator (char_type c)
 
static const char_type * separators ()
 
static char_type preferred_separator ()
 

成员函数说明

◆ lexically_relative()

path ast::fs_simple::path::lexically_relative ( const path & base) const

词法上计算当前路径相对于 base 的相对路径

不检查文件系统,纯词法操作。若不存在相对路径则返回空路径

◆ stem()

path ast::fs_simple::path::stem ( ) const
inline

获取文件名的无扩展名部分

返回
提取路径中最后一个文件名的主干部分(即去掉扩展名后的文件名)

该类的文档由以下文件生成: