Function

Trackersparql_escape_uri

Declaration [src]

gchar*
tracker_sparql_escape_uri (
  const gchar* uri
)

Description [src]

Escapes a string for use as a URI.

Parameters

uri const gchar*
 

A string to be escaped, following the tracker sparql rules.

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

Return value

Returns: gchar*
 

A newly-allocated string holding the result.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.