Method

IdeEditorSearchget_search_text_invalid

since: 3.32

Declaration

gboolean
ide_editor_search_get_search_text_invalid (
  IdeEditorSearch* self,
  guint* invalid_begin,
  guint* invalid_end,
  GError** error
)

Description

Checks to see if the search text contains invalid contents, such as an invalid regex.

Available since: 3.32

Parameters

invalid_begin

Type: guint*

A begin location for the invalid range.

The argument will be set by the function.
The argument can be set to NULL by the method.
invalid_end

Type: guint*

An end location for the invalid range.

The argument will be set by the function.
The argument can be set to NULL by the method.
error

Type: GError **

The return location for a recoverable error.

The argument can be NULL.
If the return location is not NULL, then you must initialize it to a NULL GError*.
The argument will left initialized to NULL by the method if there are no errors.
In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.

Return value

Type: gboolean

TRUE if the search text contains invalid content. If TRUE, then invalid_begin and invalid_end is set.