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 GtkTextBuffer
 

The GtkTextBuffer instance.

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

The starting point to get.

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

The ending point to get.

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

A return address for the length of text extracted.

 The data is owned by the caller of the function.

Return value

Returns: 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.