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)

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)

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

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

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)

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

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

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

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)

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)

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

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

Fragment

Returns the part after the #.

 

property Fragment: String read;

 

String Fragment { get; }

 

var Fragment: String { get{} }

 

String Fragment { __get; }

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

Host

Return the hostname part, of an url with server.

 

property Host: String read;

 

String Host { get; }

 

var Host: String { get{} }

 

String Host { __get; }

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

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

IsAbsoluteWindowsFileURL

True if this url is an absolute windows path .

 

property IsAbsoluteWindowsFileURL: Boolean read;

 

Boolean IsAbsoluteWindowsFileURL { get; }

 

var IsAbsoluteWindowsFileURL: Boolean { get{} }

 

Boolean IsAbsoluteWindowsFileURL { __get; }

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

IsFileUrl

True if this url points to a file:// url.

 

property IsFileUrl: Boolean read;

 

Boolean IsFileUrl { get; }

 

var IsFileUrl: Boolean { get{} }

 

Boolean IsFileUrl { __get; }

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)

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

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

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

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

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

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

QueryString

returns the query string part of this url, without ?

 

property QueryString: String read;

 

String QueryString { get; }

 

var QueryString: String { get{} }

 

String QueryString { __get; }

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)

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

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)

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)

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)

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)

Parameters:

  • aSubPath:

ToAbsoluteString

Returns the full url.

 

method ToAbsoluteString: String

 

String ToAbsoluteString()

 

func ToAbsoluteString() -> String

 

String ToAbsoluteString()

ToString  virtual

Returns the full url.

 

method ToString: PlatformString

 

PlatformString ToString()

 

func ToString() -> String

 

PlatformString ToString()

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)

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

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?

Parameters:

  • aUrlString:

UnixPath

Returns the path as unix path.

 

property UnixPath: String read;

 

String UnixPath { get; }

 

var UnixPath: String { get{} }

 

String UnixPath { __get; }

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)

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)

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

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)

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)

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)

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?

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)

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)

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)

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

Parameters:

  • aFragment:

UrlWithoutFragment

Remove the fragment from an url.

 

method UrlWithoutFragment: not nullable Url

 

Url! UrlWithoutFragment()

 

func UrlWithoutFragment() -> Url

 

Url! UrlWithoutFragment()

UrlWithoutLastComponent

remove the last component from an url.

 

property UrlWithoutLastComponent: Url read;

 

Url UrlWithoutLastComponent { get; }

 

var UrlWithoutLastComponent: Url { get{} }

 

Url UrlWithoutLastComponent { __get; }

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)

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)

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)

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)

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)

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

WindowsPath

Returns the windows path from this url, or nil.

 

property WindowsPath: String read;

 

String WindowsPath { get; }

 

var WindowsPath: String { get{} }

 

String WindowsPath { __get; }

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)

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)

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

 

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

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

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

FilePathWithoutLastComponent

Returns the filepath, with the last component removed.

 

property FilePathWithoutLastComponent: String read;

 

String FilePathWithoutLastComponent { get; }

 

var FilePathWithoutLastComponent: String { get{} }

 

String FilePathWithoutLastComponent { __get; }

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

Fragment

Returns the part after the #.

 

property Fragment: String read;

 

String Fragment { get; }

 

var Fragment: String { get{} }

 

String Fragment { __get; }

Host

Return the hostname part, of an url with server.

 

property Host: String read;

 

String Host { get; }

 

var Host: String { get{} }

 

String Host { __get; }

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

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

IsAbsoluteWindowsFileURL

True if this url is an absolute windows path .

 

property IsAbsoluteWindowsFileURL: Boolean read;

 

Boolean IsAbsoluteWindowsFileURL { get; }

 

var IsAbsoluteWindowsFileURL: Boolean { get{} }

 

Boolean IsAbsoluteWindowsFileURL { __get; }

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

IsFileUrl

True if this url points to a file:// url.

 

property IsFileUrl: Boolean read;

 

Boolean IsFileUrl { get; }

 

var IsFileUrl: Boolean { get{} }

 

Boolean IsFileUrl { __get; }

LastPathComponent

Returns the last path component of this url.

 

property LastPathComponent: String read;

 

String LastPathComponent { get; }

 

var LastPathComponent: String { get{} }

 

String LastPathComponent { __get; }

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

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

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

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

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

QueryString

returns the query string part of this url, without ?

 

property QueryString: String read;

 

String QueryString { get; }

 

var QueryString: String { get{} }

 

String QueryString { __get; }

Scheme

Returns the URL schema (first part of the url)

 

property Scheme: String read;

 

String Scheme { get; }

 

var Scheme: String { get{} }

 

String Scheme { __get; }

UnixPath

Returns the path as unix path.

 

property UnixPath: String read;

 

String UnixPath { get; }

 

var UnixPath: String { get{} }

 

String UnixPath { __get; }

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

UrlWithoutLastComponent

remove the last component from an url.

 

property UrlWithoutLastComponent: Url read;

 

Url UrlWithoutLastComponent { get; }

 

var UrlWithoutLastComponent: Url { get{} }

 

Url UrlWithoutLastComponent { __get; }

User

Returns the user part of the url.

 

property User: String read;

 

String User { get; }

 

var User: String { get{} }

 

String User { __get; }

WindowsPath

Returns the windows path from this url, or nil.

 

property WindowsPath: String read;

 

String WindowsPath { get; }

 

var WindowsPath: String { get{} }

 

String WindowsPath { __get; }

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

 

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)

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)

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)

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

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?

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)

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)

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)

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)

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)

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)

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)

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)

Parameters:

  • aUrl:

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

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)

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

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)

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)

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

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)

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)

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)

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)

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)

Parameters:

  • aSubPath:

ToAbsoluteString

Returns the full url.

 

method ToAbsoluteString: String

 

String ToAbsoluteString()

 

func ToAbsoluteString() -> String

 

String ToAbsoluteString()

ToString  virtual

Returns the full url.

 

method ToString: PlatformString

 

PlatformString ToString()

 

func ToString() -> String

 

PlatformString ToString()

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)

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)

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)

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)

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?

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

Parameters:

  • aFragment:

UrlWithoutFragment

Remove the fragment from an url.

 

method UrlWithoutFragment: not nullable Url

 

Url! UrlWithoutFragment()

 

func UrlWithoutFragment() -> Url

 

Url! UrlWithoutFragment()

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)

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)

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)

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)

Parameters:

  • aUrl:
  • aThreshold: