1al_ustr_next(3)                                                al_ustr_next(3)
2
3
4

NAME

6       al_ustr_next - Allegro 5 API
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
17       Returns true on success, and the value pointed to by pos will be updat‐
18       ed to the found offset.  Otherwise returns false if *pos was already at
19       the end of the string, and *pos is unmodified.
20
21       This function just looks for an appropriate byte; it doesn't  check  if
22       found  offset is the beginning of a valid code point.  If you are work‐
23       ing with possibly invalid UTF-8 strings then it could  skip  over  some
24       invalid bytes.
25

SEE ALSO

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