- Apr 23, 2013
-
-
Christian Hergert authored
-
Christian Hergert authored
-
Christian Hergert authored
-
- Apr 21, 2013
-
-
Christian Hergert authored
Add error type for tracking errors.
-
- Apr 20, 2013
-
-
Christian Hergert authored
-
- Apr 19, 2013
-
-
Christian Hergert authored
This makes it the same as bson_append_utf8() and BSON_TYPE_UTF8.
-
Christian Hergert authored
This allows you to iterate children documents or arrays on the stack using another bson_iter_t. bson_iter_t iter; bson_iter_t child; if (bson_iter_init_find(&iter, bson, "key")) { if (bson_iter_recurse(&iter, &child)) { /* do things with sub document. */ } } -
Christian Hergert authored
-
Christian Hergert authored
-
Christian Hergert authored
Counts the number of fields found in the BSON document.
-
Christian Hergert authored
This function locates a key within a BSON document using strcasecmp(). This means the find is case-insensitive.
-
- Apr 18, 2013
-
-
Christian Hergert authored
strndup() is not available everywhere, so implement our own simple version.
-
Christian Hergert authored
These are some useful routines for building strings. Especially when dealing with situations like host:port strings.
-
Christian Hergert authored
Drivers such as the C driver will likely want to use these things. So might as well keep the abstraction in one place.
-
- Apr 17, 2013
-
-
Christian Hergert authored
-
Christian Hergert authored
Switch to using bson_utf8_get_sequence() from bson_utf8_escape_for_json(). This removes the need for any external UTF-8 includes.
-
Christian Hergert authored
-
Christian Hergert authored
-
Christian Hergert authored
-
Christian Hergert authored
-
Christian Hergert authored
bson_utf8_next_char() supports fetching a pointer to the beginning of the next multi-byte sequence of a UTF-8 encoded string. bson_utf8_get_char() gets the current multi-byte sequence as a 32-bit unsigned integer.
-
- Apr 16, 2013
-
-
Christian Hergert authored
-
Christian Hergert authored
The inline buffer is 44 bytes, and 64 is the nearest power of two greater.
-
- Apr 15, 2013
-
-
Christian Hergert authored
-
Christian Hergert authored
-
- Apr 13, 2013
-
-
Christian Hergert authored
-
Christian Hergert authored
-
Christian Hergert authored
Includes a test for recursively built BSON documents.
-
Christian Hergert authored
-
Christian Hergert authored
We should enable -Wuninitialized.
-
- Apr 12, 2013
-
-
Christian Hergert authored
This helps by allowing the consumer to have a single realloc'able buffer for building a series of embedded BSON documents. The basic test passes, but many many more are needed.
-
Christian Hergert authored
-
- Apr 10, 2013
-
-
Christian Hergert authored
-
Christian Hergert authored
-
- Apr 06, 2013
-
-
Christian Hergert authored
-
Christian Hergert authored
-
Christian Hergert authored
-
Christian Hergert authored
-
Christian Hergert authored
-
Christian Hergert authored
-