The predicate function used by forward_find_char and backward_find_char.
| ch |
a Unicode code point |
| user_data |
data passed to the callback |
|
true if the predicate is satisfied, and the iteration should stop, and false otherwise |