split_with_user
Description:
public static bool split_with_user (string uri_string, UriFlags flags, out string? scheme, out string? user, out string? password, out string? auth_params, out string? host, out int port, out string? path, out string? query, out string? fragment) throws UriError
Parses uri_ref (which can be an [absolute or relative URI](relative-and-absolute-uris)) 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 split, and the definition of
UriFlags, 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.
Parameters:
| flags |
flags for parsing |
| scheme |
on return, contains the scheme (converted to lowercase), or null |
| user |
on return, contains the user, or null |
| password |
on return, contains the password, or null |
| auth_params |
on return, contains the auth_params, or null |
| host |
on return, contains the host, or null |
| port |
on return, contains the port, or `-1` |
| path |
on return, contains the path |
| query |
on return, contains the query, or null |
| fragment |
on return, contains the fragment, or null |
| uri_ref |
a string containing a relative or absolute URI |
Returns:
|
true if |