bson_oid_is_valid man page

bson_oid_is_valid() — Checks if a string containing a hex encoded string is a valid BSON ObjectID.

Synopsis

bool
bson_oid_is_valid (const char *str,
                   size_t      length);

Parameters

str
A string.
length
The length of str

Description

Checks if a string containing a hex encoded string is a valid BSON ObjectID.

Returns

true if str could be parsed.

Colophon

This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

Referenced By

bson_oid_t(3).

2016‐09‐02 libbson