Function

Ibisformatting_parse

since: 0.13

Declaration [src]

char*
ibis_formatting_parse (
  const char* text,
  PangoAttrList** attrs
)

Description [src]

Separates the raw text and its formatting.

Available since: 0.13

Parameters

text

Type: const char*

The text to parse.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
attrs

Type: PangoAttrList

A return address for the formatting attributes.

The argument will be set by the function.
The argument can be NULL.
The caller of the function takes ownership of the returned data, and is responsible for freeing it.

Return value

Type: char*

The raw text.

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