isValid

fun isValid(uriString: String, flags: UriFlags): <Error class: unknown class><Boolean>

Parses @uri_string according to @flags, to determine whether it is a valid relative-absolute-uris, 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 #GUriFlags, for more information on the effect of @flags.

Return

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

Since

2.66

Parameters

uriString

a string containing an absolute URI

flags

flags for parsing @uri_string