Function

IdeMarkedContentnew_from_data

Declaration

IdeMarkedContent*
ide_marked_content_new_from_data (
  const gchar* data,
  gssize len,
  IdeMarkedKind kind
)

Description

Creates a new IdeMarkedContent from the provided data.

Parameters

data

Type: const gchar*

The data for the content.

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

Type: gssize

The length of the data, or -1 to strlen() data.

kind

Type: IdeMarkedKind

The kind of markup.

Return value

Type: IdeMarkedContent

An IdeMarkedContent.

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