BSON_STRING_APPEND_UNICHAR(3)
π BSON_STRING_APPEND_UNICHAR π
okay bestie, welcome to the libbson manual, section 3, and today's main character is bson_string_append_unichar. yes the name is a mouthful. no you don't have to say it out loud. π«Ά
β οΈ WARNING: Deprecated since version 1.29.0. she's retired, babes. still documented, still here, but the clock is ticking. π
β¨ SYNOPSIS β¨
void
bson_string_append_unichar (bson_string_t *string, bson_unichar_t unichar);
like, that's it. that's the whole vibe. void return, two args, no drama. π
π PARAMETERS π
stringβ abson_string_t. the string you're appending to, the canvas, the moment. πΈunicharβ abson_unichar_t. the unicode character you're yeeting in there. β¨
π¦ DESCRIPTION π¦
so what she does: she appends a unicode character to string. and the way that she does it is iconic β the character gets encoded into its multi-byte UTF-8 representation. like, one unicode char goes in, and it comes out as however many bytes UTF-8 decides it needs. slay. π₯
β οΈ WARNING: the length of the resulting string (including theNULLterminator) MUST NOT exceedUINT32_MAX. not "shouldn't", not "try not to". MUST NOT. fr fr. if you blow past that limit you're on your own and the vibes will be immaculate but catastrophic. π
π AUTHOR π
MongoDB, Inc β the icon, the legend, the moment. π
π COPYRIGHT π
2009-present, MongoDB, Inc. β all rights reserved, all vibes preserved. β
and that's the whole page bestie, no cap. this was libbson version 1.30.13, dated Oct 09, 2026, and it's giving "read the deprecation warning" energy. go forth and encode responsibly. π§ππ
π¦ where this page comes from
- fedora 43: libbson-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- fedora 43: libbson-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms