Gtk.TextIter.prototype.forward_find_char

function forward_find_char(pred:Gtk.TextCharPredicate, limit:Gtk.TextIter):Boolean {
    // Gjs wrapper for gtk_text_iter_forward_find_char()
}

Advances iter, calling pred on each character. If pred returns true, returns true and stops scanning. If pred never returns true, iter is set to limit if limit is non-null, otherwise to the end iterator.

pred

a function to be called on each character

limit

search limit, or null for none

Returns

whether a match was found