FcStrStr(3)

πŸ¦‹ NAME πŸ¦‹

okay bestie, welcome to the FcStrStr(3) page β€” and it's literally serving one job: locate a UTF-8 substring. FcStrStr does exactly what it says on the tin. πŸ’…

✨ SYNOPSIS ✨

#include <fontconfig/fontconfig.h>

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

πŸ’– DESCRIPTION πŸ’–

So you pass in s1 and s2, and FcStrStr returns the location of s2 in s1. Slay. ✨

If s2 is not present in s1, it returns NULL. No cap. 😭

And the cute part? This test will operate properly with UTF8 encoded strings. Periodt. 🫢


xoxo, your fontconfig bestie πŸ’– β€” this page is from Fontconfig 2.17.0, dated 27 June 2025 πŸŽ€

πŸ“¦ where this page comes from