WPILibC++ 2023.4.3
|
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 |
using | value_type = const path |
using | difference_type = std::ptrdiff_t |
using | pointer = const path * |
using | reference = const path & |
using | iterator_category = std::bidirectional_iterator_tag |
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 |
iterator () | |
iterator (const path &p, const impl_string_type::const_iterator &pos) | |
iterator & | operator++ () |
iterator | operator++ (int) |
iterator & | operator-- () |
iterator | operator-- (int) |
bool | operator== (const iterator &other) const |
bool | operator!= (const iterator &other) const |
reference | operator* () const |
pointer | operator-> () const |
template<> | |
path & | assign (const path &source) |
template<> | |
path & | append (const path &p) |
Friends | |
class | directory_iterator |
class | path |
void | swap (path &lhs, path &rhs) noexcept |
size_t | hash_value (const path &p) noexcept |
path | canonical (const path &p, std::error_code &ec) |
using ghc::filesystem::path::difference_type = std::ptrdiff_t |
using ghc::filesystem::path::iterator_category = std::bidirectional_iterator_tag |
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::pointer = const path* |
using ghc::filesystem::path::reference = const path& |
using ghc::filesystem::path::string_type = std::basic_string<value_type> |
using ghc::filesystem::path::value_type = const path |
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. |
|
noexcept |
GHC_INLINE ghc::filesystem::path::path | ( | const path & | p | ) |
|
noexcept |
GHC_INLINE ghc::filesystem::path::path | ( | string_type && | source, |
format | fmt = auto_format |
||
) |
|
inline |
|
inline |
GHC_INLINE ghc::filesystem::path::~path | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
GHC_INLINE path & ghc::filesystem::path::assign | ( | path::string_type && | source | ) |
GHC_INLINE path::iterator ghc::filesystem::path::begin | ( | ) | const |
|
noexcept |
|
noexcept |
|
noexcept |
GHC_INLINE int ghc::filesystem::path::compare | ( | const string_type & | s | ) | const |
GHC_INLINE int ghc::filesystem::path::compare | ( | const value_type * | s | ) | const |
|
inline |
|
inline |
|
noexcept |
GHC_INLINE path::iterator ghc::filesystem::path::end | ( | ) | const |
GHC_INLINE path ghc::filesystem::path::extension | ( | ) | const |
GHC_INLINE path ghc::filesystem::path::filename | ( | ) | const |
GHC_INLINE std::string ghc::filesystem::path::generic_string | ( | ) | const |
|
inline |
GHC_INLINE std::u16string ghc::filesystem::path::generic_u16string | ( | ) | const |
GHC_INLINE std::u32string ghc::filesystem::path::generic_u32string | ( | ) | const |
GHC_INLINE std::string ghc::filesystem::path::generic_u8string | ( | ) | const |
GHC_INLINE std::wstring ghc::filesystem::path::generic_wstring | ( | ) | const |
GHC_INLINE bool ghc::filesystem::path::has_extension | ( | ) | const |
GHC_INLINE bool ghc::filesystem::path::has_filename | ( | ) | const |
GHC_INLINE bool ghc::filesystem::path::has_parent_path | ( | ) | const |
GHC_INLINE bool ghc::filesystem::path::has_relative_path | ( | ) | const |
GHC_INLINE bool ghc::filesystem::path::has_root_directory | ( | ) | const |
GHC_INLINE bool ghc::filesystem::path::has_root_name | ( | ) | const |
GHC_INLINE bool ghc::filesystem::path::has_root_path | ( | ) | const |
GHC_INLINE bool ghc::filesystem::path::has_stem | ( | ) | const |
GHC_INLINE bool ghc::filesystem::path::is_absolute | ( | ) | const |
GHC_INLINE bool ghc::filesystem::path::is_relative | ( | ) | const |
ghc::filesystem::path::iterator | ( | ) |
ghc::filesystem::path::iterator | ( | const path & | p, |
const impl_string_type::const_iterator & | pos | ||
) |
GHC_INLINE path ghc::filesystem::path::lexically_normal | ( | ) | const |
GHC_INLINE path ghc::filesystem::path::lexically_proximate | ( | const path & | base | ) | const |
GHC_INLINE path ghc::filesystem::path::lexically_relative | ( | const path & | base | ) | const |
GHC_INLINE path & ghc::filesystem::path::make_preferred | ( | ) |
|
noexcept |
GHC_INLINE ghc::filesystem::path::operator path::string_type | ( | ) | const |
bool ghc::filesystem::path::operator!= | ( | const iterator & | other | ) | const |
reference ghc::filesystem::path::operator* | ( | ) | const |
iterator & ghc::filesystem::path::operator++ | ( | ) |
iterator ghc::filesystem::path::operator++ | ( | int | ) |
GHC_INLINE path & ghc::filesystem::path::operator+= | ( | const path & | x | ) |
|
inline |
GHC_INLINE path & ghc::filesystem::path::operator+= | ( | const string_type & | x | ) |
GHC_INLINE path & ghc::filesystem::path::operator+= | ( | const value_type * | x | ) |
|
inline |
GHC_INLINE path & ghc::filesystem::path::operator+= | ( | value_type | x | ) |
iterator & ghc::filesystem::path::operator-- | ( | ) |
iterator ghc::filesystem::path::operator-- | ( | int | ) |
pointer ghc::filesystem::path::operator-> | ( | ) | const |
GHC_INLINE path & ghc::filesystem::path::operator/= | ( | const path & | p | ) |
|
inline |
GHC_INLINE path & ghc::filesystem::path::operator= | ( | const path & | p | ) |
|
inline |
|
noexcept |
GHC_INLINE path & ghc::filesystem::path::operator= | ( | path::string_type && | source | ) |
bool ghc::filesystem::path::operator== | ( | const iterator & | other | ) | const |
GHC_INLINE path ghc::filesystem::path::parent_path | ( | ) | const |
GHC_INLINE path ghc::filesystem::path::relative_path | ( | ) | const |
GHC_INLINE path & ghc::filesystem::path::remove_filename | ( | ) |
GHC_INLINE path & ghc::filesystem::path::replace_extension | ( | const path & | replacement = path() | ) |
GHC_INLINE path & ghc::filesystem::path::replace_filename | ( | const path & | replacement | ) |
GHC_INLINE path ghc::filesystem::path::root_directory | ( | ) | const |
GHC_INLINE path ghc::filesystem::path::root_name | ( | ) | const |
GHC_INLINE path ghc::filesystem::path::root_path | ( | ) | const |
GHC_INLINE path ghc::filesystem::path::stem | ( | ) | const |
GHC_INLINE std::string ghc::filesystem::path::string | ( | ) | const |
|
inline |
|
noexcept |
GHC_INLINE std::u16string ghc::filesystem::path::u16string | ( | ) | const |
GHC_INLINE std::u32string ghc::filesystem::path::u32string | ( | ) | const |
GHC_INLINE std::string ghc::filesystem::path::u8string | ( | ) | const |
GHC_INLINE std::wstring ghc::filesystem::path::wstring | ( | ) | const |
|
friend |
|
friend |
|
friend |