Method

IdeCompletionContextget_line_text

since: 3.32

Declaration

gchar*
ide_completion_context_get_line_text (
  IdeCompletionContext* self
)

Description

This is a convenience helper to get the line text up until the insertion cursor for the current completion.

Available since: 3.32

Return value

Type: gchar*

A newly allocated string.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.