| Top |
void gtk_source_iter_get_leading_spaces_end_boundary (const GtkTextIter *iter,GtkTextIter *leading_end);
Gets the boundary, on iter
's line, between leading whitespaces (indentation)
and the text.
Since: 299.6
void gtk_source_iter_get_trailing_spaces_start_boundary (const GtkTextIter *iter,GtkTextIter *trailing_start);
Gets the boundary, on iter
's line, between the end of the text and trailing
whitespaces.
Since: 299.6
gchar *
gtk_source_iter_get_line_indentation (const GtkTextIter *iter);
Gets the indentation, as a string, of the line at iter
. iter
can be
anywhere in the line.
Possible use-case: to implement an action that inserts some text in a GtkTextBuffer. If the text to insert spans multiple lines, it is sometimes desired to keep the same indentation level.
Since: 299.6
gboolean gtk_source_iter_starts_string (const GtkTextIter *iter,const gchar *str,GtkTextIter *match_end);
iter |
a GtkTextIter. |
|
str |
a non-empty UTF-8 string. |
|
match_end |
output for the GtkTextIter located at the end
of |
[out][optional] |
Since: 299.6
gboolean gtk_source_iter_ends_string (const GtkTextIter *iter,const gchar *str,GtkTextIter *match_start);
iter |
a GtkTextIter. |
|
str |
a non-empty UTF-8 string. |
|
match_start |
output for the GtkTextIter located at the
start of |
[out][optional] |
Since: 299.6