VisionLib functions for working with Paths and URIs.
More...
|
|
static string | CombinePaths (IEnumerable< string > segments) |
| |
|
static string | CombinePaths (string path1, string path2) |
| |
|
static string | CombinePaths (string path1, string path2, string path3) |
| |
|
static bool | ContainsScheme (string uri) |
| |
|
static bool | ContainsWebScheme (string uri) |
| |
|
static int | FindLastSeparator (string uri) |
| |
|
static string | GetFileName (string uri) |
| | Returns the file name found in URI including its extension. Throws exception if the given uri is invalid or does not contain a filename.
|
| |
|
static string | GetStreamingAssetsPath () |
| |
|
static bool | IsAbsolutePath (string path) |
| |
|
static bool | IsAbsoluteURI (string potentialURI) |
| |
Checks whether a string is an absolute URI. This means that the URI has a scheme, an authority (if applicable) and a path.
|
| |
|
static string | RemoveScheme (string str) |
| | Returns the substring to the right of the first colon (or the entire string if no colon is present). This can be used to remove any leading URI schemas.
|
| |
|
static string | RemoveStartingSlashes (string path) |
| |
|
static string string query | SplitUriAndQuery (string uri) |
| |
| static string | SubstituteProjectDirPath (string uri, string projectDirPath) |
| | Replaces the project-dir schema in the URI with an different path.
|
| |
|
static string | SubstituteStreamingAssetsPathWithSchema (string path) |
| |
|
static string | UnifySlashes (string path) |
| |
|
|
static string | pathWithoutQuery |
| |
|
const string | streamingAssetsScheme = "streaming-assets-dir:" |
| |
VisionLib functions for working with Paths and URIs.
◆ SubstituteProjectDirPath()
| static string Visometry.Helpers.PathHelper.SubstituteProjectDirPath |
( |
string | uri, |
|
|
string | projectDirPath ) |
|
inlinestatic |
Replaces the project-dir schema in the URI with an different path.
- Parameters
-
- Returns