Support utilities for AbsolutePath.
More...
Support utilities for AbsolutePath.
Definition at line 329 of file AbsolutePath.Build.cs.
◆ AsPath() [1/3]
| static AbsolutePath McroBuild.PathUtils.AsPath |
( |
this DirectoryReference | input | ) |
|
|
static |
Convert a left-side DirectoryReference to an AbsolutePath. In fact this is the recommended way to create an instance of AbsolutePath (as its constructor is private)
- Parameters
-
| input | Input must be rooted |
◆ AsPath() [2/3]
| static AbsolutePath McroBuild.PathUtils.AsPath |
( |
this FileReference | input | ) |
|
|
static |
Convert a left-side FileReference to an AbsolutePath. In fact this is the recommended way to create an instance of AbsolutePath (as its constructor is private)
- Parameters
-
| input | Input must be rooted |
◆ AsPath() [3/3]
| static AbsolutePath McroBuild.PathUtils.AsPath |
( |
this string | input | ) |
|
|
static |
Convert a left-side string to an AbsolutePath. In fact this is the recommended way to create an instance of AbsolutePath (as its constructor is private)
- Parameters
-
| input | Input must be rooted |
◆ Combine()
| static string McroBuild.PathUtils.Combine |
( |
string | left, |
|
|
string | right, |
|
|
char? | separator = null ) |
|
inlinestatic |
◆ GetPathRoot()
| static string McroBuild.PathUtils.GetPathRoot |
( |
string | path | ) |
|
|
inlinestatic |
◆ HasPathRoot()
| static bool McroBuild.PathUtils.HasPathRoot |
( |
string | path | ) |
|
|
static |
◆ HasUncRoot()
| static bool McroBuild.PathUtils.HasUncRoot |
( |
string | path | ) |
|
|
staticpackage |
◆ HasUnixRoot()
| static bool McroBuild.PathUtils.HasUnixRoot |
( |
string | path | ) |
|
|
staticpackage |
◆ HasWinRoot()
| static bool McroBuild.PathUtils.HasWinRoot |
( |
string | path | ) |
|
|
staticpackage |
◆ IsUncRoot()
| static bool McroBuild.PathUtils.IsUncRoot |
( |
string | root | ) |
|
|
staticpackage |
◆ IsUnixRoot()
| static bool McroBuild.PathUtils.IsUnixRoot |
( |
string | root | ) |
|
|
staticpackage |
◆ IsWinRoot()
| static bool McroBuild.PathUtils.IsWinRoot |
( |
string | root | ) |
|
|
staticpackage |
◆ NormalizePath()
| static string McroBuild.PathUtils.NormalizePath |
( |
string | path, |
|
|
char? | separator = null ) |
|
inlinestatic |
◆ WithUnixSeparator()
| static string McroBuild.PathUtils.WithUnixSeparator |
( |
this string | input | ) |
|
|
static |
◆ AllSeparators
◆ UncSeparator
| const char McroBuild.PathUtils.UncSeparator = '\\' |
|
staticpackage |
◆ UnixSeparator
| const char McroBuild.PathUtils.UnixSeparator = '/' |
|
staticpackage |
◆ WinSeparator
| const char McroBuild.PathUtils.WinSeparator = '\\' |
|
staticpackage |
The documentation for this class was generated from the following file: