Lines Matching defs:Path

1 //===- Path.cpp -----------------------------------------------------------===//
11 #include <mcld/Support/Path.h>
32 const Path::StringType separator_str("/");
40 const Path::StringType separator_str("/");
47 // Path
49 Path::Path()
53 Path::Path(const Path::ValueType* s )
57 Path::Path(const Path::StringType &s )
61 Path::Path(const Path& pCopy)
65 Path::~Path()
69 bool Path::isFromRoot() const
76 bool Path::isFromPWD() const
83 Path& Path::assign(const Path::StringType &s)
89 Path& Path::assign(const Path::ValueType* s, unsigned int length)
92 assert(0 && "assign a null or empty string to Path");
98 Path& Path::append(const Path& pPath)
122 bool Path::empty() const
127 Path::StringType Path::generic_string() const
134 bool Path::canonicalize()
139 Path::StringType::size_type Path::m_append_separator_if_needed()
156 void Path::m_erase_redundant_separator(Path::StringType::size_type pSepPos)
172 Path Path::parent_path() const
176 return Path(m_PathName.substr(0, end_pos));
177 return Path();
180 Path Path::filename() const
185 return Path(m_PathName.substr(pos));
187 return Path(*this);
190 Path Path::stem() const
194 Path result_path(m_PathName.substr(begin_pos, end_pos - begin_pos));
198 Path Path::extension() const
202 return Path();
203 return Path(m_PathName.substr(pos));
209 bool mcld::sys::fs::operator==(const Path& pLHS,const Path& pRHS)
214 bool mcld::sys::fs::operator!=(const Path& pLHS,const Path& pRHS)
219 Path mcld::sys::fs::operator+(const Path& pLHS, const Path& pRHS)
221 mcld::sys::fs::Path result = pLHS;