Software: Apache/2.0.54 (Fedora). PHP/5.0.4 uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/share/gtk-doc/html/glib/ drwxr-xr-x |
Viewing file: Select action/file-type:
Synopsis#include <glib.h> GString; GString* g_string_new (const gchar *init); GString* g_string_new_len (const gchar *init, gssize len); GString* g_string_sized_new (gsize dfl_size); GString* g_string_assign (GString *string, const gchar *rval); #define g_string_sprintf #define g_string_sprintfa void g_string_printf (GString *string, const gchar *format, ...); void g_string_append_printf (GString *string, const gchar *format, ...); GString* g_string_append (GString *string, const gchar *val); GString* g_string_append_c (GString *string, gchar c); GString* g_string_append_unichar (GString *string, gunichar wc); GString* g_string_append_len (GString *string, const gchar *val, gssize len); GString* g_string_prepend (GString *string, const gchar *val); GString* g_string_prepend_c (GString *string, gchar c); GString* g_string_prepend_unichar (GString *string, gunichar wc); GString* g_string_prepend_len (GString *string, const gchar *val, gssize len); GString* g_string_insert (GString *string, gssize pos, const gchar *val); GString* g_string_insert_c (GString *string, gssize pos, gchar c); GString* g_string_insert_unichar (GString *string, gssize pos, gunichar wc); GString* g_string_insert_len (GString *string, gssize pos, const gchar *val, gssize len); GString* g_string_erase (GString *string, gssize pos, gssize len); GString* g_string_truncate (GString *string, gsize len); GString* g_string_set_size (GString *string, gsize len); gchar* g_string_free (GString *string, gboolean free_segment); GString* g_string_up (GString *string); GString* g_string_down (GString *string); guint g_string_hash (const GString *str); gboolean g_string_equal (const GString *v, const GString *v2); DescriptionA GString is similar to a standard C string, except that it grows automatically as text is appended or inserted. Also, it stores the length of the string, so can be used for binary data with embedded nul bytes. DetailsGStringtypedef struct { gchar *str; gsize len; gsize allocated_len; } GString;
The GString struct contains the public fields of a GString.
The
The g_string_new ()GString* g_string_new (const gchar *init); Creates a new GString, initialized with the given string.
g_string_new_len ()GString* g_string_new_len (const gchar *init, gssize len);
Creates a new GString with
g_string_sized_new ()GString* g_string_sized_new (gsize dfl_size);
Creates a new GString, with enough space for
g_string_assign ()GString* g_string_assign (GString *string, const gchar *rval);
Copies the characters from a string into a GString, destroying any previous
contents. It is rather like the standard g_string_sprintf#define g_string_sprintf Warning
Writes a formatted string into a GString.
This is similar to the standard g_string_sprintfa#define g_string_sprintfa Warning
Appends a formatted string onto the end of a GString.
This function is is similar to g_string_printf ()void g_string_printf (GString *string, const gchar *format, ...);
Writes a formatted string into a GString.
This is similar to the standard
g_string_append_printf ()void g_string_append_printf (GString *string, const gchar *format, ...);
Appends a formatted string onto the end of a GString.
This function is is similar to
g_string_append ()GString* g_string_append (GString *string, const gchar *val); Adds a string onto the end of a GString, expanding it if necessary. g_string_append_c ()GString* g_string_append_c (GString *string, gchar c); Adds a character onto the end of a GString, expanding it if necessary. g_string_append_unichar ()GString* g_string_append_unichar (GString *string, gunichar wc); Converts a Unicode character into UTF-8, and appends it to the string.
g_string_append_len ()GString* g_string_append_len (GString *string, const gchar *val, gssize len);
Appends g_string_prepend ()GString* g_string_prepend (GString *string, const gchar *val); Adds a string on to the start of a GString, expanding it if necessary. g_string_prepend_c ()GString* g_string_prepend_c (GString *string, gchar c); Adds a character onto the start of a GString, expanding it if necessary. g_string_prepend_unichar ()GString* g_string_prepend_unichar (GString *string, gunichar wc); Converts a Unicode character into UTF-8, and prepends it to the string.
g_string_prepend_len ()GString* g_string_prepend_len (GString *string, const gchar *val, gssize len);
Prepends g_string_insert ()GString* g_string_insert (GString *string, gssize pos, const gchar *val); Inserts a copy of a string into a GString, expanding it if necessary. g_string_insert_c ()GString* g_string_insert_c (GString *string, gssize pos, gchar c); Inserts a character into a GString, expanding it if necessary. g_string_insert_unichar ()GString* g_string_insert_unichar (GString *string, gssize pos, gunichar wc); Converts a Unicode character into UTF-8, and insert it into the string at the given position.
g_string_insert_len ()GString* g_string_insert_len (GString *string, gssize pos, const gchar *val, gssize len);
Inserts g_string_erase ()GString* g_string_erase (GString *string, gssize pos, gssize len);
Removes g_string_truncate ()GString* g_string_truncate (GString *string, gsize len);
Cuts off the end of the GString, leaving the first g_string_set_size ()GString* g_string_set_size (GString *string, gsize len); Sets the length of a GString. If the length is less than the current length, the string will be truncated. If the length is greater than the current length, the contents of the newly added area are undefined. (However, as always, string->str[string->len] will be a nul byte.)
g_string_free ()gchar* g_string_free (GString *string, gboolean free_segment);
Frees the memory allocated for the GString.
If
g_string_up ()GString* g_string_up (GString *string); Warning
Converts a GString to uppercase.
g_string_down ()GString* g_string_down (GString *string); Warning
Converts a GString to lowercase.
g_string_hash ()guint g_string_hash (const GString *str);
Creates a hash code for
|
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0044 ]-- |