sisi4s
|
#include <filesystem.hpp>
Public Types | |
enum | format { generic_format , native_format , auto_format } |
The path format in which the constructor argument is given. More... | |
using | string_type = std::basic_string< value_type > |
template<typename T1 , typename T2 = void> | |
using | path_type = typename std::enable_if<!std::is_same< path, T1 >::value, path >::type |
template<typename T > | |
using | path_from_string = typename std::enable_if< _is_basic_string< T >::value||std::is_same< char const *, typename std::decay< T >::type >::value||std::is_same< char *, typename std::decay< T >::type >::value||std::is_same< char16_t const *, typename std::decay< T >::type >::value||std::is_same< char16_t *, typename std::decay< T >::type >::value||std::is_same< char32_t const *, typename std::decay< T >::type >::value||std::is_same< char32_t *, typename std::decay< T >::type >::value||std::is_same< wchar_t const *, typename std::decay< T >::type >::value||std::is_same< wchar_t *, typename std::decay< T >::type >::value, path >::type |
template<typename T > | |
using | path_type_EcharT = typename std::enable_if< std::is_same< T, char >::value||std::is_same< T, char16_t >::value||std::is_same< T, char32_t >::value||std::is_same< T, wchar_t >::value, path >::type |
using | const_iterator = iterator |
Public Member Functions | |
path () noexcept | |
path (const path &p) | |
path (path &&p) noexcept | |
path (string_type &&source, format fmt=auto_format) | |
template<class Source , typename = path_from_string<Source>> | |
path (const Source &source, format fmt=auto_format) | |
template<class InputIterator > | |
path (InputIterator first, InputIterator last, format fmt=auto_format) | |
~path () | |
path & | operator= (const path &p) |
path & | operator= (path &&p) noexcept |
path & | operator= (string_type &&source) |
path & | assign (string_type &&source) |
template<class Source > | |
path & | operator= (const Source &source) |
template<class Source > | |
path & | assign (const Source &source) |
template<class InputIterator > | |
path & | assign (InputIterator first, InputIterator last) |
path & | operator/= (const path &p) |
template<class Source > | |
path & | operator/= (const Source &source) |
template<class Source > | |
path & | append (const Source &source) |
template<class InputIterator > | |
path & | append (InputIterator first, InputIterator last) |
path & | operator+= (const path &x) |
path & | operator+= (const string_type &x) |
path & | operator+= (const value_type *x) |
path & | operator+= (value_type x) |
template<class Source > | |
path_from_string< Source > & | operator+= (const Source &x) |
template<class EcharT > | |
path_type_EcharT< EcharT > & | operator+= (EcharT x) |
template<class Source > | |
path & | concat (const Source &x) |
template<class InputIterator > | |
path & | concat (InputIterator first, InputIterator last) |
void | clear () noexcept |
path & | make_preferred () |
path & | remove_filename () |
path & | replace_filename (const path &replacement) |
path & | replace_extension (const path &replacement=path()) |
void | swap (path &rhs) noexcept |
const string_type & | native () const noexcept |
const value_type * | c_str () const noexcept |
operator string_type () const | |
template<class EcharT , class traits = std::char_traits<EcharT>, class Allocator = std::allocator<EcharT>> | |
std::basic_string< EcharT, traits, Allocator > | string (const Allocator &a=Allocator()) const |
std::string | string () const |
std::wstring | wstring () const |
std::string | u8string () const |
std::u16string | u16string () const |
std::u32string | u32string () const |
template<class EcharT , class traits = std::char_traits<EcharT>, class Allocator = std::allocator<EcharT>> | |
std::basic_string< EcharT, traits, Allocator > | generic_string (const Allocator &a=Allocator()) const |
std::string | generic_string () const |
std::wstring | generic_wstring () const |
std::string | generic_u8string () const |
std::u16string | generic_u16string () const |
std::u32string | generic_u32string () const |
int | compare (const path &p) const noexcept |
int | compare (const string_type &s) const |
int | compare (const value_type *s) const |
path | root_name () const |
path | root_directory () const |
path | root_path () const |
path | relative_path () const |
path | parent_path () const |
path | filename () const |
path | stem () const |
path | extension () const |
bool | empty () const noexcept |
bool | has_root_name () const |
bool | has_root_directory () const |
bool | has_root_path () const |
bool | has_relative_path () const |
bool | has_parent_path () const |
bool | has_filename () const |
bool | has_stem () const |
bool | has_extension () const |
bool | is_absolute () const |
bool | is_relative () const |
path | lexically_normal () const |
path | lexically_relative (const path &base) const |
path | lexically_proximate (const path &base) const |
iterator | begin () const |
iterator | end () const |
template<> | |
path & | assign (const path &source) |
template<> | |
path & | append (const path &p) |
Friends | |
class | directory_iterator |
void | swap (path &lhs, path &rhs) noexcept |
size_t | hash_value (const path &p) noexcept |
path | canonical (const path &p, std::error_code &ec) |
bool | create_directories (const path &p, std::error_code &ec) noexcept |
using ghc::filesystem::path::path_from_string = typename std::enable_if<_is_basic_string<T>::value || std::is_same<char const*, typename std::decay<T>::type>::value || std::is_same<char*, typename std::decay<T>::type>::value || std::is_same<char16_t const*, typename std::decay<T>::type>::value || std::is_same<char16_t*, typename std::decay<T>::type>::value || std::is_same<char32_t const*, typename std::decay<T>::type>::value || std::is_same<char32_t*, typename std::decay<T>::type>::value || std::is_same<wchar_t const*, typename std::decay<T>::type>::value || std::is_same<wchar_t*, typename std::decay<T>::type>::value, path>::type |
using ghc::filesystem::path::path_type = typename std::enable_if<!std::is_same<path, T1>::value, path>::type |
using ghc::filesystem::path::path_type_EcharT = typename std::enable_if<std::is_same<T, char>::value || std::is_same<T, char16_t>::value || std::is_same<T, char32_t>::value || std::is_same<T, wchar_t>::value, path>::type |
using ghc::filesystem::path::string_type = std::basic_string<value_type> |
The path format in which the constructor argument is given.
Enumerator | |
---|---|
generic_format | The generic format, internally used by ghc::filesystem::path with slashes |
native_format | The format native to the current platform this code is build for |
auto_format | Try to auto-detect the format, fallback to native. |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |