Skip to content

Commit

Permalink
docs: add bson_string_t docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Hergert committed Dec 4, 2013
1 parent c13b519 commit 314b96c
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 172 deletions.
30 changes: 23 additions & 7 deletions doc/bson_string_append.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bson_string_append(3)
NAME
----

bson_string_append - TODO
bson_string_append, bson_string_append_c, bson_string_append_printf, bson_string_append_unichar - append to a bson_string_t


SYNOPSIS
Expand All @@ -18,33 +18,49 @@ SYNOPSIS
void
bson_string_append (bson_string_t *string,
const char *str);

void
bson_string_append_c (bson_string_t *string,
char str);

void
bson_string_append_printf (bson_string_t *string,
const char *format,
...);

void
bson_string_append_unichar (bson_string_t *string,
bson_unichar_t unichar);
-----------------------


DESCRIPTION
-----------

The _bson_string_append()_ function shall
The _bson_string_append()_ function shall copy the contents of _str_ onto the end of _string_.

The _bson_string_append_c()_ function shall append a single ascii character to the end of _string_.

RETURN VALUE
------------
The _bson_string_append_printf()_ function shall format a string as specified by _format_ and append it to _string_.

TODO
The _bson_string_append_unichar()_ function shall append a single unicode character to the end of _string_.
It will be encoded into UTF-8.


ERRORS
------

No errors are defined.


SEE ALSO
--------

TODO
linkbson:bson_string_new[3]
linkbson:bson_string_free[3]


AUTHORS
-------
This page was written by MongoDB, Inc.

This page was written by MongoDB, Inc.
50 changes: 0 additions & 50 deletions doc/bson_string_append_c.txt

This file was deleted.

1 change: 1 addition & 0 deletions doc/bson_string_append_c.txt
51 changes: 0 additions & 51 deletions doc/bson_string_append_printf.txt

This file was deleted.

1 change: 1 addition & 0 deletions doc/bson_string_append_printf.txt
50 changes: 0 additions & 50 deletions doc/bson_string_append_unichar.txt

This file was deleted.

1 change: 1 addition & 0 deletions doc/bson_string_append_unichar.txt
17 changes: 7 additions & 10 deletions doc/bson_string_free.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bson_string_free(3)
NAME
----

bson_string_free - TODO
bson_string_free - free a bson_string_t.


SYNOPSIS
Expand All @@ -24,27 +24,24 @@ bson_string_free (bson_string_t *string,
DESCRIPTION
-----------

The _bson_string_free()_ function shall
The _bson_string_free()_ function shall free _string_.
If _free_segment_ is FALSE, then the built string will be returned to the caller.
Otherwise, the built string is also freed.


RETURN VALUE
------------

TODO
The built string if _free_segment_ is FALSE, otherwise NULL.


ERRORS
------
No errors are defined.


SEE ALSO
--------

TODO
No errors are defined.


AUTHORS
-------
This page was written by MongoDB, Inc.

This page was written by MongoDB, Inc.
12 changes: 8 additions & 4 deletions doc/bson_string_new.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bson_string_new(3)
NAME
----

bson_string_new - TODO
bson_string_new - create a new bson_string_t


SYNOPSIS
Expand All @@ -23,24 +23,28 @@ bson_string_new (const char *str);
DESCRIPTION
-----------

The _bson_string_new()_ function shall
The _bson_string_new()_ function shall create a new instance of _bson_string_t_.

If _str_ is non-NULL, it will be copied.


RETURN VALUE
------------

TODO
A newly allocated _bson_string_t_.


ERRORS
------

No errors are defined.


SEE ALSO
--------

TODO
linkbson:bson_string_append[3]
linkbson:bson_string_free[3]


AUTHORS
Expand Down

0 comments on commit 314b96c

Please sign in to comment.