1al_ustr_prev(3)                                                al_ustr_prev(3)
2
3
4

NAME

6       al_ustr_prev - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              bool al_ustr_prev(const ALLEGRO_USTR *us, int *pos)
12

DESCRIPTION

14       Find the byte offset of the previous code point in string, before *pos.
15       *pos does not have to be at the beginning of  a  code  point.   Returns
16       true on success, and the value pointed to by pos will be updated to the
17       found offset.  Otherwise returns false if *pos was already at  the  end
18       of the string, and *pos is unmodified.
19
20       This  function  just looks for an appropriate byte; it doesn't check if
21       found offset is the beginning of a valid code point.  If you are  work‐
22       ing  with  possibly  invalid UTF-8 strings then it could skip over some
23       invalid bytes.
24

SEE ALSO

26       al_ustr_next(3)
27
28
29
30Allegro reference manual                                       al_ustr_prev(3)
Impressum