al_ustr_compare(3)
al_ustr_compare(3) β Allegro 5 API β¨
okay so this page is from the Library Functions Manual, and it's serving the Allegro 5 API / Allegro reference manual vibe. Bestie, we're comparing two ALLEGRO_USTR strings by code point values, and it's giving "tiny function, very important energy." π
πΈ NAME πΈ
al_ustr_compare β Allegro 5 API
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
int al_ustr_compare(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2)
π¦ DESCRIPTION π¦
This function compares us1 and us2 by code point values. No cap.
Returns zero if the strings are equal, a positive number if us1 comes after us2, else a negative number. That's the whole mood. β
It does not take into account locale-specific sorting rules. For that, you will need to use another library. So don't come for this function for your fancy locale-aware sort, okay? It said what it said. π
π SEE ALSO π
Source/version: Allegro reference manual for al_ustr_compare(3); date: not listed on this page, so I'm not inventing one, bestie. π«Ά
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms