al_utf16_encode(3alleg5)
β¨ NAME β¨
al_utf16_encode β Allegro 5 API. periodt. π
okay bestie, this is the al_utf16_encode(3alleg5) manual page, and it's here to help you encode code points into UTF-16. let's get into it π¦
π¦ SYNOPSIS π¦
#include <allegro5/allegro.h>
size_t al_utf16_encode(uint16_t s[], int32_t c)
π DESCRIPTION π
So basically, al_utf16_encode encodes the specified code point to UTF-16 into the buffer s. The buffer must have enough space to hold the encoding, which takes either 2 or 4 bytes. no cap. π«Ά
This routine will refuse to encode code points above 0x10FFFF. it said what it said, bestie π«
It returns the number of bytes written, which is the same as that returned by al_utf16_width(3alleg5). slay. β¨
π SEE ALSO π
source: Allegro reference manual β al_utf16_encode(3alleg5) β and the footer didn't hand us a date, so that's the whole sign-off vibe π
π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms