|
constexpr | path_view_component () noexcept |
| Constructs an empty path view component (DEVIATES from P1030, is not trivial due to C++ 14 compatibility)
|
|
constexpr | path_view_component (path_view_component p, format fmt) noexcept |
| Constructs a path view component identical to the input, except with different format interpretation.
|
|
| path_view_component (const filesystem::path &v, format fmt=auto_format) noexcept |
|
template<class Char , typename std::enable_if<(is_source_chartype_acceptable< Char >), bool >::type = true> |
constexpr | path_view_component (const std::basic_string< Char > &v, format fmt=binary_format) noexcept |
|
constexpr | path_view_component (const char *b, size_t l, enum termination zt, format fmt=binary_format) noexcept |
|
constexpr | path_view_component (const wchar_t *b, size_t l, enum termination zt, format fmt=binary_format) noexcept |
|
constexpr | path_view_component (const char8_t *b, size_t l, enum termination zt, format fmt=binary_format) noexcept |
|
constexpr | path_view_component (const char16_t *b, size_t l, enum termination zt, format fmt=binary_format) noexcept |
|
constexpr | path_view_component (const byte *b, size_t l, enum termination zt) noexcept |
|
template<class Char , typename std::enable_if<(is_source_chartype_acceptable< Char >), bool >::type = true> |
constexpr | path_view_component (const Char *s, format fmt=binary_format) noexcept |
|
constexpr | path_view_component (const byte *s) noexcept |
|
template<class Char , typename std::enable_if<(is_source_chartype_acceptable< Char >), bool >::type = true> |
constexpr | path_view_component (basic_string_view< Char > v, enum termination zt, format fmt=binary_format) noexcept |
|
constexpr | path_view_component (span< const byte > v, enum termination zt) noexcept |
|
template<class It , class End , typename std::enable_if<(is_source_chartype_acceptable< typename It::value_type >), bool >::type = true, typename std::enable_if<(is_source_chartype_acceptable< typename End::value_type >), bool >::type = true> |
constexpr | path_view_component (It b, End e, enum termination zt, format fmt=binary_format) noexcept |
|
template<class It , class End , typename std::enable_if<(is_source_chartype_acceptable< std::decay_t< It >>), bool >::type = true, typename std::enable_if<(is_source_chartype_acceptable< std::decay_t< End >>), bool >::type = true> |
constexpr | path_view_component (It *b, End *e, enum termination zt, format fmt=binary_format) noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
template<class It , class End , typename std::enable_if<(std::is_same< typename It::value_type, byte >::value), bool >::type = true, typename std::enable_if<(std::is_same< typename End::value_type, byte >::value), bool >::type = true> |
constexpr | path_view_component (It b, End e, enum termination zt) noexcept |
|
template<class It , class End , typename std::enable_if<(std::is_same< std::decay_t< It >, byte >::value), bool >::type = true, typename std::enable_if<(std::is_same< std::decay_t< End >, byte >::value), bool >::type = true> |
constexpr | path_view_component (It *b, End *e, enum termination zt) noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
| path_view_component (const path_view_component &)=default |
|
| path_view_component (path_view_component &&)=default |
|
path_view_component & | operator= (const path_view_component &)=default |
|
path_view_component & | operator= (path_view_component &&)=default |
|
const byte * | _raw_data () const noexcept |
|
constexpr void | swap (path_view_component &o) noexcept |
| Swap the view with another.
|
|
constexpr QUICKCPPLIB_NODISCARD bool | empty () const noexcept |
| True if empty.
|
|
constexpr size_t | native_size () const noexcept |
| Returns the size of the view in characters.
|
|
constexpr format | formatting () const noexcept |
| How path separators shall be interpreted.
|
|
constexpr bool | has_null_termination () const noexcept |
| True if input is declared to be null terminated.
|
|
constexpr enum termination | termination () const noexcept |
| The zero termination during construction.
|
|
constexpr bool | has_stem () const noexcept |
| True if stem() returns a non-empty path.
|
|
constexpr bool | has_extension () const noexcept |
| True if extension() returns a non-empty path.
|
|
constexpr bool | contains_glob () const noexcept |
| True if the view contains any of the characters * , ? , (POSIX only: [ or ] ).
|
|
constexpr path_view_component | stem () const noexcept |
| Returns a view of the filename without any file extension.
|
|
constexpr path_view_component | extension () const noexcept |
| Returns a view of the file extension part of this view.
|
|
filesystem::path | path () const |
| Return the path view as a path. Allocates and copies memory!
|
|
template<class T = typename filesystem::path::value_type, class Deleter = default_rendered_path_deleter<T[]>, size_t _internal_buffer_size = default_internal_buffer_size, typename std::enable_if<(is_source_acceptable< T >), bool >::type = true> |
constexpr int | compare (path_view_component p, const std::locale &loc) const |
|
template<class T = typename filesystem::path::value_type, class Deleter = default_rendered_path_deleter<T[]>, size_t _internal_buffer_size = default_internal_buffer_size, typename std::enable_if<(is_source_acceptable< T >), bool >::type = true> |
constexpr int | compare (path_view_component p) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
template<enum path_view_component::termination ZeroTermination, class T = typename filesystem::path::value_type, class AllocatorOrDeleter = default_rendered_path_deleter<T[]>, size_t _internal_buffer_size = default_internal_buffer_size, class... Args, typename std::enable_if<(is_source_acceptable< T >), bool >::type = true, typename = decltype( std::is_constructible<rendered_path<ZeroTermination, T, AllocatorOrDeleter, _internal_buffer_size>, path_view_component, Args...>::value )> |
rendered_path< ZeroTermination, T, AllocatorOrDeleter, _internal_buffer_size > | render (path_view_component view, Args &&...args) const |
| Convenience function.
|
|
template<class T = typename filesystem::path::value_type, class AllocatorOrDeleter = default_rendered_path_deleter<T[]>, size_t _internal_buffer_size = default_internal_buffer_size, class... Args, typename std::enable_if<(is_source_acceptable< T >), bool >::type = true, typename = decltype( std::is_constructible<rendered_path<termination::zero_terminated, T, AllocatorOrDeleter, _internal_buffer_size>, path_view_component, Args...>::value )> |
rendered_path< termination::zero_terminated, T, AllocatorOrDeleter, _internal_buffer_size > | render_null_terminated (Args &&...args) const |
| Convenience function.
|
|
template<class T = typename filesystem::path::value_type, class AllocatorOrDeleter = default_rendered_path_deleter<T[]>, size_t _internal_buffer_size = default_internal_buffer_size, class... Args, typename std::enable_if<(is_source_acceptable< T >), bool >::type = true, typename = decltype( std::is_constructible<rendered_path<termination::zero_terminated, T, AllocatorOrDeleter, _internal_buffer_size>, path_view_component, Args...>::value )> |
rendered_path< termination::not_zero_terminated, T, AllocatorOrDeleter, _internal_buffer_size > | render_unterminated (Args &&...args) const |
| Convenience function.
|
|
An iterated part of a path_view
.