Function

GLib-2.0GLiburi_is_validSince 2.66

  • Parses uri_string according to flags, to determine whether it is a valid absolute URI, i.e. it does not need to be resolved relative to another URI using g_uri_parse_relative().

    If it’s not a valid URI, an error is returned explaining how it’s invalid.

    See g_uri_split(), and the definition of GLib.UriFlags, for more information on the effect of flags.

    Parameters

    • uri_string: string

      a string containing an absolute URI

    • flags: GLib.UriFlags

      flags for parsing uri_string

    Returns boolean

    true if uri_string is a valid absolute URI, false on error.

    2.66