fribidi_get_bracket(3)
π
fribidi_get_bracket β from the fribidi_get_bracket(3) Programmer's Manual
okay so bestie, buckle up, because we're talking about fribidi_get_bracket β the little function that gets you the bracketed character. that's the whole vibe. let's go π
β¨ NAME β¨
fribidi_get_bracket β get bracketed character π«Ά
π¦ SYNOPSIS π¦
#include <../fribidi/lib/fribidi.h>
FriBidiBracketType fribidi_get_bracket(FriBidiChar ch);
πΈ PARAMETERS πΈ
FriBidiChar chβ the input character. that's it. that's the whole parameter. she's low maintenance π
π DESCRIPTION π
okay so here's what she does β¨ this function finds the bracketed equivalent of a character, and it pulls that straight from the file BidiBrackets.txt in the Unicode Character Database, which lives at http://www.unicode.org/Public/UNIDATA/BidiBrackets.txt β go off, Unicode π
so like, if the input character is a declared brackets character in the Unicode standard and it has a bracketed equivalent, then the matching bracketed character gets put in the output. and if it doesn't? no stress β the input character itself just gets put instead. literally "you are your own bracket" energy ππ«Ά
ngl the wording in the original is a little chaotic ("If the input character is a declared as a brackets character...") but the meaning is exactly what I said above β declared bracket + has a bracketed equivalent = matching bracket comes out, otherwise you get the input character back. periodt. π
π RETURNS π
she returns the bracket type of the character π and here's the important bit, bestie: use FRIBIDI_IS_BRACKET(FriBidiBracketType) to test whether it's actually a valid property. don't skip the vibe check β
π₯ SEE ALSO π₯
okay this list is long long, but we do not gatekeep around here. every single one of these, coming right up π
fribidi_shape_arabic(3)fribidi_get_par_direction(3)fribidi_get_par_embedding_levels_ex(3)fribidi_reorder_line(3)fribidi_get_bidi_type(3)fribidi_get_bidi_types(3)fribidi_get_bidi_type_name(3)fribidi_charset_to_unicode(3)fribidi_unicode_to_charset(3)fribidi_parse_charset(3)fribidi_debug_status(3)fribidi_set_debug(3)fribidi_mirroring_status(3)fribidi_set_mirroring(3)fribidi_reorder_nsm_status(3)fribidi_set_reorder_nsm(3)fribidi_log2vis_get_embedding_levels(3)fribidi_get_type(3)fribidi_get_type_internal(3)fribidi_get_par_embedding_levels(3)fribidi_join_arabic(3)fribidi_get_joining_type(3)fribidi_get_joining_types(3)fribidi_get_joining_type_name(3)fribidi_get_mirror_char(3)fribidi_shape_mirroring(3)fribidi_get_bracket_types(3)fribidi_shape(3)fribidi_remove_bidi_marks(3)fribidi_log2vis(3)
and that's the whole page, bestie β go forth and bracket responsibly π
this cutie was generated by c2man from fribidi-brackets.h, dated 29 October 2026, and the manual page itself is fribidi_get_bracket(3). mwah πβ¨
π¦ where this page comes from
- arch rolling: fribidi 1.0.18-1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms