is_valid


Description:

[ Version ( since = "2.66" ) ]
public static bool is_valid (string uri_string, UriFlags flags) throws UriError

Parses uri_string according to flags, to determine whether it is a valid [absolute URI](relative -and-absolute-uris), i.

e. it does not need to be resolved relative to another URI using parse_relative.

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

See split, and the definition of UriFlags, for more information on the effect of flags.

Parameters:

uri_string

a string containing an absolute URI

flags

flags for parsing uri_string

Returns:

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