al_ustr_compare(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

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