Method

GLibStringappend_uri_escaped

Declaration

GString*
g_string_append_uri_escaped (
  GString* string,
  const gchar* unescaped,
  const gchar* reserved_chars_allowed,
  gboolean allow_utf8
)

Description

Appends unescaped to string, escaping any characters that are reserved in URIs using URI-style escape sequences.

Available since:2.16

Parameters

unescaped const gchar*
 

A string.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
reserved_chars_allowed const gchar*
 

A string of reserved characters allowed to be used, or NULL.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
allow_utf8 gboolean
 

Set TRUE if the escaped string may include UTF8 characters.

Return value

Returns: GString
 

string.

 The data is owned by the instance.