#include <Urho3D/IO/FileIdentifier.h>
|
static FileIdentifier | FromUri (ea::string_view uri) |
| Construct from uri-like path.
|
|
static ea::string | SanitizeFileName (ea::string_view fileName) |
|
|
ea::string | scheme_ |
| URI-like scheme. May be empty if not specified.
|
|
ea::string | fileName_ |
| URI-like path to the file.
|
|
File identifier, similar to Uniform Resource Identifier (URI). Known differences:
- If URI starts with
/
or x:/
it is treated as file
scheme automatically.
- Host names are not supported for
file:
scheme. All of file:/path/to/file
, file://path/to/file
, and file:///path/to/file
are supported and denote absolute file path.
- If URI does not contain
:
, it is treated as special "empty" scheme, and the entire URI is treated as relative path.
- Conversion to URI string uses
scheme://
format.
◆ AppendPath()
void Urho3D::FileIdentifier::AppendPath |
( |
ea::string_view |
path | ) |
|
Append path to the current path, adding slash in between if it's missing. Ignores current scheme restrictions.
◆ operator bool()
Urho3D::FileIdentifier::operator bool |
( |
| ) |
const |
|
inlineexplicit |
The documentation for this struct was generated from the following files:
- Urho3D/IO/FileIdentifier.h
- Urho3D/IO/FileIdentifier.cpp