Performs operations on std::basic_string instances that contain file or directory path information. These operations are performed in a cross-platform manner.
Performs operations on std::basic_string instances that contain file or directory path information....
Definition path.hpp:36
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
#define core_export_
Define shared library export.
Definition core_export.hpp:13
- Inheritance
- xtd::static_object → xtd::io::path
- Header
-
- Namespace
- xtd::io
- Library
- xtd.core
- Examples
- file_info.cpp, file_info_open.cpp, file_info_open_read.cpp, file_info_open_text.cpp, and file_info_open_write.cpp.
|
template<typename char_t > |
static char_t | alt_directory_separator_char () noexcept |
| Provides a platform-specific alternate character used to separate directory levels in a path string that reflects a hierarchical file system organization.
|
|
static char | alt_directory_separator_char () noexcept |
| Provides a platform-specific alternate character used to separate directory levels in a path string that reflects a hierarchical file system organization.
|
|
template<typename char_t > |
static char_t | directory_separator_char () noexcept |
| Provides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.
|
|
static char | directory_separator_char () noexcept |
| Provides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.
|
|
template<typename char_t > |
static char_t | path_separator () noexcept |
| A platform-specific separator character used to separate path strings in environment variables.
|
|
static char | path_separator () noexcept |
| A platform-specific separator character used to separate path strings in environment variables.
|
|
template<typename char_t > |
static char_t | volume_separator_char () noexcept |
| Provides a platform-specific volume separator character.
|
|
static char | volume_separator_char () noexcept |
| Provides a platform-specific volume separator character.
|
|
|
static xtd::string | change_extension (const xtd::string &path, const xtd::string &extension) |
| Changes the extension of a path string.
|
|
static xtd::string | combine (const xtd::string &path1, const xtd::string &path2) |
| Combines two path strings.
|
|
template<typename type1_t , typename type2_t , typename type3_t > |
static auto | combine (type1_t path1, type2_t path2, type3_t path3) noexcept |
| Combines three path strings.
|
|
template<typename type1_t , typename type2_t , typename type3_t , typename type4_t > |
static auto | combine (type1_t path1, type2_t path2, type3_t path3, type4_t path4) noexcept |
| Combines four path strings.
|
|
template<typename path_t > |
static xtd::string | combine (path_t paths) noexcept |
| Combines path strings array.
|
|
static xtd::string | combine (const std::initializer_list< xtd::string > &paths) noexcept |
| Combines path strings array.
|
|
static xtd::string | get_directory_name (const xtd::string &path) |
| Returns the directory information for the specified path string.
|
|
static xtd::string | get_extension (const xtd::string &path) |
| Returns the extension of the specified path string.
|
|
static xtd::string | get_file_name (const xtd::string &path) |
| Returns the file name and extension of the specified path string.
|
|
static xtd::string | get_file_name_without_extension (const xtd::string &path) |
| Returns the file name of the specified path string without the extension.
|
|
static xtd::string | get_full_path (const xtd::string &path) |
| Returns the absolute path for the specified path string.
|
|
template<typename char_t > |
static std::vector< char_t > | get_invalid_path_chars () noexcept |
| Gets an array containing the characters that are not allowed in path names.
|
|
static std::vector< char > | get_invalid_path_chars () noexcept |
| Gets an array containing the characters that are not allowed in path names.
|
|
static xtd::string | get_path_root (const xtd::string &path) |
| Gets the root directory information of the specified path.
|
|
static xtd::string | get_random_file_name () |
| Returns a random folder name or file name.
|
|
static xtd::string | get_random_file_name (size_t name_length) |
| Returns a random folder name or file name with specified name length.
|
|
static xtd::string | get_random_file_name (size_t name_size, size_t extension_size) |
| Returns a random folder name or file name with specified name length, and extension length.
|
|
static xtd::string | get_temp_file_name () |
| Creates a uniquely named, zero-byte temporary file on disk and returns the full path of that file.
|
|
static xtd::string | get_temp_path () noexcept |
| Returns the path of the current user's temporary folder.
|
|
static bool | has_extension (const xtd::string &path) |
| Determines whether a path includes a file name extension.
|
|
static bool | is_path_rooted (const xtd::string &path) |
| Gets a value indicating whether the specified path string contains absolute or relative path information.
|
|