GString: Tweak documentation, add g_string_free_to_bytes()
authorColin Walters <walters@verbum.org>
Tue, 29 May 2012 21:58:41 +0000 (17:58 -0400)
committerColin Walters <walters@verbum.org>
Fri, 6 Jul 2012 14:19:12 +0000 (10:19 -0400)
commit4ac0d78d5ddde773b7abf05e4c5e128a8acb835d
tree78b15c3a583ea9e73a965345a6d10d6de8646e2c
parentd72116d8b7c802895be6b02093342fd9e770813d
GString: Tweak documentation, add g_string_free_to_bytes()

The docs for GString should really mention GByteArray, and what makes
it different.  Drop the comparison to Java which is dated and actually
inaccurate (because StringBuffer operates on Unicode).

While we're here, add g_string_free_to_bytes(), which further
complements the spread of GBytes-based API.  For example, one can
create a buffer using GString, then send it off via
g_output_stream_write_bytes().

https://bugzilla.gnome.org/show_bug.cgi?id=677064
docs/reference/glib/glib-sections.txt
glib/glib.symbols
glib/gstring.c
glib/gstring.h
glib/tests/string.c