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>
GCompletion;
GCompletion* g_completion_new (GCompletionFunc func);
gchar* (*GCompletionFunc) (gpointer);
void g_completion_add_items (GCompletion *cmp,
GList *items);
void g_completion_remove_items (GCompletion *cmp,
GList *items);
void g_completion_clear_items (GCompletion *cmp);
GList* g_completion_complete (GCompletion *cmp,
const gchar *prefix,
gchar **new_prefix);
GList* g_completion_complete_utf8 (GCompletion *cmp,
const gchar *prefix,
gchar **new_prefix);
void g_completion_set_compare (GCompletion *cmp,
GCompletionStrncmpFunc strncmp_func);
gint (*GCompletionStrncmpFunc) (const gchar *s1,
const gchar *s2,
gsize n);
void g_completion_free (GCompletion *cmp);
DescriptionGCompletion provides support for automatic completion of a string using any group of target strings. It is typically used for file name completion as is common in many UNIX shells.
A GCompletion is created using
Items in the completion can be simple strings (e.g. filenames),
or pointers to arbitrary data structures. If data structures are used
you must provide a GCompletionFunc in DetailsGCompletiontypedef struct {
GList* items;
GCompletionFunc func;
gchar* prefix;
GList* cache;
GCompletionStrncmpFunc strncmp_func;
} GCompletion;
The data structure used for automatic completion.
g_completion_new ()GCompletion* g_completion_new (GCompletionFunc func); Creates a new GCompletion.
GCompletionFunc ()gchar* (*GCompletionFunc) (gpointer);
Specifies the type of the function passed to
g_completion_add_items ()void g_completion_add_items (GCompletion *cmp, GList *items); Adds items to the GCompletion.
g_completion_remove_items ()void g_completion_remove_items (GCompletion *cmp, GList *items); Removes items from a GCompletion.
g_completion_clear_items ()void g_completion_clear_items (GCompletion *cmp); Removes all items from the GCompletion.
g_completion_complete ()GList* g_completion_complete (GCompletion *cmp, const gchar *prefix, gchar **new_prefix);
Attempts to complete the string
g_completion_complete_utf8 ()GList* g_completion_complete_utf8 (GCompletion *cmp, const gchar *prefix, gchar **new_prefix);
Attempts to complete the string
You should use this function instead of
Since 2.4 g_completion_set_compare ()void g_completion_set_compare (GCompletion *cmp, GCompletionStrncmpFunc strncmp_func);
Sets the function to use for string comparisons. The default
string comparison function is
GCompletionStrncmpFunc ()gint (*GCompletionStrncmpFunc) (const gchar *s1, const gchar *s2, gsize n);
Specifies the type of the function passed to
g_completion_free ()void g_completion_free (GCompletion *cmp); Frees all memory used by the GCompletion.
|
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0032 ]-- |