Function

Talkatumarkup_get_html_range

Declaration [src]

gchar*
talkatu_markup_get_html_range (
  GtkTextBuffer* buffer,
  const GtkTextIter* start,
  const GtkTextIter* end,
  gsize* len
)

Description [src]

Extracts a section of buffer into an HTML string.

Parameters

buffer

Type: GtkTextBuffer

The GtkTextBuffer instance.

The data is owned by the caller of the function.
start

Type: GtkTextIter

The starting point to get.

The data is owned by the caller of the function.
end

Type: GtkTextIter

The ending point to get.

The data is owned by the caller of the function.
len

Type: gsize*

A return address for the length of text extracted.

The data is owned by the caller of the function.

Return value

Type: gchar*

The HTML string.

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.