Function

GLib-2.0GLiburi_split_with_userSince 2.66

  • 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 g_uri_split(), and the definition of GLib.UriFlags, for more information on the effect of flags. Note that password will only be parsed out if flags contains GLib.UriFlags.HAS_PASSWORD, and auth_params will only be parsed out if flags contains GLib.UriFlags.HAS_AUTH_PARAMS.

    Parameters

    • uri_ref: string

      a string containing a relative or absolute URI

    • flags: GLib.UriFlags

      flags for parsing uri_ref

    Returns [
        boolean,
        string,
        string,
        string,
        string,
        string,
        number,
        string,
        string,
        string,
    ]

    true if uri_ref parsed successfully, false on error.

    2.66