1al_ustr_encode_utf16(3) Library Functions Manual al_ustr_encode_utf16(3)
2
3
4
6 al_ustr_encode_utf16
7
9 #include <allegro5/allegro.h>
10
11 size_t al_ustr_encode_utf16(const ALLEGRO_USTR *us, uint16_t *s,
12 size_t n)
13
15 Encode the string into the given buffer, in UTF–16. Returns the number
16 of bytes written. There are never more than n bytes written. The min‐
17 imum size to encode the complete string can be queried with
18 al_ustr_size_utf16(3). If the n parameter is smaller than that, the
19 string will be truncated but still always 0 terminated.
20
22 al_ustr_size_utf16(3), al_utf16_encode(3)
23
24
25
26Allegro reference manual al_ustr_encode_utf16(3)