FcStrStrIgnoreCase(3)

πŸ’– FcStrStrIgnoreCase(3) πŸ’–

okay bestie, so this is one of those little fontconfig man pages (yes, from the fontconfig manual, section 3, we love a classic) and honestly? it's giving "small but mighty" ✨


🌸 NAME 🌸

FcStrStrIgnoreCase β€” find a UTF-8 substring but make it case-blind, no cap 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <fontconfig/fontconfig.h>

FcChar8 * FcStrStrIgnoreCase (const FcChar8 *s1, const FcChar8 *s2);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• β€” it hands you back the location of s2 inside s1, and it does it ignoring case. like, it literally does not care about uppercase vs lowercase, it's above all that drama πŸ’…

and if s2 is not present in s1? it gives you NULL. that's it, that's the whole situation 😭 no substring for you, bestie.

the important part: this test is case-insensitive for all proper UTF-8 encoded strings πŸ”₯ so it's not out here doing some janky ASCII-only thing β€” proper UTF-8, all of it, case-insensitive. iconic behavior, truly πŸ‘‘


ngl it's a tiny function but it's lowkey carrying the whole "does this string contain that string, vibes only" agenda πŸ’€

✨ that's the whole page, you ate that ✨

this lil masterpiece is from Fontconfig 2.17.0, dated 27 June 2025 β€” mwah, sending you off with a kiss and a πŸŽ€ fr fr πŸ’œ

πŸ“¦ where this page comes from