1al_ustr_next(3)            Library Functions Manual            al_ustr_next(3)
2
3
4

NAME

6       al_ustr_next
7

SYNOPSIS

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

DESCRIPTION

14       Find  the  byte  offset  of the next code point in string, beginning at
15       *pos.  *pos does not have to be at  the  beginning  of  a  code  point.
16       Returns  true  on success, then value pointed to by pos will be updated
17       to the found offset.  Otherwise returns false if *pos  was  already  at
18       the end of the string, then *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_prev(3)
27
28
29
30Allegro reference manual                                       al_ustr_next(3)
Impressum