mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Improve the long description of GString
It is more similar to a Java StringBuffer than to a C string. See bug 612439.
This commit is contained in:
parent
2504ec988e
commit
0c357a2d14
@ -6,10 +6,11 @@ text buffers which grow automatically as text is added
|
|||||||
|
|
||||||
<!-- ##### SECTION Long_Description ##### -->
|
<!-- ##### SECTION Long_Description ##### -->
|
||||||
<para>
|
<para>
|
||||||
A #GString is similar to a standard C string, except that it grows
|
A #GString is an object that handles the memory management of a C string
|
||||||
automatically as text is appended or inserted. Also, it stores the
|
for you. You can think of it as similar to a Java StringBuffer.
|
||||||
length of the string, so can be used for binary data with embedded
|
In addition to the string itself, GString stores the length of the string,
|
||||||
nul bytes.
|
so can be used for binary data with embedded nul bytes. To access the C
|
||||||
|
string managed by the GString @string, simply use @string->str.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<!-- ##### SECTION See_Also ##### -->
|
<!-- ##### SECTION See_Also ##### -->
|
||||||
|
Loading…
Reference in New Issue
Block a user