al_utf16_encode(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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