Url
Overview
URL is an URI with a schema, like file:// or http://
Location
-
Reference:
- Elements.dll .NET, .NET Core 6.0, .NET Standard 2.0
- elements.jar Cooper
- Elements.fx Island, ToffeeV2
- libElements.fx Toffee
- Namespace: RemObjects.Elements.RTL
- Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
- Ancestry: Uri | Url
AddPercentEncodingsToPath
Use % encodings to encode the input string.
Parameters:
- aString:
CanGetPathRelativeToUrl
Returns true if a path relative to the given url can be found.
Parameters:
- aUrl:
CanonicalVersion
Fixes an url to have no ../ and ./ in them, and encodes the parts with % encoding, where needed.
property CanonicalVersion: not nullable Url read;
Url! CanonicalVersion { get; }
var CanonicalVersion: Url { get{} }
Url CanonicalVersion { __get; }
ReadOnly Property CanonicalVersion() As Url
compare (declared in Uri) Toffee, ToffeeV2
func compare(_ rhs: Uri) -> NSComparisonResult
Parameters:
- rhs:
CompareTo (declared in Uri)
Parameters:
- rhs:
CopyWithQueryString
Copy this url, with a different query string.
Parameters:
- aQueryString:
description override ToffeeV2
func description() -> NSString
description description(): NSString override Toffee
func description(description ) -> NSString
Parameters:
- :
equals Cooper
Parameters:
- obj:
FileExists .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2
True if this url is a file url and it exists.
property FileExists: Boolean read;
Boolean FileExists { get; }
var FileExists: Boolean { get{} }
Boolean FileExists { __get; }
ReadOnly Property FileExists() As Boolean
FilePath
Returns the file path for this url (or nil if not a path)
property FilePath: String read;
String FilePath { get; }
var FilePath: String { get{} }
String FilePath { __get; }
ReadOnly Property FilePath() As String
Returns the file path, relative to an url, so adds ../ and ., if always is true, else goes to a maximum of 3.
Parameters:
- aUrl:
- aAlways:
Returns the file path, relative to an url, so adds ../ and ., if always is true, else goes to a maximum of 3.
Parameters:
- aUrl:
- aThreshold:
FilePathRelativeToUrlIfPossible
Parameters:
- aUrl:
FilePathWithoutLastComponent
Returns the filepath, with the last component removed.
property FilePathWithoutLastComponent: String read;
String FilePathWithoutLastComponent { get; }
var FilePathWithoutLastComponent: String { get{} }
String FilePathWithoutLastComponent { __get; }
ReadOnly Property FilePathWithoutLastComponent() As String
FolderExists .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2
True if this points to a folder and the folder exists.
property FolderExists: Boolean read;
Boolean FolderExists { get; }
var FolderExists: Boolean { get{} }
Boolean FolderExists { __get; }
ReadOnly Property FolderExists() As Boolean
Fragment
Returns the part after the #.
property Fragment: String read;
String Fragment { get; }
var Fragment: String { get{} }
String Fragment { __get; }
ReadOnly Property Fragment() As String
GetHashCode virtual Toffee
func GetHashCode(GetHashCode ) -> Int32
Parameters:
- :
GetParentUrl .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Returns this url with the last component stripped.
method GetParentUrl: nullable Url
Url? GetParentUrl()
func GetParentUrl() -> Url?
Url GetParentUrl()
Function GetParentUrl() As Url?
GetParentUrl GetParentUrl(): Url virtual Toffee
func GetParentUrl(GetParentUrl ) -> Url
Parameters:
- :
hash override ToffeeV2
func hash() -> NativeUInt
hash hash(): UInt64 override Toffee
Parameters:
- :
Host
Return the hostname part, of an url with server.
property Host: String read;
String Host { get; }
var Host: String { get{} }
String Host { __get; }
ReadOnly Property Host() As String
HostAndPort
Return the hostname and port part, of an url with server.
property HostAndPort: nullable String read;
String? HostAndPort { get; }
// .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
var HostAndPort: String? { get{} }
// Toffee
var HostAndPort: String { get{} }
String HostAndPort { __get; }
ReadOnly Property HostAndPort() As String?
IsAbsoluteWindowsDriveLetterFileURL
True if this url is an absolute windows path with drive letter.
property IsAbsoluteWindowsDriveLetterFileURL: Boolean read;
Boolean IsAbsoluteWindowsDriveLetterFileURL { get; }
var IsAbsoluteWindowsDriveLetterFileURL: Boolean { get{} }
Boolean IsAbsoluteWindowsDriveLetterFileURL { __get; }
ReadOnly Property IsAbsoluteWindowsDriveLetterFileURL() As Boolean
IsAbsoluteWindowsFileURL
True if this url is an absolute windows path .
property IsAbsoluteWindowsFileURL: Boolean read;
Boolean IsAbsoluteWindowsFileURL { get; }
var IsAbsoluteWindowsFileURL: Boolean { get{} }
Boolean IsAbsoluteWindowsFileURL { __get; }
ReadOnly Property IsAbsoluteWindowsFileURL() As Boolean
IsAbsoluteWindowsNetworkDriveFileURL
True if this url is an absolute windows path with network share.
property IsAbsoluteWindowsNetworkDriveFileURL: Boolean read;
Boolean IsAbsoluteWindowsNetworkDriveFileURL { get; }
var IsAbsoluteWindowsNetworkDriveFileURL: Boolean { get{} }
Boolean IsAbsoluteWindowsNetworkDriveFileURL { __get; }
ReadOnly Property IsAbsoluteWindowsNetworkDriveFileURL() As Boolean
IsFileUrl
True if this url points to a file:// url.
property IsFileUrl: Boolean read;
Boolean IsFileUrl { get; }
var IsFileUrl: Boolean { get{} }
Boolean IsFileUrl { __get; }
ReadOnly Property IsFileUrl() As Boolean
IsUnderneath
Returns true if this url is underneat the base url passed.
Parameters:
- aPotentialBaseUrl:
LastPathComponent
Returns the last path component of this url.
property LastPathComponent: String read;
String LastPathComponent { get; }
var LastPathComponent: String { get{} }
String LastPathComponent { __get; }
ReadOnly Property LastPathComponent() As String
LastPathComponentWithoutExtension
Returns the last path component of this url, removing the extension if any.
property LastPathComponentWithoutExtension: String read;
String LastPathComponentWithoutExtension { get; }
var LastPathComponentWithoutExtension: String { get{} }
String LastPathComponentWithoutExtension { __get; }
ReadOnly Property LastPathComponentWithoutExtension() As String
Path
Returns the path without query string, host, protocol and fragment.
property Path: String read;
String Path { get; }
var Path: String { get{} }
String Path { __get; }
ReadOnly Property Path() As String
PathAndQueryString
Returns the path with query string without host, protocol and fragment.
property PathAndQueryString: nullable String read;
String? PathAndQueryString { get; }
// .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
var PathAndQueryString: String? { get{} }
// Toffee
var PathAndQueryString: String { get{} }
String PathAndQueryString { __get; }
ReadOnly Property PathAndQueryString() As String?
PathExtension
Returns the extension of the last part of this url.
property PathExtension: String read;
String PathExtension { get; }
var PathExtension: String { get{} }
String PathExtension { __get; }
ReadOnly Property PathExtension() As String
Port
Returns the port in this url (or none if empty)
property Port: nullable Int32 read;
Int32? Port { get; }
var Port: Int32! { get{} }
Integer Port { __get; }
ReadOnly Property Port() As Int32?
QueryString
returns the query string part of this url, without ?
property QueryString: String read;
String QueryString { get; }
var QueryString: String { get{} }
String QueryString { __get; }
ReadOnly Property QueryString() As String
RemovePercentEncodingsFromPath
Decodes a % encoding path.
class method RemovePercentEncodingsFromPath(aString: String; aAlsoRemovePlusCharacter: Boolean): String
Parameters:
- aString:
- aAlsoRemovePlusCharacter:
Scheme
Returns the URL schema (first part of the url)
property Scheme: String read;
String Scheme { get; }
var Scheme: String { get{} }
String Scheme { __get; }
ReadOnly Property Scheme() As String
Create an url with the parameters as sub path relative to this. Optionally adds a slash at the end.
Parameters:
- aComponents:
- aIsDirectory:
Create an url with the parameters as sub path relative to this. O
Parameters:
- aComponents:
Create an url with the parameters as sub path relative to this. Optionally adds a slash at the end. Expects the subpath to be in the current systems path's format.
Parameters:
- aSubPath:
- aIsDirectory:
Create an url with the parameters as sub path relative to this. Expects the subpath to be in the current systems path's format.
Parameters:
- aSubPath:
ToAbsoluteString .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Returns the full url.
method ToAbsoluteString: String
String ToAbsoluteString()
func ToAbsoluteString() -> String
String ToAbsoluteString()
Function ToAbsoluteString() As String
ToAbsoluteString ToAbsoluteString(): String virtual Toffee
func ToAbsoluteString(ToAbsoluteString ) -> String
Parameters:
- :
toString Cooper
method toString: PlatformString
PlatformString toString()
func toString() -> PlatformString
PlatformString toString()
Function toString() As PlatformString
ToString virtual .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
Returns the full url.
method ToString: PlatformString
PlatformString ToString()
func ToString() -> String
Function ToString() As PlatformString
ToString ToString(): String virtual Toffee
func ToString(ToString ) -> String
Parameters:
- :
TryRemovePercentEncodingsFromPath
Try parse % encoding.
class method TryRemovePercentEncodingsFromPath(aString: String; aAlsoRemovePlusCharacter: Boolean): nullable String
Parameters:
- aString:
- aAlsoRemovePlusCharacter:
TryUriWithString (declared in Uri)
Try parse an URL, returns null on failure.
Parameters:
- aUriString:
TryUrlWithString
Try parse an url.
Parameters:
- aUrlString:
UnixPath
Returns the path as unix path.
property UnixPath: String read;
String UnixPath { get; }
var UnixPath: String { get{} }
String UnixPath { __get; }
ReadOnly Property UnixPath() As String
Returns the path as unix path, relative to another url.
Parameters:
- aUrl:
- aAlways:
Returns the path as unix path, relative to another url.
Parameters:
- aUrl:
- aThreshold:
UnixPathWithoutLastComponent
Returns the path as unix path, with the last part removed.
property UnixPathWithoutLastComponent: String read;
String UnixPathWithoutLastComponent { get; }
var UnixPathWithoutLastComponent: String { get{} }
String UnixPathWithoutLastComponent { __get; }
ReadOnly Property UnixPathWithoutLastComponent() As String
UriWithString (declared in Uri)
Parse an URL, throws an exception on failure.
Parameters:
- aUriString:
UrlWithAddedPathExtension
Retursn an url wih a different extension.
Parameters:
- aNewExtension:
UrlWithChangedLastPathComponent
Returns an url with the last path component replaced.
Parameters:
- aNewLastPathComponent:
UrlWithChangedPathExtension
Change an url's last part extension.
Parameters:
- aNewExtension:
UrlWithComponents
Create an url from it's components.
class method UrlWithComponents(aScheme: String; aHost: String; aPort: Int32; aPath: String; aQueryString: String; aFragment: String; aUser: String): not nullable Url
static Url! UrlWithComponents(String aScheme, String aHost, Int32 aPort, String aPath, String aQueryString, String aFragment, String aUser)
static func UrlWithComponents(_ aScheme: String, _ aHost: String, _ aPort: Int32, _ aPath: String, _ aQueryString: String, _ aFragment: String, _ aUser: String) -> Url
Parameters:
- aScheme:
- aHost:
- aPort:
- aPath:
- aQueryString:
- aFragment:
- aUser:
Create an url from a file path.
Parameters:
- aPath:
- aIsDirectory:
UrlWithFilePath (not nullable String) relativeToUrl(not nullable Url) isDirectory(Boolean): not nullable Url
Create an url from a file path.
class method UrlWithFilePath(aPath: not nullable String) relativeToUrl(aUrl: not nullable Url) isDirectory(aIsDirectory: Boolean): not nullable Url
static Url! UrlWithFilePath(String! aPath) relativeToUrl(Url! aUrl) isDirectory(Boolean aIsDirectory)
Parameters:
- aPath:
- aUrl:
- aIsDirectory:
Parameters:
- aPath:
UrlWithFragment
Create an url with just a fragment.
Parameters:
- aFragment:
UrlWithoutFragment .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Remove the fragment from an url.
method UrlWithoutFragment: not nullable Url
Url! UrlWithoutFragment()
func UrlWithoutFragment() -> Url
Url UrlWithoutFragment()
Function UrlWithoutFragment() As Url
UrlWithoutFragment UrlWithoutFragment(): not nullable Url Toffee
func UrlWithoutFragment(UrlWithoutFragment ) -> Url
Parameters:
- :
UrlWithoutLastComponent
remove the last component from an url.
property UrlWithoutLastComponent: Url read;
Url UrlWithoutLastComponent { get; }
var UrlWithoutLastComponent: Url { get{} }
Url UrlWithoutLastComponent { __get; }
ReadOnly Property UrlWithoutLastComponent() As Url
UrlWithRelativeOrAbsoluteFileSubPath
Create an url with aSubPath added or if it's a full path, replaced.
Parameters:
- aSubPath:
UrlWithRelativeOrAbsoluteWindowsSubPath
Create an url with aSubPath as a windows path added or if it's a full path, replaced.
Parameters:
- aSubPath:
UrlWithString
Create an url from a string.
Parameters:
- aUrlString:
UrlWithUnixPath
Create an url from a unix path.
Parameters:
- aPath:
- aIsDirectory:
UrlWithWindowsPath
Create an url from a windows path.
Parameters:
- aPath:
- aIsDirectory:
User
Returns the user part of the url.
property User: String read;
String User { get; }
var User: String { get{} }
String User { __get; }
ReadOnly Property User() As String
WindowsPath
Returns the windows path from this url, or nil.
property WindowsPath: String read;
String WindowsPath { get; }
var WindowsPath: String { get{} }
String WindowsPath { __get; }
ReadOnly Property WindowsPath() As String
Returns the path as windows path, relative to another url.
Parameters:
- aUrl:
- aAlways:
Returns the path as windows path, relative to another url.
method WindowsPathRelativeToUrl(aUrl: not nullable Url) Threshold(aThreshold: Int32): nullable String
Parameters:
- aUrl:
- aThreshold:
WindowsPathWithoutLastComponent
Returns the path as windows path, with the last part removed.
CanonicalVersion
Fixes an url to have no ../ and ./ in them, and encodes the parts with % encoding, where needed.
property CanonicalVersion: not nullable Url read;
Url! CanonicalVersion { get; }
var CanonicalVersion: Url { get{} }
Url CanonicalVersion { __get; }
ReadOnly Property CanonicalVersion() As Url
FileExists .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2
True if this url is a file url and it exists.
property FileExists: Boolean read;
Boolean FileExists { get; }
var FileExists: Boolean { get{} }
Boolean FileExists { __get; }
ReadOnly Property FileExists() As Boolean
FilePath
Returns the file path for this url (or nil if not a path)
property FilePath: String read;
String FilePath { get; }
var FilePath: String { get{} }
String FilePath { __get; }
ReadOnly Property FilePath() As String
FilePathWithoutLastComponent
Returns the filepath, with the last component removed.
property FilePathWithoutLastComponent: String read;
String FilePathWithoutLastComponent { get; }
var FilePathWithoutLastComponent: String { get{} }
String FilePathWithoutLastComponent { __get; }
ReadOnly Property FilePathWithoutLastComponent() As String
FolderExists .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2
True if this points to a folder and the folder exists.
property FolderExists: Boolean read;
Boolean FolderExists { get; }
var FolderExists: Boolean { get{} }
Boolean FolderExists { __get; }
ReadOnly Property FolderExists() As Boolean
Fragment
Returns the part after the #.
property Fragment: String read;
String Fragment { get; }
var Fragment: String { get{} }
String Fragment { __get; }
ReadOnly Property Fragment() As String
Host
Return the hostname part, of an url with server.
property Host: String read;
String Host { get; }
var Host: String { get{} }
String Host { __get; }
ReadOnly Property Host() As String
HostAndPort
Return the hostname and port part, of an url with server.
property HostAndPort: nullable String read;
String? HostAndPort { get; }
// .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
var HostAndPort: String? { get{} }
// Toffee
var HostAndPort: String { get{} }
String HostAndPort { __get; }
ReadOnly Property HostAndPort() As String?
IsAbsoluteWindowsDriveLetterFileURL
True if this url is an absolute windows path with drive letter.
property IsAbsoluteWindowsDriveLetterFileURL: Boolean read;
Boolean IsAbsoluteWindowsDriveLetterFileURL { get; }
var IsAbsoluteWindowsDriveLetterFileURL: Boolean { get{} }
Boolean IsAbsoluteWindowsDriveLetterFileURL { __get; }
ReadOnly Property IsAbsoluteWindowsDriveLetterFileURL() As Boolean
IsAbsoluteWindowsFileURL
True if this url is an absolute windows path .
property IsAbsoluteWindowsFileURL: Boolean read;
Boolean IsAbsoluteWindowsFileURL { get; }
var IsAbsoluteWindowsFileURL: Boolean { get{} }
Boolean IsAbsoluteWindowsFileURL { __get; }
ReadOnly Property IsAbsoluteWindowsFileURL() As Boolean
IsAbsoluteWindowsNetworkDriveFileURL
True if this url is an absolute windows path with network share.
property IsAbsoluteWindowsNetworkDriveFileURL: Boolean read;
Boolean IsAbsoluteWindowsNetworkDriveFileURL { get; }
var IsAbsoluteWindowsNetworkDriveFileURL: Boolean { get{} }
Boolean IsAbsoluteWindowsNetworkDriveFileURL { __get; }
ReadOnly Property IsAbsoluteWindowsNetworkDriveFileURL() As Boolean
IsFileUrl
True if this url points to a file:// url.
property IsFileUrl: Boolean read;
Boolean IsFileUrl { get; }
var IsFileUrl: Boolean { get{} }
Boolean IsFileUrl { __get; }
ReadOnly Property IsFileUrl() As Boolean
LastPathComponent
Returns the last path component of this url.
property LastPathComponent: String read;
String LastPathComponent { get; }
var LastPathComponent: String { get{} }
String LastPathComponent { __get; }
ReadOnly Property LastPathComponent() As String
LastPathComponentWithoutExtension
Returns the last path component of this url, removing the extension if any.
property LastPathComponentWithoutExtension: String read;
String LastPathComponentWithoutExtension { get; }
var LastPathComponentWithoutExtension: String { get{} }
String LastPathComponentWithoutExtension { __get; }
ReadOnly Property LastPathComponentWithoutExtension() As String
Path
Returns the path without query string, host, protocol and fragment.
property Path: String read;
String Path { get; }
var Path: String { get{} }
String Path { __get; }
ReadOnly Property Path() As String
PathAndQueryString
Returns the path with query string without host, protocol and fragment.
property PathAndQueryString: nullable String read;
String? PathAndQueryString { get; }
// .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
var PathAndQueryString: String? { get{} }
// Toffee
var PathAndQueryString: String { get{} }
String PathAndQueryString { __get; }
ReadOnly Property PathAndQueryString() As String?
PathExtension
Returns the extension of the last part of this url.
property PathExtension: String read;
String PathExtension { get; }
var PathExtension: String { get{} }
String PathExtension { __get; }
ReadOnly Property PathExtension() As String
Port
Returns the port in this url (or none if empty)
property Port: nullable Int32 read;
Int32? Port { get; }
var Port: Int32! { get{} }
Integer Port { __get; }
ReadOnly Property Port() As Int32?
QueryString
returns the query string part of this url, without ?
property QueryString: String read;
String QueryString { get; }
var QueryString: String { get{} }
String QueryString { __get; }
ReadOnly Property QueryString() As String
Scheme
Returns the URL schema (first part of the url)
property Scheme: String read;
String Scheme { get; }
var Scheme: String { get{} }
String Scheme { __get; }
ReadOnly Property Scheme() As String
UnixPath
Returns the path as unix path.
property UnixPath: String read;
String UnixPath { get; }
var UnixPath: String { get{} }
String UnixPath { __get; }
ReadOnly Property UnixPath() As String
UnixPathWithoutLastComponent
Returns the path as unix path, with the last part removed.
property UnixPathWithoutLastComponent: String read;
String UnixPathWithoutLastComponent { get; }
var UnixPathWithoutLastComponent: String { get{} }
String UnixPathWithoutLastComponent { __get; }
ReadOnly Property UnixPathWithoutLastComponent() As String
UrlWithoutLastComponent
remove the last component from an url.
property UrlWithoutLastComponent: Url read;
Url UrlWithoutLastComponent { get; }
var UrlWithoutLastComponent: Url { get{} }
Url UrlWithoutLastComponent { __get; }
ReadOnly Property UrlWithoutLastComponent() As Url
User
Returns the user part of the url.
property User: String read;
String User { get; }
var User: String { get{} }
String User { __get; }
ReadOnly Property User() As String
WindowsPath
Returns the windows path from this url, or nil.
property WindowsPath: String read;
String WindowsPath { get; }
var WindowsPath: String { get{} }
String WindowsPath { __get; }
ReadOnly Property WindowsPath() As String
WindowsPathWithoutLastComponent
Returns the path as windows path, with the last part removed.
AddPercentEncodingsToPath
Use % encodings to encode the input string.
Parameters:
- aString:
RemovePercentEncodingsFromPath
Decodes a % encoding path.
class method RemovePercentEncodingsFromPath(aString: String; aAlsoRemovePlusCharacter: Boolean): String
Parameters:
- aString:
- aAlsoRemovePlusCharacter:
TryRemovePercentEncodingsFromPath
Try parse % encoding.
class method TryRemovePercentEncodingsFromPath(aString: String; aAlsoRemovePlusCharacter: Boolean): nullable String
Parameters:
- aString:
- aAlsoRemovePlusCharacter:
TryUriWithString (declared in Uri)
Try parse an URL, returns null on failure.
Parameters:
- aUriString:
TryUrlWithString
Try parse an url.
Parameters:
- aUrlString:
UriWithString (declared in Uri)
Parse an URL, throws an exception on failure.
Parameters:
- aUriString:
UrlWithComponents
Create an url from it's components.
class method UrlWithComponents(aScheme: String; aHost: String; aPort: Int32; aPath: String; aQueryString: String; aFragment: String; aUser: String): not nullable Url
static Url! UrlWithComponents(String aScheme, String aHost, Int32 aPort, String aPath, String aQueryString, String aFragment, String aUser)
static func UrlWithComponents(_ aScheme: String, _ aHost: String, _ aPort: Int32, _ aPath: String, _ aQueryString: String, _ aFragment: String, _ aUser: String) -> Url
Parameters:
- aScheme:
- aHost:
- aPort:
- aPath:
- aQueryString:
- aFragment:
- aUser:
Create an url from a file path.
Parameters:
- aPath:
- aIsDirectory:
UrlWithFilePath (not nullable String) relativeToUrl(not nullable Url) isDirectory(Boolean): not nullable Url
Create an url from a file path.
class method UrlWithFilePath(aPath: not nullable String) relativeToUrl(aUrl: not nullable Url) isDirectory(aIsDirectory: Boolean): not nullable Url
static Url! UrlWithFilePath(String! aPath) relativeToUrl(Url! aUrl) isDirectory(Boolean aIsDirectory)
Parameters:
- aPath:
- aUrl:
- aIsDirectory:
Parameters:
- aPath:
UrlWithString
Create an url from a string.
Parameters:
- aUrlString:
UrlWithUnixPath
Create an url from a unix path.
Parameters:
- aPath:
- aIsDirectory:
UrlWithWindowsPath
Create an url from a windows path.
Parameters:
- aPath:
- aIsDirectory:
CanGetPathRelativeToUrl
Returns true if a path relative to the given url can be found.
Parameters:
- aUrl:
compare (declared in Uri) Toffee, ToffeeV2
func compare(_ rhs: Uri) -> NSComparisonResult
Parameters:
- rhs:
CompareTo (declared in Uri)
Parameters:
- rhs:
CopyWithQueryString
Copy this url, with a different query string.
Parameters:
- aQueryString:
description override ToffeeV2
func description() -> NSString
description description(): NSString override Toffee
func description(description ) -> NSString
Parameters:
- :
equals Cooper
Parameters:
- obj:
Returns the file path, relative to an url, so adds ../ and ., if always is true, else goes to a maximum of 3.
Parameters:
- aUrl:
- aAlways:
Returns the file path, relative to an url, so adds ../ and ., if always is true, else goes to a maximum of 3.
Parameters:
- aUrl:
- aThreshold:
FilePathRelativeToUrlIfPossible
Parameters:
- aUrl:
GetHashCode virtual Toffee
func GetHashCode(GetHashCode ) -> Int32
Parameters:
- :
GetParentUrl .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Returns this url with the last component stripped.
method GetParentUrl: nullable Url
Url? GetParentUrl()
func GetParentUrl() -> Url?
Url GetParentUrl()
Function GetParentUrl() As Url?
GetParentUrl GetParentUrl(): Url virtual Toffee
func GetParentUrl(GetParentUrl ) -> Url
Parameters:
- :
hash override ToffeeV2
func hash() -> NativeUInt
hash hash(): UInt64 override Toffee
Parameters:
- :
IsUnderneath
Returns true if this url is underneat the base url passed.
Parameters:
- aPotentialBaseUrl:
Create an url with the parameters as sub path relative to this. Optionally adds a slash at the end.
Parameters:
- aComponents:
- aIsDirectory:
Create an url with the parameters as sub path relative to this. O
Parameters:
- aComponents:
Create an url with the parameters as sub path relative to this. Optionally adds a slash at the end. Expects the subpath to be in the current systems path's format.
Parameters:
- aSubPath:
- aIsDirectory:
Create an url with the parameters as sub path relative to this. Expects the subpath to be in the current systems path's format.
Parameters:
- aSubPath:
ToAbsoluteString .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Returns the full url.
method ToAbsoluteString: String
String ToAbsoluteString()
func ToAbsoluteString() -> String
String ToAbsoluteString()
Function ToAbsoluteString() As String
ToAbsoluteString ToAbsoluteString(): String virtual Toffee
func ToAbsoluteString(ToAbsoluteString ) -> String
Parameters:
- :
toString Cooper
method toString: PlatformString
PlatformString toString()
func toString() -> PlatformString
PlatformString toString()
Function toString() As PlatformString
ToString virtual .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
Returns the full url.
method ToString: PlatformString
PlatformString ToString()
func ToString() -> String
Function ToString() As PlatformString
ToString ToString(): String virtual Toffee
func ToString(ToString ) -> String
Parameters:
- :
Returns the path as unix path, relative to another url.
Parameters:
- aUrl:
- aAlways:
Returns the path as unix path, relative to another url.
Parameters:
- aUrl:
- aThreshold:
UrlWithAddedPathExtension
Retursn an url wih a different extension.
Parameters:
- aNewExtension:
UrlWithChangedLastPathComponent
Returns an url with the last path component replaced.
Parameters:
- aNewLastPathComponent:
UrlWithChangedPathExtension
Change an url's last part extension.
Parameters:
- aNewExtension:
UrlWithFragment
Create an url with just a fragment.
Parameters:
- aFragment:
UrlWithoutFragment .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Remove the fragment from an url.
method UrlWithoutFragment: not nullable Url
Url! UrlWithoutFragment()
func UrlWithoutFragment() -> Url
Url UrlWithoutFragment()
Function UrlWithoutFragment() As Url
UrlWithoutFragment UrlWithoutFragment(): not nullable Url Toffee
func UrlWithoutFragment(UrlWithoutFragment ) -> Url
Parameters:
- :
UrlWithRelativeOrAbsoluteFileSubPath
Create an url with aSubPath added or if it's a full path, replaced.
Parameters:
- aSubPath:
UrlWithRelativeOrAbsoluteWindowsSubPath
Create an url with aSubPath as a windows path added or if it's a full path, replaced.
Parameters:
- aSubPath:
Returns the path as windows path, relative to another url.
Parameters:
- aUrl:
- aAlways:
Returns the path as windows path, relative to another url.
method WindowsPathRelativeToUrl(aUrl: not nullable Url) Threshold(aThreshold: Int32): nullable String
Parameters:
- aUrl:
- aThreshold: