#include <goffice/goffice-config.h>#include "go-glib-extras.h"#include <glib/gi18n-lib.h>#include <gsf/gsf-impl-utils.h>#include <libxml/encoding.h>#include <stdlib.h>#include <math.h>#include <stdio.h>#include <string.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <errno.h>Classes | |
| struct | _go_mem_chunk_freeblock |
| struct | _go_mem_chunk_block |
| struct | _GOMemChunk |
Typedefs | |
| typedef struct _go_mem_chunk_freeblock | go_mem_chunk_freeblock |
| typedef struct _go_mem_chunk_block | go_mem_chunk_block |
Functions | |
| static void | cb_hash_collect_keys (gpointer key, gpointer value, GSList **accum) |
| GSList * | go_hash_keys (GHashTable *hash) |
| go_hash_keys : : GHashTable | |
| static void | cb_hash_collect_values (gpointer key, gpointer value, GSList **accum) |
| GSList * | go_hash_values (GHashTable *hash) |
| go_hash_values : : GHashTable | |
| void | go_ptr_array_insert (GPtrArray *array, gpointer value, int index) |
| GSList * | go_slist_create (gpointer item1,...) |
| go_slist_create: : First item. | |
| GSList * | go_slist_map (GSList const *list, GOMapFunc map_func) |
| go_slist_map: : list of some items : mapping function | |
| void | go_slist_free_custom (GSList *list, GFreeFunc free_func) |
| go_slist_free_custom: : list of some items : function freeing list item | |
| gint | go_list_index_custom (GList *list, gpointer data, GCompareFunc cmp_func) |
| void | go_list_free_custom (GList *list, GFreeFunc free_func) |
| go_list_free_custom: : list of some items : function freeing list item | |
| GSList * | go_strsplit_to_slist (gchar const *string, gchar delimiter) |
| go_strsplit_to_slist: : String to split : Token delimiter | |
| gint | go_utf8_collate_casefold (const char *a, const char *b) |
| gint | go_ascii_strcase_equal (gconstpointer v1, gconstpointer v2) |
| guint | go_ascii_strcase_hash (gconstpointer v) |
| void | go_strescape (GString *target, char const *string) |
| const char * | go_strunescape (GString *target, const char *string) |
| void | go_string_append_gstring (GString *target, const GString *source) |
| char * | go_utf8_strcapital (const char *p, gssize len) |
go_utf8_strcapital: : pointer to UTF-8 string : length in bytes, or -1. | |
| GOMemChunk * | go_mem_chunk_new (char const *name, size_t user_atom_size, size_t chunk_size) |
| void | go_mem_chunk_destroy (GOMemChunk *chunk, gboolean expect_leaks) |
| gpointer | go_mem_chunk_alloc (GOMemChunk *chunk) |
| gpointer | go_mem_chunk_alloc0 (GOMemChunk *chunk) |
| void | go_mem_chunk_free (GOMemChunk *chunk, gpointer mem) |
| void | go_mem_chunk_foreach_leak (GOMemChunk *chunk, GFunc cb, gpointer user) |
| int | go_str_compare (void const *x, void const *y) |
| const char * | go_guess_encoding (const char *raw, size_t len, const char *user_guess, char **utf8_str) |
| char const * | go_get_real_name (void) |
| go_get_real_name : | |
| void | go_destroy_password (char *passwd) |
| go_destroy_password : | |
| void | go_object_toggle (gpointer object, const gchar *property_name) |
| go_object_toggle: toggle a boolean object property. | |
| GSList * | go_object_properties_collect (GObject *obj) |
| void | go_object_properties_apply (GObject *obj, GSList *props, gboolean changed_only) |
| void | go_object_properties_free (GSList *props) |
| typedef struct _go_mem_chunk_block go_mem_chunk_block |
| typedef struct _go_mem_chunk_freeblock go_mem_chunk_freeblock |
Referenced by go_hash_keys().
Referenced by go_hash_values().
| gint go_ascii_strcase_equal | ( | gconstpointer | v1, | |
| gconstpointer | v2 | |||
| ) |
| guint go_ascii_strcase_hash | ( | gconstpointer | v | ) |
References s.
| void go_destroy_password | ( | char * | passwd | ) |
go_destroy_password :
Overwrite a string holding a password. This is a separate routine to ensure that the compiler does not try to outsmart us.
Note: this does not free the memory.
| char const* go_get_real_name | ( | void | ) |
go_get_real_name :
Return a utf8 encoded string with the current user name. Caller should _NOT_ free the result.
References go_guess_encoding(), name, and void().
| const char* go_guess_encoding | ( | const char * | raw, | |
| size_t | len, | |||
| const char * | user_guess, | |||
| char ** | utf8_str | |||
| ) |
References abicollab::service::error().
Referenced by go_file_get_group_name(), go_file_get_owner_name(), and go_get_real_name().
| GSList* go_hash_keys | ( | GHashTable * | hash | ) |
go_hash_keys : : GHashTable
Collects an unordered list of the keys in .
Returns a list which the caller needs to free. The content has not additional references added
References cb_hash_collect_keys().
| GSList* go_hash_values | ( | GHashTable * | hash | ) |
go_hash_values : : GHashTable
Collects an unordered list of the values in .
Returns a list which the caller needs to free. The content has not additional references added
References cb_hash_collect_values().
| void go_list_free_custom | ( | GList * | list, | |
| GFreeFunc | free_func | |||
| ) |
go_list_free_custom: : list of some items : function freeing list item
Clears a list, calling for each list item.
| gint go_list_index_custom | ( | GList * | list, | |
| gpointer | data, | |||
| GCompareFunc | cmp_func | |||
| ) |
| gpointer go_mem_chunk_alloc | ( | GOMemChunk * | chunk | ) |
References _GOMemChunk::alignment, _GOMemChunk::atom_size, _GOMemChunk::atoms_per_block, _GOMemChunk::blocklist, _GOMemChunk::chunk_size, _go_mem_chunk_block::data, _GOMemChunk::freeblocks, _go_mem_chunk_block::freecount, _go_mem_chunk_block::freelist, _GOMemChunk::name, _go_mem_chunk_freeblock::next, and _go_mem_chunk_block::nonalloccount.
Referenced by go_mem_chunk_alloc0().
| gpointer go_mem_chunk_alloc0 | ( | GOMemChunk * | chunk | ) |
References go_mem_chunk_alloc(), and _GOMemChunk::user_atom_size.
| void go_mem_chunk_destroy | ( | GOMemChunk * | chunk, | |
| gboolean | expect_leaks | |||
| ) |
| void go_mem_chunk_foreach_leak | ( | GOMemChunk * | chunk, | |
| GFunc | cb, | |||
| gpointer | user | |||
| ) |
| void go_mem_chunk_free | ( | GOMemChunk * | chunk, | |
| gpointer | mem | |||
| ) |
References _GOMemChunk::alignment, _GOMemChunk::atoms_per_block, _GOMemChunk::blocklist, _go_mem_chunk_block::data, _GOMemChunk::freeblocks, _go_mem_chunk_block::freecount, _go_mem_chunk_block::freelist, _GOMemChunk::name, _go_mem_chunk_freeblock::next, _go_mem_chunk_block::nonalloccount, and _GOMemChunk::user_atom_size.
| GOMemChunk* go_mem_chunk_new | ( | char const * | name, | |
| size_t | user_atom_size, | |||
| size_t | chunk_size | |||
| ) |
| void go_object_properties_apply | ( | GObject * | obj, | |
| GSList * | props, | |||
| gboolean | changed_only | |||
| ) |
| GSList* go_object_properties_collect | ( | GObject * | obj | ) |
| void go_object_properties_free | ( | GSList * | props | ) |
| void go_object_toggle | ( | gpointer | object, | |
| const gchar * | property_name | |||
| ) |
go_object_toggle: toggle a boolean object property.
| void go_ptr_array_insert | ( | GPtrArray * | array, | |
| gpointer | value, | |||
| int | index | |||
| ) |
| GSList* go_slist_create | ( | gpointer | item1, | |
| ... | ||||
| ) |
go_slist_create: : First item.
Creates a GList from NULL-terminated list of arguments.
Return value: created list.
| void go_slist_free_custom | ( | GSList * | list, | |
| GFreeFunc | free_func | |||
| ) |
go_slist_free_custom: : list of some items : function freeing list item
Clears a list, calling for each list item.
| GSList* go_slist_map | ( | GSList const * | list, | |
| GOMapFunc | map_func | |||
| ) |
go_slist_map: : list of some items : mapping function
References GO_SLIST_FOREACH, and GO_SLIST_PREPEND.
| int go_str_compare | ( | void const * | x, | |
| void const * | y | |||
| ) |
| void go_strescape | ( | GString * | target, | |
| char const * | string | |||
| ) |
| void go_string_append_gstring | ( | GString * | target, | |
| const GString * | source | |||
| ) |
| GSList* go_strsplit_to_slist | ( | gchar const * | string, | |
| gchar | delimiter | |||
| ) |
go_strsplit_to_slist: : String to split : Token delimiter
Splits up string into tokens at delim and returns a string list.
Returns: string list which you should free after use using function e_free_string_list().
References gchar.
| const char* go_strunescape | ( | GString * | target, | |
| const char * | string | |||
| ) |
References abicollab::service::error().
| gint go_utf8_collate_casefold | ( | const char * | a, | |
| const char * | b | |||
| ) |
Referenced by go_url_check_extension().
| char* go_utf8_strcapital | ( | const char * | p, | |
| gssize | len | |||
| ) |
go_utf8_strcapital: : pointer to UTF-8 string : length in bytes, or -1.
Similar to g_utf8_strup and g_utf8_strup, except that this function creates a string "Very Much Like: This, One".
Return value: newly allocated string.
1.5.5