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

NAME

6       al_utf16_encode
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              size_t al_utf16_encode(uint16_t s[], int32_t c)
12

DESCRIPTION

14       Encode the specified code point to UTF–8 into the buffer s.  The buffer
15       must have enough space to hold the encoding, which takes either 2 or  4
16       bytes.  This routine will refuse to encode code points above 0x10FFFF.
17
18       Returns the number of bytes written, which is the same as that returned
19       by al_utf16_width(3).
20

SEE ALSO

22       al_utf8_encode(3), al_ustr_encode_utf16(3)
23
24
25
26Allegro reference manual                                    al_utf16_encode(3)
Impressum