MONGOC_URI_UNESCAPE(3)
okay so bestie, welcome to the MONGOC_URI_UNESCAPE(3) page from libmongoc π this one is lowkey simple but highkey useful: it takes a URI-encoded string and unescapes it back to normal. slay. β¨
π SYNOPSIS π
char *
mongoc_uri_unescape (const char *escaped_string);
πΈ PARAMETERS πΈ
escaped_stringβ a utf8 encoded string. that's the whole input, bestie π«Ά
π¦ DESCRIPTION π¦
Unescapes an URI encoded string. literally the glow-up from escape codes back to readable text π
for example, "%40" would become "@". iconic behavior fr fr β¨
β RETURNS β
Returns a newly allocated string that should be freed with bson_free(). yes bestie, free it β don't leave your allocated memory just sitting there like an unread group chat π
If escaped_string contains an invalid UTF-8 character or an invalid escape sequence, it returns NULL. no cap, that's the dealbreaker vibe check π
π AUTHOR π
MongoDB, Inc β periodt π
π COPYRIGHT π
2009-present, MongoDB, Inc β the legal cuties have spoken π
signing off from the libmongoc corner of the group chat: version 2.5.6, dated Oct 09, 2026. bye bestie, go unescape something cute π«Άβ¨π
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms