UriParamsIter.next

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.

Note that the same @attribute may be returned multiple times, since URIs allow repeated attributes.

class UriParamsIter
bool
next
(
out string attribute
,
out string value
)

Parameters

attribute string

on return, contains the attribute, or %NULL.

value string

on return, contains the value, or %NULL.

Return Value

Type: bool

%FALSE if the end of the parameters has been reached or an error was encountered. %TRUE otherwise.

Throws

GException on failure.

Meta

Since

2.66