GATE
|
Miscellaneous utilities and helper functions. More...
#include "gate/gate_core_api.h"
#include "gate/gatetypes.h"
#include "gate/strings.h"
#include "gate/maps.h"
#include "gate/arrays.h"
#include "gate/streams.h"
#include "gate/typeids.h"
Functions | |
GATE_CORE_API gate_map_t * | gate_util_stringmap_create (gate_map_t *m) |
GATE_CORE_API gate_map_t * | gate_util_stringmap_create_ex (gate_map_t *m, gate_bool_t duplicate_ctor, gate_bool_t ignore_case) |
GATE_CORE_API gate_string_t const * | gate_util_stringmap_get (gate_map_t *m, char const *key) |
GATE_CORE_API gate_string_t const * | gate_util_stringmap_get_string (gate_map_t *m, gate_string_t const *key) |
GATE_CORE_API gate_map_iterator_t | gate_util_stringmap_add (gate_map_t *m, char const *key, char const *value) |
GATE_CORE_API gate_map_iterator_t | gate_util_stringmap_add_string (gate_map_t *m, gate_string_t const *key, gate_string_t const *value) |
GATE_CORE_API gate_set_t * | gate_util_stringset_create (gate_set_t *s) |
GATE_CORE_API gate_bool_t | gate_util_stringset_contains_string (gate_set_t *s, gate_string_t const *key) |
GATE_CORE_API gate_bool_t | gate_util_stringset_contains (gate_set_t *s, char const *key) |
GATE_CORE_API gate_bool_t | gate_util_stringset_add_string (gate_set_t *s, gate_string_t const *key) |
GATE_CORE_API gate_bool_t | gate_util_stringset_add (gate_set_t *s, char const *key) |
GATE_CORE_API gate_bool_t | gate_util_stringset_remove_string (gate_set_t *s, gate_string_t const *key) |
GATE_CORE_API gate_bool_t | gate_util_stringset_remove (gate_set_t *s, char const *key) |
GATE_CORE_API gate_arraylist_t | gate_util_stringarray_create () |
GATE_CORE_API gate_arraylist_t | gate_util_stringarray_create_duplicate (gate_size_t prealloc) |
GATE_CORE_API gate_string_t const * | gate_util_stringarray_add (gate_arraylist_t lst, gate_string_t const *new_entry) |
GATE_CORE_API gate_string_t const * | gate_util_stringarray_add_str (gate_arraylist_t list, char const *new_entry) |
GATE_CORE_API gate_bool_t | gate_util_string_eval_bool (gate_string_t const *str) |
GATE_CORE_API gate_arraylist_t | gate_util_map_export_keys (gate_map_t *m) |
GATE_CORE_API gate_arraylist_t | gate_util_map_export_values (gate_map_t *m) |
GATE_CORE_API gate_result_t | gate_util_buffer_load (char const **ptrbuffer, gate_size_t *ptrbuffersize, gate_stream_t *srcstream, gate_memstream_t **membuffer) |
GATE_CORE_API gate_size_t | gate_util_print_byte_size (gate_uint64_t bytes, gate_char8_t *dest_buffer, gate_size_t dest_size) |
GATE_CORE_API gate_size_t | gate_util_print_duration (gate_uint64_t seconds, gate_char8_t *dest_buffer, gate_size_t dest_size, gate_bool_t shortFormat) |
GATE_CORE_API gate_string_t * | gate_util_int_to_string (gate_string_t *output, gate_int64_t input) |
GATE_CORE_API gate_string_t * | gate_util_uint_to_string (gate_string_t *output, gate_uint64_t input) |
GATE_CORE_API gate_string_t * | gate_util_real_to_string (gate_string_t *output, gate_real64_t input, unsigned int_len, unsigned decimal_len, unsigned group_len) |
GATE_CORE_API gate_int64_t | gate_util_string_to_int (gate_string_t const *input) |
GATE_CORE_API gate_uint64_t | gate_util_string_to_uint (gate_string_t const *input) |
GATE_CORE_API gate_real64_t | gate_util_string_to_real (gate_string_t const *input) |
GATE_CORE_API gate_result_t | gate_util_dump_type (gate_stream_t *target, gate_type_id_t type, void const *data) |
GATE_CORE_API gate_result_t | gate_util_dump_struct (gate_stream_t *target, void const *ptr_input_struct) |
GATE_CORE_API gate_result_t | gate_util_dump_property (gate_stream_t *target, void const *ptr_input_property) |
Miscellaneous utilities and helper functions.