UriParamsIter

Many URI schemes include one or more attribute/value pairs as part of the URI value. For example scheme://server/path?query=string&is=there has two attributes – query=string and is=there – in its query part.

A #GUriParamsIter structure represents an iterator that can be used to iterate over the attribute/value pairs of a URI query string. #GUriParamsIter structures are typically allocated on the stack and then initialized with g_uri_params_iter_init(). See the documentation for g_uri_params_iter_init() for a usage example.

Constructors

this
this(GUriParamsIter* gUriParamsIter, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

getStruct
void* getStruct()

the main Gtk struct as a void*

getUriParamsIterStruct
GUriParamsIter* getUriParamsIterStruct(bool transferOwnership)

Get the main Gtk struct

init
void init(string params, ptrdiff_t length, string separators, GUriParamsFlags flags)

Initializes an attribute/value pair iterator.

next
bool next(string attribute, string value)

Advances @iter and retrieves the next attribute/value. %FALSE is returned if an error has occurred (in which case @error is set), or if the end of the iteration is reached (in which case @attribute and @value are set to %NULL and the iterator becomes invalid). If %TRUE is returned, g_uri_params_iter_next() may be called again to receive another attribute/value pair.

Variables

gUriParamsIter
GUriParamsIter* gUriParamsIter;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta

Since

2.66