libamxc
1.10.3
C Generic Data Containers
|
#include <amxc/amxc_variant.h>
Go to the source code of this file.
Typedefs | |
typedef enum _amxc_string_split_status | amxc_string_split_status_t |
The possible string split errors. More... | |
typedef amxc_string_split_status_t(* | amxc_string_split_builder_t) (amxc_llist_t *all, amxc_var_t *var) |
Callback function definition. More... | |
Enumerations | |
enum | _amxc_string_split_status { AMXC_STRING_SPLIT_OK , AMXC_ERROR_STRING_SPLIT_INVALID_INPUT , AMXC_ERROR_STRING_MISSING_DQUOTE , AMXC_ERROR_STRING_MISSING_SQUOTE , AMXC_ERROR_STRING_MISSING_RBRACKET , AMXC_ERROR_STRING_MISSING_SBRACKET , AMXC_ERROR_STRING_MISSING_CBRACKET } |
The possible string split errors. More... | |
Functions | |
amxc_string_t * | amxc_string_get_from_llist (const amxc_llist_t *const llist, const unsigned int index) |
Helper function to be used with amxc_string_split_llist. More... | |
const char * | amxc_string_get_text_from_llist (const amxc_llist_t *const llist, const unsigned int index) |
Helper function to be used with amxc_string_split_llist. More... | |
amxc_string_split_status_t | amxc_string_split_word (const amxc_string_t *const string, amxc_llist_t *list, const char **reason) |
Split a string in individual words or punctuation signs. More... | |
amxc_string_split_status_t | amxc_string_split (const amxc_string_t *const string, amxc_var_t *var, amxc_string_split_builder_t fn, const char **reason) |
Split a string in individual words or punctuation signs. More... | |
amxc_string_split_status_t | amxc_string_csv_to_var (const amxc_string_t *const string, amxc_var_t *var, const char **reason) |
Split a string in individual parts assuming that the string contains comma separated values. More... | |
amxc_string_split_status_t | amxc_string_ssv_to_var (const amxc_string_t *const string, amxc_var_t *var, const char **reason) |
Split a string in individual parts assuming that the string contains space separated values. More... | |
amxc_string_split_status_t | amxc_string_split_to_llist (const amxc_string_t *const string, amxc_llist_t *list, const char separator) |
Simple split function using a single character separator. More... | |