Lines Matching defs:Path
1 //===- Path.h -------------------------------------------------------------===//
38 /** \class Path
39 * \brief Path provides an abstraction for the path to a file or directory in
42 * FIXME: current Path library only support UTF-8 chararcter set.
45 class Path
56 Path();
57 Path(const ValueType* s);
58 Path(const StringType &s);
59 Path(const Path& pCopy);
60 virtual ~Path();
64 Path& assign(InputIterator begin, InputIterator end);
65 Path& assign(const StringType &s);
66 Path& assign(const ValueType* s, unsigned int length);
70 Path& append(InputIterator begin, InputIterator end);
71 Path& append(const Path& pPath);
91 Path parent_path() const;
92 Path stem() const;
93 Path extension() const;
107 bool operator==(const Path& pLHS,const Path& pRHS);
108 bool operator!=(const Path& pLHS,const Path& pRHS);
109 Path operator+(const Path& pLHS, const Path& pRHS);
122 bool exists(const Path &pPath);
124 bool is_directory(const Path &pPath);
127 std::ostream &operator<<(std::ostream& pOS, const Path& pPath);
129 std::istream &operator>>(std::istream& pOS, Path& pPath);
131 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Path &pPath);
138 Path& Path::assign(InputIterator begin, InputIterator end)
147 Path& Path::append(InputIterator begin, InputIterator end)
168 struct less<mcld::sys::fs::Path> : public binary_function<mcld::sys::fs::Path,
169 mcld::sys::fs::Path,
172 bool operator() (const mcld::sys::fs::Path& pX,const mcld::sys::fs::Path& pY) const {