-
Notifications
You must be signed in to change notification settings - Fork 1
system.uri
load system.uri
This module provides tools to works with Uniform Resource Identifiers (URI).
This class manage an Uniform Resource Locator.
Modifiers | Member | Description |
---|---|---|
- class
|
Parser | This class provides a parser to extract informations from an URL string. |
- @ const
|
ReDriveLetterPath | |
+ @ const
|
escapeString | Returns the content of str with special characters escaped to be inserted i... |
- final
|
fragment | |
+ @ const
|
fromFilePath | Creates a new URL for a local file path. |
+ const
|
getFragment | Returns the fragment of the URL if it is defined; otherwise none is returned. |
+ const
|
getHost | Returns the host of the URL if it is defined; otherwise none is returned. |
+ const
|
getParams | Returns the parameters of the URL. |
+ const
|
getPassword | Returns the password of the URL if it is defined; otherwise none is returned. |
+ const
|
getPath | Returns the path of the URL. |
+ const
|
getPort | Returns the port of the URL if it is defined; otherwise none is returned. |
+ const
|
getQuery | Returns the query string of the URL if it is defined; otherwise none is ret... |
+ const
|
getScheme | Returns the scheme part of the URL. |
+ const
|
getUserName | Returns the user name of the URL if it is defined; otherwise none is return... |
- final
|
host | |
+ const
|
isLocalFile | Returns true if this URL is pointing to a local file path; otherwise return... |
+ const
|
new | Creates a new URL for the ressource identified by url . If url is an insta... |
- final
|
params | |
- final
|
password | |
- final
|
path | |
- final
|
port | |
- final
|
query | |
- final
|
scheme | |
+ const
|
setPath | Sets the path of the URL to path . |
+ const
|
setScheme | Sets the scheme part of the URL to scheme . |
+ const
|
toFile | Returns the ressource identified by the URL as an instance of System.File or ... |
+ const
|
toString | Returns a string representation of the URL. |
+ @ const
|
unescapeString | Returns the content of str with special characters unescaped to be extracte... |
- final
|
user |
This class provides a parser to extract informations from an URL string.
Modifiers | Member | Description |
---|---|---|
- @ const
|
ReNetloc | |
- @ const
|
ReUrl | |
+ final
|
fragment | |
+ final
|
host | |
+ final
|
params | |
+ const
|
parse | Setups the object properties using the URL string given by url . Returns t ... |
+ const
|
parsePath | |
+ const
|
parseQuery | |
+ final
|
password | |
+ final
|
path | |
+ final
|
port | |
+ final
|
query | |
+ final
|
scheme | |
+ @ const
|
unescapeString | Returns the content of str with escape sequences replaced by the correspond... |
+ final
|
user |
This class manage an Uniform Resource Name.
Modifiers | Member | Description |
---|
/^(?:([a-zA-Z0-9\+\-\.]*)(?::([a-zA-Z0-9\+\-\.]*))?@)?([a-zA-Z0-9\+\-\.]*)(?::([a-zA-Z0-9\+\-\.]*))?$/
/^(?:([a-zA-Z][a-zA-Z0-9\+\-\.]*):(?:\/\/)?)?([a-zA-Z0-9\+\-\.%_~!\$&'\(\)\*,;=:@\/]+)(?:\?([a-zA-Z0-9\+\-\.%_~!\$&'\(\)\*,;=:@\/\?]+))?(?:#([a-zA-Z0-9\+\-\.%_~!\$&'\(\)\*,;=:@\/\?]+))?$/
none
none
none
def (self, url)
Setups the object properties using the URL string given by url
.
Returns true
on success; otherwise returns false
.
def (self, path)
def (self, query)
none
none
none
none
none
def (str)
Returns the content of str
with escape sequences replaced by the
corresponding character.
none
/^\/[a-zA-Z]:/
def (const str)
Returns the content of str
with special characters escaped to be
inserted in an URL string.
none
def (const filePath)
Creates a new URL for a local file path.
def (const self)
Returns the fragment of the URL if it is defined; otherwise none
is returned.
def (const self)
Returns the host of the URL if it is defined; otherwise none
is
returned.
def (const self)
Returns the parameters of the URL.
def (const self)
Returns the password of the URL if it is defined; otherwise none
is returned.
def (const self)
Returns the path of the URL.
def (const self)
Returns the port of the URL if it is defined; otherwise none
is
returned.
def (const self)
Returns the query string of the URL if it is defined; otherwise none
is returned.
def (const self)
Returns the scheme part of the URL.
def (const self)
Returns the user name of the URL if it is defined; otherwise none
is returned.
none
def (const self)
Returns true
if this URL is pointing to a local file path; otherwise
returns false
. A URL is a local file path if the scheme is "file".
def (self, url)
Creates a new URL for the ressource identified by url
.
If url
is an instance of System.Url, this instance is returned.
If desc
is a string, it is parsed to retrieve the ressource
informations. If the string is not a valid URL, none
is returned.
If desc
provides a toUrl
method, this method is used to create
the returned value; otherwise none
is returned.
none
none
none
none
none
none
def (self, path)
Sets the path of the URL to path
.
def (self, scheme)
Sets the scheme part of the URL to scheme
.
def (const self)
Returns the ressource identified by the URL as an instance of
System.File or none
if this URL is not pointing to a local file.
def (const self)
Returns a string representation of the URL.
def (const str)
Returns the content of str
with special characters unescaped to be
extracted from an URL string.
none
Language reference
- Introduction
- Variables
- Built-in types
- Arithmetic operations
- Type casting
- Control structures
- Function definition
- User defined types
- Work with modules
Library reference