Uri.splitWithUser

Parses uri_ref (which can be an absolute or relative URI) according to flags, and returns the pieces. Any component that doesn't appear in uri_ref will be returned as null (but note that all URIs always have a path component, though it may be the empty string).

See glib.uri.Uri.split, and the definition of #GUriFlags, for more information on the effect of flags. Note that password will only be parsed out if flags contains G_URI_FLAGS_HAS_PASSWORD, and auth_params will only be parsed out if flags contains G_URI_FLAGS_HAS_AUTH_PARAMS.

class Uri
static
bool
splitWithUser
(
string uriRef
,,
out string scheme
,
out string user
,
out string password
,
out string authParams
,
out string host
,
out int port
,
out string path
,
out string query
,
out string fragment
)

Parameters

uriRef string

a string containing a relative or absolute URI

flags glib.types.UriFlags

flags for parsing uri_ref

scheme string

on return, contains the scheme (converted to lowercase), or null

user string

on return, contains the user, or null

password string

on return, contains the password, or null

authParams string

on return, contains the auth_params, or null

host string

on return, contains the host, or null

port int

on return, contains the port, or -1

path string

on return, contains the path

query string

on return, contains the query, or null

fragment string

on return, contains the fragment, or null

Return Value

Type: bool

true if uri_ref parsed successfully, false on error.