Function

Purpleutf8_ncr_decode

Declaration [src]

char*
purple_utf8_ncr_decode (
  const char* in
)

Description [src]

Given a string, this replaces any numerical character references in that string with the corresponding actual utf-8 substrings, and returns a newly allocated string.

Parameters

in const char*
 

The string which might contain numerical character references.

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

Return value

Returns: char*
 

A new string, with numerical character references replaced with actual utf-8, free this with g_free().

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