BSON_ITER_REGEX(3)
β¨ BSON_ITER_REGEX(3) β¨
okay so bestie, this is a libbson page π
and honestly it's a short one, so let's get into it π
πΈ SYNOPSIS πΈ
const char *
bson_iter_regex (const bson_iter_t *iter, const char **options);
π PARAMETERS π
iterβ abson_iter_t. that's your iterator bestie, the little main character doing the walking πoptionsβ a(null). yes literally, that's what it says. this is aconst char **out-param situation π«Ά
π¦ DESCRIPTION π¦
so the bson_iter_regex() function shall retrieve the contents of a BSON_TYPE_REGEX element that iter is currently observing. like, it grabs the regex for you, no cap β¨
β οΈ okay important vibe check: it is invalid to call this function when you're not observing an element of type BSON_TYPE_REGEX. fr fr, don't do it π
β RETURNS β
a string containing the regex π β and listen, this string should not be modified or freed, so hands off, it's not yours π
and options gets set to the options provided for the regex. iconic π
π AUTHOR π
MongoDB, Inc π
π COPYRIGHT π
2009-present, MongoDB, Inc. π
and that's the whole page bestie, we ate and left no crumbs π
β¨ this was libbson version 2.5.6, dated Oct 09, 2026 β see you in the next one π§ββοΈπ«Ά
π¦ where this page comes from
- epel 10: libbson-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