Function

IpuzCharsetdeserialize

Declaration [src]

IpuzCharset*
ipuz_charset_deserialize (
  const char* str
)

Description [src]

Creates a new character set by deserializing from a string.

As an example:

IpuzCharset *alphabet;

alphabet = ipuz_charset_deserialize ("ABCDEFGHIJKLMNOPQRSTUVWXYZ");

Parameters

str

Type: const char*

String serialization of a character set, as returned by ipuz_charset_serialize().

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

Return value

Type: IpuzCharset

A newly allocated IpuzCharset

The caller of the function takes ownership of the data, and is responsible for freeing it.