.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "BSON_DECIMAL128_FROM_STRING_W_LEN" "3" "Feb 22, 2024" "1.26.0" "libbson" .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX bool bson_decimal128_from_string_w_len (const char *string, int len, bson_decimal128_t *dec); .EE .UNINDENT .UNINDENT .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBstring\fP: A string containing ASCII encoded Decimal128. .IP \(bu 2 \fBlen\fP: The length of \fBstring\fP in bytes, or \-1 meaning the string is null\-terminated. .IP \(bu 2 \fBdec\fP: A \fI\%bson_decimal128_t\fP\&. .UNINDENT .SH DESCRIPTION .sp Parses the string containing ascii encoded Decimal128 and initialize the bytes in \fBdec\fP\&. See the \fI\%Decimal128 specification\fP for the exact string format. .SH RETURNS .sp Returns \fBtrue\fP if valid Decimal128 string was provided, otherwise \fBfalse\fP and \fBdec\fP will be set to \fBNaN\fP\&. .SH EXAMPLE .INDENT 0.0 .INDENT 3.5 .sp .EX bson_decimal128_t dec; bson_decimal128_from_string_w_len (\(dq1.00\(dq, 4, &dec); bson_decimal128_from_string_w_len (\(dq1.00\(dq, \-1, &dec); .EE .UNINDENT .UNINDENT .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .