Url

Overview

URL is an URI with a schema, like file:// or http://

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Ancestry: Uri | Url

 

AddPercentEncodingsToPath

Use % encodings to encode the input string.

 

class method AddPercentEncodingsToPath(aString: String): String

 

static String AddPercentEncodingsToPath(String aString)

 

static func AddPercentEncodingsToPath(_ aString: String) -> String

 

static String AddPercentEncodingsToPath(String aString)

 

Shared Function AddPercentEncodingsToPath(aString As String) As String

Parameters:

  • aString:

CanGetPathRelativeToUrl

Returns true if a path relative to the given url can be found.

 

method CanGetPathRelativeToUrl(aUrl: not nullable Url): Boolean

 

Boolean CanGetPathRelativeToUrl(Url! aUrl)

 

func CanGetPathRelativeToUrl(_ aUrl: Url) -> Boolean

 

Boolean CanGetPathRelativeToUrl(Url aUrl)

 

Function CanGetPathRelativeToUrl(aUrl As Url) As Boolean

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)

 

method CompareTo(rhs: Uri): Int32

 

Int32 CompareTo(Uri rhs)

 

func CompareTo(_ rhs: Uri) -> Int32

 

Integer CompareTo(Uri rhs)

 

Function CompareTo(rhs As Uri) As Int32

Parameters:

  • rhs:

CopyWithQueryString (String): not nullable Url  virtual Cooper, Toffee

Copy this url, with a different query string.

 

func CopyWithQueryString(_ aQueryString: String) -> Url

 

Url CopyWithQueryString(String aQueryString)

Parameters:

  • aQueryString:

CopyWithQueryString (nullable String): not nullable Url .NET, .NET Standard 2.0, Island, ToffeeV2

Copy this url, with a different query string.

 

method CopyWithQueryString(aQueryString: nullable String): not nullable Url

 

Url! CopyWithQueryString(String? aQueryString)

 

func CopyWithQueryString(_ aQueryString: String?) -> Url

 

Function CopyWithQueryString(aQueryString As String?) As Url

Parameters:

  • aQueryString:

description  override Toffee, ToffeeV2

 

func description() -> NSString

Equals (Object): Boolean  virtual .NET, .NET Standard 2.0, Cooper, Island-Android, Island-Ubuntu, Island-WebAssembly-wasm32, Island-Windows, Toffee

Returns true if this is equivalent with the passed argument.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj:

Equals (Object): Boolean  virtual ToffeeV2

Returns true if this is equivalent with the passed argument.

 

func Equals(_ obj: Object) -> Boolean

Parameters:

  • obj:

Equals (RemObjects.Elements.System.Island.Object): Boolean  override virtual Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-UIKit for Mac-x86_64, Island-watchOS, Island-watchOS Simulator

Returns true if this is equivalent with the passed argument.

 

method Equals(obj: RemObjects.Elements.System.Island.Object): Boolean

 

Boolean Equals(RemObjects.Elements.System.Island.Object obj)

 

func Equals(_ obj: RemObjects.Elements.System.Island.Object) -> Boolean

 

Function Equals(obj As RemObjects.Elements.System.Island.Object) As Boolean

Parameters:

  • obj:

FileExists .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-UIKit for Mac-x86_64, 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

FilePathRelativeToUrl (not nullable Url) Always(Boolean): String

Returns the file path, relative to an url, so adds ../ and ., if always is true, else goes to a maximum of 3.

 

method FilePathRelativeToUrl(aUrl: not nullable Url) Always(aAlways: Boolean): String

 

String FilePathRelativeToUrl(Url! aUrl) Always(Boolean aAlways)

 

func FilePathRelativeToUrl(_ aUrl: Url, Always aAlways: Boolean) -> String

 

String FilePathRelativeToUrl(Url aUrl) Always(Boolean aAlways)

 

Function FilePathRelativeToUrl(aUrl As Url) Always(aAlways As Boolean) As String

Parameters:

  • aUrl:
  • aAlways:

FilePathRelativeToUrl (not nullable Url) Threshold(Int32): nullable String

Returns the file path, relative to an url, so adds ../ and ., if always is true, else goes to a maximum of 3.

 

method FilePathRelativeToUrl(aUrl: not nullable Url) Threshold(aThreshold: Int32): nullable String

 

String? FilePathRelativeToUrl(Url! aUrl) Threshold(Int32 aThreshold)

 

// Toffee
func FilePathRelativeToUrl(_ aUrl: Url, Threshold aThreshold: Int32) -> String
// ToffeeV2
func FilePathRelativeToUrl(_ aUrl: Url, Threshold aThreshold: Int32) -> String?

 

String FilePathRelativeToUrl(Url aUrl) Threshold(Integer aThreshold)

 

Function FilePathRelativeToUrl(aUrl As Url) Threshold(aThreshold As Int32) As String?

Parameters:

  • aUrl:
  • aThreshold:

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 Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-UIKit for Mac-x86_64, 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

GetParentUrl

Returns this url with the last component stripped.

 

method GetParentUrl: nullable Url

 

Url? GetParentUrl()

 

// Toffee
func GetParentUrl() -> Url
// ToffeeV2
func GetParentUrl() -> Url?

 

Url GetParentUrl()

 

Function GetParentUrl() As Url?

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 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.

 

method IsUnderneath(aPotentialBaseUrl: not nullable Url): Boolean

 

Boolean IsUnderneath(Url! aPotentialBaseUrl)

 

func IsUnderneath(_ aPotentialBaseUrl: Url) -> Boolean

 

Boolean IsUnderneath(Url aPotentialBaseUrl)

 

Function IsUnderneath(aPotentialBaseUrl As Url) As Boolean

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 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

 

static String RemovePercentEncodingsFromPath(String aString, Boolean aAlsoRemovePlusCharacter)

 

static func RemovePercentEncodingsFromPath(_ aString: String, _ aAlsoRemovePlusCharacter: Boolean) -> String

 

static String RemovePercentEncodingsFromPath(String aString, Boolean aAlsoRemovePlusCharacter)

 

Shared Function RemovePercentEncodingsFromPath(aString As String, aAlsoRemovePlusCharacter As Boolean) As 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

SubUrl (array of String) isDirectory(Boolean): not nullable Url

Create an url with the parameters as sub path relative to this. Optionally adds a slash at the end.

 

method SubUrl(params aComponents: array of String) isDirectory(aIsDirectory: Boolean): not nullable Url

 

Url! SubUrl(params String[] aComponents) isDirectory(Boolean aIsDirectory)

 

func SubUrl(_ aComponents: String..., isDirectory aIsDirectory: Boolean) -> Url

 

Url SubUrl(String[]... aComponents) isDirectory(Boolean aIsDirectory)

 

Function SubUrl(ParamArray aComponents As String()) isDirectory(aIsDirectory As Boolean) As Url

Parameters:

  • aComponents:
  • aIsDirectory:

SubUrl (array of String): not nullable Url

Create an url with the parameters as sub path relative to this. O

 

method SubUrl(params aComponents: array of String): not nullable Url

 

Url! SubUrl(params String[] aComponents)

 

func SubUrl(_ aComponents: String...) -> Url

 

Url SubUrl(String[]... aComponents)

 

Function SubUrl(ParamArray aComponents As String()) As Url

Parameters:

  • aComponents:

SubUrlWithFilePath (String) isDirectory(Boolean): not nullable Url

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.

 

method SubUrlWithFilePath(aSubPath: String) isDirectory(aIsDirectory: Boolean): not nullable Url

 

Url! SubUrlWithFilePath(String aSubPath) isDirectory(Boolean aIsDirectory)

 

func SubUrlWithFilePath(_ aSubPath: String, isDirectory aIsDirectory: Boolean) -> Url

 

Url SubUrlWithFilePath(String aSubPath) isDirectory(Boolean aIsDirectory)

 

Function SubUrlWithFilePath(aSubPath As String) isDirectory(aIsDirectory As Boolean) As Url

Parameters:

  • aSubPath:
  • aIsDirectory:

SubUrlWithFilePath (String): not nullable Url

Create an url with the parameters as sub path relative to this. Expects the subpath to be in the current systems path's format.

 

method SubUrlWithFilePath(aSubPath: String): not nullable Url

 

Url! SubUrlWithFilePath(String aSubPath)

 

func SubUrlWithFilePath(_ aSubPath: String) -> Url

 

Url SubUrlWithFilePath(String aSubPath)

 

Function SubUrlWithFilePath(aSubPath As String) As Url

Parameters:

  • aSubPath:

ToAbsoluteString

Returns the full url.

 

method ToAbsoluteString: String

 

String ToAbsoluteString()

 

func ToAbsoluteString() -> String

 

String ToAbsoluteString()

 

Function ToAbsoluteString() As String

ToString  virtual

Returns the full url.

 

method ToString: PlatformString

 

PlatformString ToString()

 

func ToString() -> String

 

PlatformString ToString()

 

Function ToString() As PlatformString

TryRemovePercentEncodingsFromPath

Try parse % encoding.

 

class method TryRemovePercentEncodingsFromPath(aString: String; aAlsoRemovePlusCharacter: Boolean): nullable String

 

static String? TryRemovePercentEncodingsFromPath(String aString, Boolean aAlsoRemovePlusCharacter)

 

// Toffee
static func TryRemovePercentEncodingsFromPath(_ aString: String, _ aAlsoRemovePlusCharacter: Boolean) -> String
// ToffeeV2
static func TryRemovePercentEncodingsFromPath(_ aString: String, _ aAlsoRemovePlusCharacter: Boolean) -> String?

 

static String TryRemovePercentEncodingsFromPath(String aString, Boolean aAlsoRemovePlusCharacter)

 

Shared Function TryRemovePercentEncodingsFromPath(aString As String, aAlsoRemovePlusCharacter As Boolean) As String?

Parameters:

  • aString:
  • aAlsoRemovePlusCharacter:

TryUriWithString (String): Uri  virtual    (declared in Uri) Cooper, Toffee

Try parse an URL, returns null on failure.

 

static func TryUriWithString(_ aUriString: String) -> Uri

 

static Uri TryUriWithString(String aUriString)

Parameters:

  • aUriString:

TryUriWithString (nullable String): Uri    (declared in Uri) .NET, .NET Standard 2.0, Island, ToffeeV2

Try parse an URL, returns null on failure.

 

class method TryUriWithString(aUriString: nullable String): Uri

 

static Uri TryUriWithString(String? aUriString)

 

static func TryUriWithString(_ aUriString: String?) -> Uri

 

Shared Function TryUriWithString(aUriString As String?) As Uri

Parameters:

  • aUriString:

TryUrlWithString (String): Url  virtual Cooper, Toffee

Try parse an url.

 

static func TryUrlWithString(_ aUrlString: String) -> Url

 

static Url TryUrlWithString(String aUrlString)

Parameters:

  • aUrlString:

TryUrlWithString (nullable String): nullable Url .NET, .NET Standard 2.0, Island, ToffeeV2

Try parse an url.

 

class method TryUrlWithString(aUrlString: nullable String): nullable Url

 

static Url? TryUrlWithString(String? aUrlString)

 

static func TryUrlWithString(_ aUrlString: String?) -> Url?

 

Shared Function TryUrlWithString(aUrlString As String?) As 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

UnixPathRelativeToUrl (not nullable Url) Always(Boolean): String

Returns the path as unix path, relative to another url.

 

method UnixPathRelativeToUrl(aUrl: not nullable Url) Always(aAlways: Boolean): String

 

String UnixPathRelativeToUrl(Url! aUrl) Always(Boolean aAlways)

 

func UnixPathRelativeToUrl(_ aUrl: Url, Always aAlways: Boolean) -> String

 

String UnixPathRelativeToUrl(Url aUrl) Always(Boolean aAlways)

 

Function UnixPathRelativeToUrl(aUrl As Url) Always(aAlways As Boolean) As String

Parameters:

  • aUrl:
  • aAlways:

UnixPathRelativeToUrl (not nullable Url) Threshold(Int32): nullable String

Returns the path as unix path, relative to another url.

 

method UnixPathRelativeToUrl(aUrl: not nullable Url) Threshold(aThreshold: Int32): nullable String

 

String? UnixPathRelativeToUrl(Url! aUrl) Threshold(Int32 aThreshold)

 

// Toffee
func UnixPathRelativeToUrl(_ aUrl: Url, Threshold aThreshold: Int32) -> String
// ToffeeV2
func UnixPathRelativeToUrl(_ aUrl: Url, Threshold aThreshold: Int32) -> String?

 

String UnixPathRelativeToUrl(Url aUrl) Threshold(Integer aThreshold)

 

Function UnixPathRelativeToUrl(aUrl As Url) Threshold(aThreshold As Int32) As String?

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.

 

class method UriWithString(aUriString: not nullable String): Uri

 

static Uri UriWithString(String! aUriString)

 

static func UriWithString(_ aUriString: String) -> Uri

 

static Uri UriWithString(String aUriString)

 

Shared Function UriWithString(aUriString As String) As Uri

Parameters:

  • aUriString:

UrlWithAddedPathExtension

Retursn an url wih a different extension.

 

method UrlWithAddedPathExtension(aNewExtension: not nullable String): nullable Url

 

Url? UrlWithAddedPathExtension(String! aNewExtension)

 

// Toffee
func UrlWithAddedPathExtension(_ aNewExtension: String) -> Url
// ToffeeV2
func UrlWithAddedPathExtension(_ aNewExtension: String) -> Url?

 

Url UrlWithAddedPathExtension(String aNewExtension)

 

Function UrlWithAddedPathExtension(aNewExtension As String) As Url?

Parameters:

  • aNewExtension:

UrlWithChangedLastPathComponent

Returns an url with the last path component replaced.

 

method UrlWithChangedLastPathComponent(aNewLastPathComponent: not nullable String): nullable Url

 

Url? UrlWithChangedLastPathComponent(String! aNewLastPathComponent)

 

// Toffee
func UrlWithChangedLastPathComponent(_ aNewLastPathComponent: String) -> Url
// ToffeeV2
func UrlWithChangedLastPathComponent(_ aNewLastPathComponent: String) -> Url?

 

Url UrlWithChangedLastPathComponent(String aNewLastPathComponent)

 

Function UrlWithChangedLastPathComponent(aNewLastPathComponent As String) As Url?

Parameters:

  • aNewLastPathComponent:

UrlWithChangedPathExtension (String): Url  virtual Cooper, Toffee

Change an url's last part extension.

 

func UrlWithChangedPathExtension(_ aNewExtension: String) -> Url

 

Url UrlWithChangedPathExtension(String aNewExtension)

Parameters:

  • aNewExtension:

UrlWithChangedPathExtension (nullable String): nullable Url .NET, .NET Standard 2.0, Island, ToffeeV2

Change an url's last part extension.

 

method UrlWithChangedPathExtension(aNewExtension: nullable String): nullable Url

 

Url? UrlWithChangedPathExtension(String? aNewExtension)

 

func UrlWithChangedPathExtension(_ aNewExtension: String?) -> Url?

 

Function UrlWithChangedPathExtension(aNewExtension As String?) As Url?

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

 

static Url UrlWithComponents(String aScheme, String aHost, Integer aPort, String aPath, String aQueryString, String aFragment, String aUser)

 

Shared Function UrlWithComponents(aScheme As String, aHost As String, aPort As Int32, aPath As String, aQueryString As String, aFragment As String, aUser As String) As Url

Parameters:

  • aScheme:
  • aHost:
  • aPort:
  • aPath:
  • aQueryString:
  • aFragment:
  • aUser:

UrlWithFilePath (not nullable String) isDirectory(Boolean): not nullable Url

Create an url from a file path.

 

class method UrlWithFilePath(aPath: not nullable String) isDirectory(aIsDirectory: Boolean): not nullable Url

 

static Url! UrlWithFilePath(String! aPath) isDirectory(Boolean aIsDirectory)

 

static func UrlWithFilePath(_ aPath: String, isDirectory aIsDirectory: Boolean) -> Url

 

static Url UrlWithFilePath(String aPath) isDirectory(Boolean aIsDirectory)

 

Shared Function UrlWithFilePath(aPath As String) isDirectory(aIsDirectory As Boolean) As Url

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)

 

static func UrlWithFilePath(_ aPath: String, relativeToUrl aUrl: Url, isDirectory aIsDirectory: Boolean) -> Url

 

static Url UrlWithFilePath(String aPath) relativeToUrl(Url aUrl) isDirectory(Boolean aIsDirectory)

 

Shared Function UrlWithFilePath(aPath As String) relativeToUrl(aUrl As Url) isDirectory(aIsDirectory As Boolean) As Url

Parameters:

  • aPath:
  • aUrl:
  • aIsDirectory:

UrlWithFragment (String): not nullable Url  virtual Cooper, Toffee

Create an url with just a fragment.

 

func UrlWithFragment(_ aFragment: String) -> Url

 

Url UrlWithFragment(String aFragment)

Parameters:

  • aFragment:

UrlWithFragment (nullable String): not nullable Url .NET, .NET Standard 2.0, Island, ToffeeV2

Create an url with just a fragment.

 

method UrlWithFragment(aFragment: nullable String): not nullable Url

 

Url! UrlWithFragment(String? aFragment)

 

func UrlWithFragment(_ aFragment: String?) -> Url

 

Function UrlWithFragment(aFragment As String?) As Url

Parameters:

  • aFragment:

UrlWithoutFragment

Remove the fragment from an url.

 

method UrlWithoutFragment: not nullable Url

 

Url! UrlWithoutFragment()

 

func UrlWithoutFragment() -> Url

 

Url UrlWithoutFragment()

 

Function UrlWithoutFragment() As Url

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.

 

method UrlWithRelativeOrAbsoluteFileSubPath(aSubPath: not nullable String): nullable Url

 

Url? UrlWithRelativeOrAbsoluteFileSubPath(String! aSubPath)

 

// Toffee
func UrlWithRelativeOrAbsoluteFileSubPath(_ aSubPath: String) -> Url
// ToffeeV2
func UrlWithRelativeOrAbsoluteFileSubPath(_ aSubPath: String) -> Url?

 

Url UrlWithRelativeOrAbsoluteFileSubPath(String aSubPath)

 

Function UrlWithRelativeOrAbsoluteFileSubPath(aSubPath As String) As Url?

Parameters:

  • aSubPath:

UrlWithRelativeOrAbsoluteWindowsSubPath

Create an url with aSubPath as a windows path added or if it's a full path, replaced.

 

method UrlWithRelativeOrAbsoluteWindowsSubPath(aSubPath: not nullable String): nullable Url

 

Url? UrlWithRelativeOrAbsoluteWindowsSubPath(String! aSubPath)

 

// Toffee
func UrlWithRelativeOrAbsoluteWindowsSubPath(_ aSubPath: String) -> Url
// ToffeeV2
func UrlWithRelativeOrAbsoluteWindowsSubPath(_ aSubPath: String) -> Url?

 

Url UrlWithRelativeOrAbsoluteWindowsSubPath(String aSubPath)

 

Function UrlWithRelativeOrAbsoluteWindowsSubPath(aSubPath As String) As Url?

Parameters:

  • aSubPath:

UrlWithString

Create an url from a string.

 

class method UrlWithString(aUrlString: not nullable String): not nullable Url

 

static Url! UrlWithString(String! aUrlString)

 

static func UrlWithString(_ aUrlString: String) -> Url

 

static Url UrlWithString(String aUrlString)

 

Shared Function UrlWithString(aUrlString As String) As Url

Parameters:

  • aUrlString:

UrlWithUnixPath

Create an url from a unix path.

 

class method UrlWithUnixPath(aPath: not nullable String) isDirectory(aIsDirectory: Boolean): not nullable Url

 

static Url! UrlWithUnixPath(String! aPath) isDirectory(Boolean aIsDirectory)

 

static func UrlWithUnixPath(_ aPath: String, isDirectory aIsDirectory: Boolean) -> Url

 

static Url UrlWithUnixPath(String aPath) isDirectory(Boolean aIsDirectory)

 

Shared Function UrlWithUnixPath(aPath As String) isDirectory(aIsDirectory As Boolean) As Url

Parameters:

  • aPath:
  • aIsDirectory:

UrlWithWindowsPath

Create an url from a windows path.

 

class method UrlWithWindowsPath(aPath: not nullable String) isDirectory(aIsDirectory: Boolean): not nullable Url

 

static Url! UrlWithWindowsPath(String! aPath) isDirectory(Boolean aIsDirectory)

 

static func UrlWithWindowsPath(_ aPath: String, isDirectory aIsDirectory: Boolean) -> Url

 

static Url UrlWithWindowsPath(String aPath) isDirectory(Boolean aIsDirectory)

 

Shared Function UrlWithWindowsPath(aPath As String) isDirectory(aIsDirectory As Boolean) As Url

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

WindowsPathRelativeToUrl (not nullable Url) Always(Boolean): String

Returns the path as windows path, relative to another url.

 

method WindowsPathRelativeToUrl(aUrl: not nullable Url) Always(aAlways: Boolean): String

 

String WindowsPathRelativeToUrl(Url! aUrl) Always(Boolean aAlways)

 

func WindowsPathRelativeToUrl(_ aUrl: Url, Always aAlways: Boolean) -> String

 

String WindowsPathRelativeToUrl(Url aUrl) Always(Boolean aAlways)

 

Function WindowsPathRelativeToUrl(aUrl As Url) Always(aAlways As Boolean) As String

Parameters:

  • aUrl:
  • aAlways:

WindowsPathRelativeToUrl (not nullable Url) Threshold(Int32): nullable String

Returns the path as windows path, relative to another url.

 

method WindowsPathRelativeToUrl(aUrl: not nullable Url) Threshold(aThreshold: Int32): nullable String

 

String? WindowsPathRelativeToUrl(Url! aUrl) Threshold(Int32 aThreshold)

 

// Toffee
func WindowsPathRelativeToUrl(_ aUrl: Url, Threshold aThreshold: Int32) -> String
// ToffeeV2
func WindowsPathRelativeToUrl(_ aUrl: Url, Threshold aThreshold: Int32) -> String?

 

String WindowsPathRelativeToUrl(Url aUrl) Threshold(Integer aThreshold)

 

Function WindowsPathRelativeToUrl(aUrl As Url) Threshold(aThreshold As Int32) As String?

Parameters:

  • aUrl:
  • aThreshold:

WindowsPathWithoutLastComponent

Returns the path as windows path, with the last part removed.

 

property WindowsPathWithoutLastComponent: String read;

 

String WindowsPathWithoutLastComponent { get; }

 

var WindowsPathWithoutLastComponent: String { get{} }

 

String WindowsPathWithoutLastComponent { __get; }

 

ReadOnly Property WindowsPathWithoutLastComponent() As String

 

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 Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-UIKit for Mac-x86_64, 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 Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-UIKit for Mac-x86_64, 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 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 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.

 

property WindowsPathWithoutLastComponent: String read;

 

String WindowsPathWithoutLastComponent { get; }

 

var WindowsPathWithoutLastComponent: String { get{} }

 

String WindowsPathWithoutLastComponent { __get; }

 

ReadOnly Property WindowsPathWithoutLastComponent() As String

 

AddPercentEncodingsToPath

Use % encodings to encode the input string.

 

class method AddPercentEncodingsToPath(aString: String): String

 

static String AddPercentEncodingsToPath(String aString)

 

static func AddPercentEncodingsToPath(_ aString: String) -> String

 

static String AddPercentEncodingsToPath(String aString)

 

Shared Function AddPercentEncodingsToPath(aString As String) As String

Parameters:

  • aString:

RemovePercentEncodingsFromPath

Decodes a % encoding path.

 

class method RemovePercentEncodingsFromPath(aString: String; aAlsoRemovePlusCharacter: Boolean): String

 

static String RemovePercentEncodingsFromPath(String aString, Boolean aAlsoRemovePlusCharacter)

 

static func RemovePercentEncodingsFromPath(_ aString: String, _ aAlsoRemovePlusCharacter: Boolean) -> String

 

static String RemovePercentEncodingsFromPath(String aString, Boolean aAlsoRemovePlusCharacter)

 

Shared Function RemovePercentEncodingsFromPath(aString As String, aAlsoRemovePlusCharacter As Boolean) As String

Parameters:

  • aString:
  • aAlsoRemovePlusCharacter:

TryRemovePercentEncodingsFromPath

Try parse % encoding.

 

class method TryRemovePercentEncodingsFromPath(aString: String; aAlsoRemovePlusCharacter: Boolean): nullable String

 

static String? TryRemovePercentEncodingsFromPath(String aString, Boolean aAlsoRemovePlusCharacter)

 

// Toffee
static func TryRemovePercentEncodingsFromPath(_ aString: String, _ aAlsoRemovePlusCharacter: Boolean) -> String
// ToffeeV2
static func TryRemovePercentEncodingsFromPath(_ aString: String, _ aAlsoRemovePlusCharacter: Boolean) -> String?

 

static String TryRemovePercentEncodingsFromPath(String aString, Boolean aAlsoRemovePlusCharacter)

 

Shared Function TryRemovePercentEncodingsFromPath(aString As String, aAlsoRemovePlusCharacter As Boolean) As String?

Parameters:

  • aString:
  • aAlsoRemovePlusCharacter:

TryUriWithString (String): Uri  virtual    (declared in Uri) Cooper, Toffee

Try parse an URL, returns null on failure.

 

static func TryUriWithString(_ aUriString: String) -> Uri

 

static Uri TryUriWithString(String aUriString)

Parameters:

  • aUriString:

TryUriWithString (nullable String): Uri    (declared in Uri) .NET, .NET Standard 2.0, Island, ToffeeV2

Try parse an URL, returns null on failure.

 

class method TryUriWithString(aUriString: nullable String): Uri

 

static Uri TryUriWithString(String? aUriString)

 

static func TryUriWithString(_ aUriString: String?) -> Uri

 

Shared Function TryUriWithString(aUriString As String?) As Uri

Parameters:

  • aUriString:

TryUrlWithString (String): Url  virtual Cooper, Toffee

Try parse an url.

 

static func TryUrlWithString(_ aUrlString: String) -> Url

 

static Url TryUrlWithString(String aUrlString)

Parameters:

  • aUrlString:

TryUrlWithString (nullable String): nullable Url .NET, .NET Standard 2.0, Island, ToffeeV2

Try parse an url.

 

class method TryUrlWithString(aUrlString: nullable String): nullable Url

 

static Url? TryUrlWithString(String? aUrlString)

 

static func TryUrlWithString(_ aUrlString: String?) -> Url?

 

Shared Function TryUrlWithString(aUrlString As String?) As Url?

Parameters:

  • aUrlString:

UriWithString    (declared in Uri)

Parse an URL, throws an exception on failure.

 

class method UriWithString(aUriString: not nullable String): Uri

 

static Uri UriWithString(String! aUriString)

 

static func UriWithString(_ aUriString: String) -> Uri

 

static Uri UriWithString(String aUriString)

 

Shared Function UriWithString(aUriString As String) As Uri

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

 

static Url UrlWithComponents(String aScheme, String aHost, Integer aPort, String aPath, String aQueryString, String aFragment, String aUser)

 

Shared Function UrlWithComponents(aScheme As String, aHost As String, aPort As Int32, aPath As String, aQueryString As String, aFragment As String, aUser As String) As Url

Parameters:

  • aScheme:
  • aHost:
  • aPort:
  • aPath:
  • aQueryString:
  • aFragment:
  • aUser:

UrlWithFilePath (not nullable String) isDirectory(Boolean): not nullable Url

Create an url from a file path.

 

class method UrlWithFilePath(aPath: not nullable String) isDirectory(aIsDirectory: Boolean): not nullable Url

 

static Url! UrlWithFilePath(String! aPath) isDirectory(Boolean aIsDirectory)

 

static func UrlWithFilePath(_ aPath: String, isDirectory aIsDirectory: Boolean) -> Url

 

static Url UrlWithFilePath(String aPath) isDirectory(Boolean aIsDirectory)

 

Shared Function UrlWithFilePath(aPath As String) isDirectory(aIsDirectory As Boolean) As Url

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)

 

static func UrlWithFilePath(_ aPath: String, relativeToUrl aUrl: Url, isDirectory aIsDirectory: Boolean) -> Url

 

static Url UrlWithFilePath(String aPath) relativeToUrl(Url aUrl) isDirectory(Boolean aIsDirectory)

 

Shared Function UrlWithFilePath(aPath As String) relativeToUrl(aUrl As Url) isDirectory(aIsDirectory As Boolean) As Url

Parameters:

  • aPath:
  • aUrl:
  • aIsDirectory:

UrlWithString

Create an url from a string.

 

class method UrlWithString(aUrlString: not nullable String): not nullable Url

 

static Url! UrlWithString(String! aUrlString)

 

static func UrlWithString(_ aUrlString: String) -> Url

 

static Url UrlWithString(String aUrlString)

 

Shared Function UrlWithString(aUrlString As String) As Url

Parameters:

  • aUrlString:

UrlWithUnixPath

Create an url from a unix path.

 

class method UrlWithUnixPath(aPath: not nullable String) isDirectory(aIsDirectory: Boolean): not nullable Url

 

static Url! UrlWithUnixPath(String! aPath) isDirectory(Boolean aIsDirectory)

 

static func UrlWithUnixPath(_ aPath: String, isDirectory aIsDirectory: Boolean) -> Url

 

static Url UrlWithUnixPath(String aPath) isDirectory(Boolean aIsDirectory)

 

Shared Function UrlWithUnixPath(aPath As String) isDirectory(aIsDirectory As Boolean) As Url

Parameters:

  • aPath:
  • aIsDirectory:

UrlWithWindowsPath

Create an url from a windows path.

 

class method UrlWithWindowsPath(aPath: not nullable String) isDirectory(aIsDirectory: Boolean): not nullable Url

 

static Url! UrlWithWindowsPath(String! aPath) isDirectory(Boolean aIsDirectory)

 

static func UrlWithWindowsPath(_ aPath: String, isDirectory aIsDirectory: Boolean) -> Url

 

static Url UrlWithWindowsPath(String aPath) isDirectory(Boolean aIsDirectory)

 

Shared Function UrlWithWindowsPath(aPath As String) isDirectory(aIsDirectory As Boolean) As Url

Parameters:

  • aPath:
  • aIsDirectory:

 

CanGetPathRelativeToUrl

Returns true if a path relative to the given url can be found.

 

method CanGetPathRelativeToUrl(aUrl: not nullable Url): Boolean

 

Boolean CanGetPathRelativeToUrl(Url! aUrl)

 

func CanGetPathRelativeToUrl(_ aUrl: Url) -> Boolean

 

Boolean CanGetPathRelativeToUrl(Url aUrl)

 

Function CanGetPathRelativeToUrl(aUrl As Url) As Boolean

Parameters:

  • aUrl:

compare    (declared in Uri) Toffee, ToffeeV2

 

func compare(_ rhs: Uri) -> NSComparisonResult

Parameters:

  • rhs:

CompareTo    (declared in Uri)

 

method CompareTo(rhs: Uri): Int32

 

Int32 CompareTo(Uri rhs)

 

func CompareTo(_ rhs: Uri) -> Int32

 

Integer CompareTo(Uri rhs)

 

Function CompareTo(rhs As Uri) As Int32

Parameters:

  • rhs:

CopyWithQueryString (String): not nullable Url  virtual Cooper, Toffee

Copy this url, with a different query string.

 

func CopyWithQueryString(_ aQueryString: String) -> Url

 

Url CopyWithQueryString(String aQueryString)

Parameters:

  • aQueryString:

CopyWithQueryString (nullable String): not nullable Url .NET, .NET Standard 2.0, Island, ToffeeV2

Copy this url, with a different query string.

 

method CopyWithQueryString(aQueryString: nullable String): not nullable Url

 

Url! CopyWithQueryString(String? aQueryString)

 

func CopyWithQueryString(_ aQueryString: String?) -> Url

 

Function CopyWithQueryString(aQueryString As String?) As Url

Parameters:

  • aQueryString:

description  override Toffee, ToffeeV2

 

func description() -> NSString

Equals (Object): Boolean  virtual .NET, .NET Standard 2.0, Cooper, Island-Android, Island-Ubuntu, Island-WebAssembly-wasm32, Island-Windows, Toffee

Returns true if this is equivalent with the passed argument.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj:

Equals (Object): Boolean  virtual ToffeeV2

Returns true if this is equivalent with the passed argument.

 

func Equals(_ obj: Object) -> Boolean

Parameters:

  • obj:

Equals (RemObjects.Elements.System.Island.Object): Boolean  override virtual Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-UIKit for Mac-x86_64, Island-watchOS, Island-watchOS Simulator

Returns true if this is equivalent with the passed argument.

 

method Equals(obj: RemObjects.Elements.System.Island.Object): Boolean

 

Boolean Equals(RemObjects.Elements.System.Island.Object obj)

 

func Equals(_ obj: RemObjects.Elements.System.Island.Object) -> Boolean

 

Function Equals(obj As RemObjects.Elements.System.Island.Object) As Boolean

Parameters:

  • obj:

FilePathRelativeToUrl (not nullable Url) Always(Boolean): String

Returns the file path, relative to an url, so adds ../ and ., if always is true, else goes to a maximum of 3.

 

method FilePathRelativeToUrl(aUrl: not nullable Url) Always(aAlways: Boolean): String

 

String FilePathRelativeToUrl(Url! aUrl) Always(Boolean aAlways)

 

func FilePathRelativeToUrl(_ aUrl: Url, Always aAlways: Boolean) -> String

 

String FilePathRelativeToUrl(Url aUrl) Always(Boolean aAlways)

 

Function FilePathRelativeToUrl(aUrl As Url) Always(aAlways As Boolean) As String

Parameters:

  • aUrl:
  • aAlways:

FilePathRelativeToUrl (not nullable Url) Threshold(Int32): nullable String

Returns the file path, relative to an url, so adds ../ and ., if always is true, else goes to a maximum of 3.

 

method FilePathRelativeToUrl(aUrl: not nullable Url) Threshold(aThreshold: Int32): nullable String

 

String? FilePathRelativeToUrl(Url! aUrl) Threshold(Int32 aThreshold)

 

// Toffee
func FilePathRelativeToUrl(_ aUrl: Url, Threshold aThreshold: Int32) -> String
// ToffeeV2
func FilePathRelativeToUrl(_ aUrl: Url, Threshold aThreshold: Int32) -> String?

 

String FilePathRelativeToUrl(Url aUrl) Threshold(Integer aThreshold)

 

Function FilePathRelativeToUrl(aUrl As Url) Threshold(aThreshold As Int32) As String?

Parameters:

  • aUrl:
  • aThreshold:

GetParentUrl

Returns this url with the last component stripped.

 

method GetParentUrl: nullable Url

 

Url? GetParentUrl()

 

// Toffee
func GetParentUrl() -> Url
// ToffeeV2
func GetParentUrl() -> Url?

 

Url GetParentUrl()

 

Function GetParentUrl() As Url?

IsUnderneath

Returns true if this url is underneat the base url passed.

 

method IsUnderneath(aPotentialBaseUrl: not nullable Url): Boolean

 

Boolean IsUnderneath(Url! aPotentialBaseUrl)

 

func IsUnderneath(_ aPotentialBaseUrl: Url) -> Boolean

 

Boolean IsUnderneath(Url aPotentialBaseUrl)

 

Function IsUnderneath(aPotentialBaseUrl As Url) As Boolean

Parameters:

  • aPotentialBaseUrl:

SubUrl (array of String) isDirectory(Boolean): not nullable Url

Create an url with the parameters as sub path relative to this. Optionally adds a slash at the end.

 

method SubUrl(params aComponents: array of String) isDirectory(aIsDirectory: Boolean): not nullable Url

 

Url! SubUrl(params String[] aComponents) isDirectory(Boolean aIsDirectory)

 

func SubUrl(_ aComponents: String..., isDirectory aIsDirectory: Boolean) -> Url

 

Url SubUrl(String[]... aComponents) isDirectory(Boolean aIsDirectory)

 

Function SubUrl(ParamArray aComponents As String()) isDirectory(aIsDirectory As Boolean) As Url

Parameters:

  • aComponents:
  • aIsDirectory:

SubUrl (array of String): not nullable Url

Create an url with the parameters as sub path relative to this. O

 

method SubUrl(params aComponents: array of String): not nullable Url

 

Url! SubUrl(params String[] aComponents)

 

func SubUrl(_ aComponents: String...) -> Url

 

Url SubUrl(String[]... aComponents)

 

Function SubUrl(ParamArray aComponents As String()) As Url

Parameters:

  • aComponents:

SubUrlWithFilePath (String) isDirectory(Boolean): not nullable Url

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.

 

method SubUrlWithFilePath(aSubPath: String) isDirectory(aIsDirectory: Boolean): not nullable Url

 

Url! SubUrlWithFilePath(String aSubPath) isDirectory(Boolean aIsDirectory)

 

func SubUrlWithFilePath(_ aSubPath: String, isDirectory aIsDirectory: Boolean) -> Url

 

Url SubUrlWithFilePath(String aSubPath) isDirectory(Boolean aIsDirectory)

 

Function SubUrlWithFilePath(aSubPath As String) isDirectory(aIsDirectory As Boolean) As Url

Parameters:

  • aSubPath:
  • aIsDirectory:

SubUrlWithFilePath (String): not nullable Url

Create an url with the parameters as sub path relative to this. Expects the subpath to be in the current systems path's format.

 

method SubUrlWithFilePath(aSubPath: String): not nullable Url

 

Url! SubUrlWithFilePath(String aSubPath)

 

func SubUrlWithFilePath(_ aSubPath: String) -> Url

 

Url SubUrlWithFilePath(String aSubPath)

 

Function SubUrlWithFilePath(aSubPath As String) As Url

Parameters:

  • aSubPath:

ToAbsoluteString

Returns the full url.

 

method ToAbsoluteString: String

 

String ToAbsoluteString()

 

func ToAbsoluteString() -> String

 

String ToAbsoluteString()

 

Function ToAbsoluteString() As String

ToString  virtual

Returns the full url.

 

method ToString: PlatformString

 

PlatformString ToString()

 

func ToString() -> String

 

PlatformString ToString()

 

Function ToString() As PlatformString

UnixPathRelativeToUrl (not nullable Url) Always(Boolean): String

Returns the path as unix path, relative to another url.

 

method UnixPathRelativeToUrl(aUrl: not nullable Url) Always(aAlways: Boolean): String

 

String UnixPathRelativeToUrl(Url! aUrl) Always(Boolean aAlways)

 

func UnixPathRelativeToUrl(_ aUrl: Url, Always aAlways: Boolean) -> String

 

String UnixPathRelativeToUrl(Url aUrl) Always(Boolean aAlways)

 

Function UnixPathRelativeToUrl(aUrl As Url) Always(aAlways As Boolean) As String

Parameters:

  • aUrl:
  • aAlways:

UnixPathRelativeToUrl (not nullable Url) Threshold(Int32): nullable String

Returns the path as unix path, relative to another url.

 

method UnixPathRelativeToUrl(aUrl: not nullable Url) Threshold(aThreshold: Int32): nullable String

 

String? UnixPathRelativeToUrl(Url! aUrl) Threshold(Int32 aThreshold)

 

// Toffee
func UnixPathRelativeToUrl(_ aUrl: Url, Threshold aThreshold: Int32) -> String
// ToffeeV2
func UnixPathRelativeToUrl(_ aUrl: Url, Threshold aThreshold: Int32) -> String?

 

String UnixPathRelativeToUrl(Url aUrl) Threshold(Integer aThreshold)

 

Function UnixPathRelativeToUrl(aUrl As Url) Threshold(aThreshold As Int32) As String?

Parameters:

  • aUrl:
  • aThreshold:

UrlWithAddedPathExtension

Retursn an url wih a different extension.

 

method UrlWithAddedPathExtension(aNewExtension: not nullable String): nullable Url

 

Url? UrlWithAddedPathExtension(String! aNewExtension)

 

// Toffee
func UrlWithAddedPathExtension(_ aNewExtension: String) -> Url
// ToffeeV2
func UrlWithAddedPathExtension(_ aNewExtension: String) -> Url?

 

Url UrlWithAddedPathExtension(String aNewExtension)

 

Function UrlWithAddedPathExtension(aNewExtension As String) As Url?

Parameters:

  • aNewExtension:

UrlWithChangedLastPathComponent

Returns an url with the last path component replaced.

 

method UrlWithChangedLastPathComponent(aNewLastPathComponent: not nullable String): nullable Url

 

Url? UrlWithChangedLastPathComponent(String! aNewLastPathComponent)

 

// Toffee
func UrlWithChangedLastPathComponent(_ aNewLastPathComponent: String) -> Url
// ToffeeV2
func UrlWithChangedLastPathComponent(_ aNewLastPathComponent: String) -> Url?

 

Url UrlWithChangedLastPathComponent(String aNewLastPathComponent)

 

Function UrlWithChangedLastPathComponent(aNewLastPathComponent As String) As Url?

Parameters:

  • aNewLastPathComponent:

UrlWithChangedPathExtension (String): Url  virtual Cooper, Toffee

Change an url's last part extension.

 

func UrlWithChangedPathExtension(_ aNewExtension: String) -> Url

 

Url UrlWithChangedPathExtension(String aNewExtension)

Parameters:

  • aNewExtension:

UrlWithChangedPathExtension (nullable String): nullable Url .NET, .NET Standard 2.0, Island, ToffeeV2

Change an url's last part extension.

 

method UrlWithChangedPathExtension(aNewExtension: nullable String): nullable Url

 

Url? UrlWithChangedPathExtension(String? aNewExtension)

 

func UrlWithChangedPathExtension(_ aNewExtension: String?) -> Url?

 

Function UrlWithChangedPathExtension(aNewExtension As String?) As Url?

Parameters:

  • aNewExtension:

UrlWithFragment (String): not nullable Url  virtual Cooper, Toffee

Create an url with just a fragment.

 

func UrlWithFragment(_ aFragment: String) -> Url

 

Url UrlWithFragment(String aFragment)

Parameters:

  • aFragment:

UrlWithFragment (nullable String): not nullable Url .NET, .NET Standard 2.0, Island, ToffeeV2

Create an url with just a fragment.

 

method UrlWithFragment(aFragment: nullable String): not nullable Url

 

Url! UrlWithFragment(String? aFragment)

 

func UrlWithFragment(_ aFragment: String?) -> Url

 

Function UrlWithFragment(aFragment As String?) As Url

Parameters:

  • aFragment:

UrlWithoutFragment

Remove the fragment from an url.

 

method UrlWithoutFragment: not nullable Url

 

Url! UrlWithoutFragment()

 

func UrlWithoutFragment() -> Url

 

Url UrlWithoutFragment()

 

Function UrlWithoutFragment() As Url

UrlWithRelativeOrAbsoluteFileSubPath

Create an url with aSubPath added or if it's a full path, replaced.

 

method UrlWithRelativeOrAbsoluteFileSubPath(aSubPath: not nullable String): nullable Url

 

Url? UrlWithRelativeOrAbsoluteFileSubPath(String! aSubPath)

 

// Toffee
func UrlWithRelativeOrAbsoluteFileSubPath(_ aSubPath: String) -> Url
// ToffeeV2
func UrlWithRelativeOrAbsoluteFileSubPath(_ aSubPath: String) -> Url?

 

Url UrlWithRelativeOrAbsoluteFileSubPath(String aSubPath)

 

Function UrlWithRelativeOrAbsoluteFileSubPath(aSubPath As String) As Url?

Parameters:

  • aSubPath:

UrlWithRelativeOrAbsoluteWindowsSubPath

Create an url with aSubPath as a windows path added or if it's a full path, replaced.

 

method UrlWithRelativeOrAbsoluteWindowsSubPath(aSubPath: not nullable String): nullable Url

 

Url? UrlWithRelativeOrAbsoluteWindowsSubPath(String! aSubPath)

 

// Toffee
func UrlWithRelativeOrAbsoluteWindowsSubPath(_ aSubPath: String) -> Url
// ToffeeV2
func UrlWithRelativeOrAbsoluteWindowsSubPath(_ aSubPath: String) -> Url?

 

Url UrlWithRelativeOrAbsoluteWindowsSubPath(String aSubPath)

 

Function UrlWithRelativeOrAbsoluteWindowsSubPath(aSubPath As String) As Url?

Parameters:

  • aSubPath:

WindowsPathRelativeToUrl (not nullable Url) Always(Boolean): String

Returns the path as windows path, relative to another url.

 

method WindowsPathRelativeToUrl(aUrl: not nullable Url) Always(aAlways: Boolean): String

 

String WindowsPathRelativeToUrl(Url! aUrl) Always(Boolean aAlways)

 

func WindowsPathRelativeToUrl(_ aUrl: Url, Always aAlways: Boolean) -> String

 

String WindowsPathRelativeToUrl(Url aUrl) Always(Boolean aAlways)

 

Function WindowsPathRelativeToUrl(aUrl As Url) Always(aAlways As Boolean) As String

Parameters:

  • aUrl:
  • aAlways:

WindowsPathRelativeToUrl (not nullable Url) Threshold(Int32): nullable String

Returns the path as windows path, relative to another url.

 

method WindowsPathRelativeToUrl(aUrl: not nullable Url) Threshold(aThreshold: Int32): nullable String

 

String? WindowsPathRelativeToUrl(Url! aUrl) Threshold(Int32 aThreshold)

 

// Toffee
func WindowsPathRelativeToUrl(_ aUrl: Url, Threshold aThreshold: Int32) -> String
// ToffeeV2
func WindowsPathRelativeToUrl(_ aUrl: Url, Threshold aThreshold: Int32) -> String?

 

String WindowsPathRelativeToUrl(Url aUrl) Threshold(Integer aThreshold)

 

Function WindowsPathRelativeToUrl(aUrl As Url) Threshold(aThreshold As Int32) As String?

Parameters:

  • aUrl:
  • aThreshold: