Copyright (C) 2000 Bill Gribble <grib@billgribble.com>
Copyright (C) 1997-2002,2004 Linas Vepstas <linas@linas.org>
Definition in file gnc-engine-util.h.
#include <glib.h>
#include <stddef.h>
#include "config.h"
#include "qof.h"
Go to the source code of this file.
typedef enum as string macros | |
| #define | ENUM_BODY(name, value) name value, |
| #define | AS_STRING_CASE(name, value) case name: { return #name; } |
| #define | FROM_STRING_CASE(name, value) |
| #define | DEFINE_ENUM(name, list) |
| #define | AS_STRING_DEC(name, list) const char* name##asString(name n); |
| #define | AS_STRING_FUNC(name, list) |
| #define | FROM_STRING_DEC(name, list) |
| #define | FROM_STRING_FUNC(name, list) |
enum as string with no typedef | |
| Similar but used when the enum is NOT a typedef note the LACK of a define_enum macro - don't use one!
ENUM_BODY is used in both types. | |
| #define | FROM_STRING_DEC_NON_TYPEDEF(name, list) |
| #define | FROM_STRING_CASE_NON_TYPEDEF(name, value) if (strcmp(str, #name) == 0) { *type = name; } |
| #define | FROM_STRING_FUNC_NON_TYPEDEF(name, list) |
| #define | AS_STRING_DEC_NON_TYPEDEF(name, list) const char* name##asString(enum name n); |
| #define | AS_STRING_FUNC_NON_TYPEDEF(name, list) |
| #define | AS_STRING_CASE_NON_TYPEDEF(name, value) case name: { return #name; } |
Convenience wrappers | |
| void | qof_init (void) |
| Initialise the Query Object Framework. | |
| void | qof_close (void) |
| Safely close down the Query Object Framework. | |
Defines | |
| #define | SAFE_STRCMP_REAL(fcn, da, db) |
| #define | SAFE_STRCMP(da, db) SAFE_STRCMP_REAL(strcmp,(da),(db)) |
| #define | SAFE_STRCASECMP(da, db) SAFE_STRCMP_REAL(strcasecmp,(da),(db)) |
| #define | GNC_SCANF_LLD "%qd" |
| #define | stpcpy gnc_stpcpy |
| #define | CACHE_INSERT(str) gnc_string_cache_insert((gpointer)(str)); |
| #define | CACHE_REMOVE(str) gnc_string_cache_remove((str)); |
Functions | |
| int | safe_strcmp (const char *da, const char *db) |
| int | safe_strcasecmp (const char *da, const char *db) |
| int | null_strcmp (const char *da, const char *db) |
| char * | strncasestr (const char *str1, const char *str2, size_t len) |
| char * | strcasestr (const char *str1, const char *str2) |
| char * | ultostr (unsigned long val, int base) |
| gboolean | gnc_strisnum (const char *s) |
| char * | gnc_stpcpy (char *dest, const char *src) |
| const char * | qof_util_whitespace_filter (const char *val) |
| int | qof_util_bool_to_int (const char *val) |
| GCache * | gnc_engine_get_string_cache (void) |
| void | gnc_engine_string_cache_destroy (void) |
| void | gnc_string_cache_remove (gconstpointer key) |
| gpointer | gnc_string_cache_insert (gpointer key) |
1.4.5