Function

GLibstrcompress

Declaration [src]

gchar*
g_strcompress (
  const gchar* source
)

Description [src]

Replaces all escaped characters with their one byte equivalent.

This function does the reverse conversion of g_strescape().

Parameters

source const gchar*
 

A string to compress.

 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 copy of source with all escaped character compressed.

 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.