Static Public Member Functions | |
static ASPOSECPP_SHARED_API String | ChangeExtension (const String &path, const String &extension) |
static ASPOSECPP_SHARED_API String | Combine (const ArrayPtr< String > &paths) |
static ASPOSECPP_SHARED_API String | Combine (const String &path1, const String &path2) |
static ASPOSECPP_SHARED_API String | Combine (const String &path1, const String &path2, const String &path3) |
static ASPOSECPP_SHARED_API String | Combine (const String &path1, const String &path2, const String &path3, const String &path4) |
static ASPOSECPP_SHARED_API String | GetDirectoryName (const String &path) |
static ASPOSECPP_SHARED_API String | GetExtension (const String &path) |
static ASPOSECPP_SHARED_API String | GetFileName (const String &path) |
static ASPOSECPP_SHARED_API String | GetFileNameWithoutExtension (const String &path) |
static ASPOSECPP_SHARED_API String | GetFullPath (const String &path) |
static ASPOSECPP_SHARED_API ArrayPtr< char_t > | GetInvalidFileNameChars () |
Returns an array containing characters that are not allowed in the names of files. More... | |
static ASPOSECPP_SHARED_API ArrayPtr< char_t > | GetInvalidPathChars () |
Returns an array containing characters that are not allowed in path names. More... | |
static ASPOSECPP_SHARED_API String | GetPathRoot (const String &path) |
static ASPOSECPP_SHARED_API String | GetRandomFileName () |
Returns a randomly generated file name. More... | |
static ASPOSECPP_SHARED_API String | GetTempFileName_ () |
static ASPOSECPP_SHARED_API String | GetTempFileNameSafe () |
static ASPOSECPP_SHARED_API String | GetTempPath () |
Returns the path of the current user's temporary directory. More... | |
static ASPOSECPP_SHARED_API bool | HasExtension (const String &path) |
static ASPOSECPP_SHARED_API bool | IsPathRooted (const String &path) |
static ASPOSECPP_SHARED_API void | CheckPath (const String &path, const String &msg=s_msg_path, bool allow_empty=true) |
static ASPOSECPP_SHARED_API String | ToString (const boost::filesystem::path &path) |
static ASPOSECPP_SHARED_API boost::filesystem::path | ToBoost (const String &path) |
static ASPOSECPP_SHARED_API String | NormalizePath (const String &path) |
Static Public Attributes | |
static const char_t ASPOSECPP_SHARED_API | AltDirectorySeparatorChar |
An alternate character used to separate directory levels in a path. More... | |
static const char_t ASPOSECPP_SHARED_API | DirectorySeparatorChar |
A character used to separate directory levels in a path. More... | |
static const char_t ASPOSECPP_SHARED_API | PathSeparator |
A separator character used to separate path strings in environment variables. More... | |
static const char_t ASPOSECPP_SHARED_API | VolumeSeparatorChar |
A volume separator character. More... | |
static ASPOSECPP_SHARED_API const String | s_msg_path |
Default parameter name for CheckPath function. More... | |
Provides methods for manipulating paths. This is a static type with no instance services. You should never create instances of it by any means.
|
static |
Changes the extension in the specified file path.
path | A file path |
extension | The extension to replace the one in path with |
path
with extension replaced with extension
|
static |
Determines if the specified path is valid by checking if it contains invalid characters. An exception is thrown if the path contains invalid characters.
path | The path to check |
msg | The message to pass to the exception object's constructor |
allow_empty | Specifies whether an empty or null string should be considered a correct path (true) or not (false); if this parameter is false and path is empty an ArgumentException is thrown; if this parameter is false and path is null an ArgumentNullException is thrown |
|
static |
Combines the specified path segments into a single path inserting directory separator characters between the segments if necessary.
paths | An array containing path segments to combine |
|
static |
Combines two specified path segments into a single path inserting directory separator character between the segments if necessary.
path1 | The first path segment |
path2 | The second path segment |
|
static |
Combines three specified path segments into a single path inserting directory separator characters between the segments if necessary.
path1 | The first path segment |
path2 | The second path segment |
path3 | The third path segment |
|
static |
Combines four specified path segments into a single path inserting directory separator characters between the segments if necessary.
path1 | The first path segment |
path2 | The second path segment |
path3 | The third path segment |
path4 | The fourth path segment |
Returns the name of the directory referenced by the specified path.
path | A path to a directory |
Returns the extension of the file referenced by the specified path.
path | A path to a file |
Returns the name of the file referenced by the specified path.
path | A path to a file |
|
static |
Returns the name without extension of the file referenced by the specified path.
path | A path to a file |
Converts the specified path into absolute path.
path | The path to convert |
path
|
static |
Returns an array containing characters that are not allowed in the names of files.
|
static |
Returns an array containing characters that are not allowed in path names.
Returns the root directory of the specified path.
path | The path from which to obtain the root |
path
|
static |
Returns a randomly generated file name.
|
static |
Creates a new file with a unique name and returns a full path to it.
|
static |
Creates a new file with a unique name and returns a full path to it. Is a synonym of GetTempFileName_() method.
|
static |
Returns the path of the current user's temporary directory.
|
static |
Determines if the specified path references a file with extension.
path | A path to check |
path
references a file with extension, otherwise - false
|
static |
Determines if the specified path contains a root.
path | A path to check |
path
contains a root, otherwise - false Normalizes the specified path.
path | A path to normalize |
|
static |
Returns an instance of boost::filesystem::path class that represents the specified path.
path | A path |
path
|
static |
Returns a string representation of the specified Boost's path object.
path | The boost::filesystem::path object to convert to string |
path
|
static |
An alternate character used to separate directory levels in a path.
|
static |
A character used to separate directory levels in a path.
|
static |
A separator character used to separate path strings in environment variables.
|
static |
Default parameter name for CheckPath function.
|
static |
A volume separator character.