utils_decode_uri


Description:


public bool utils_decode_uri (string uri, out string scheme, out string user, out string host, out string port, out string path)

Parse and break an uri apart in its individual components like the uri scheme, user info, port, host and path.

The return value pointer can be null to ignore certain parts of the uri. If the function returns true, then all return value pointers should be freed using g_free

Parameters:

uri

the uri to decode

scheme

return value pointer for the uri's scheme (e.g. http, sftp, ...), or null

user

return value pointer for the uri user info, or null

host

return value pointer for the uri host, or null

port

return value pointer for the uri port, or null

path

return value pointer for the uri path, or null

Returns:

true if the uri could be properly decoded, false otherwise.


Namespace: Gedit
Package: gedit



2022 vala-language.org