37 #ifndef UCX_PROPERTIES_H 38 #define UCX_PROPERTIES_H The UCX string structure.
Definition: string.h:90
universe@390:
UcxProperties * ucx_properties_new()
Constructs a new UcxProperties object.
Definition: properties.c:35
universe@390:
char comment3
The third comment character.
Definition: properties.h:119
universe@390:
Main UCX Header providing most common definitions.
universe@390:
size_t pos
Current buffer position (don't set manually).
Definition: properties.h:70
universe@390:
char comment2
The second comment character.
Definition: properties.h:113
universe@390:
int ucx_properties_load(UcxMap *map, FILE *file)
Loads a properties file to a UcxMap.
Definition: properties.c:222
universe@390:
UcxProperties object for parsing properties data.
Definition: properties.h:53
universe@390:
size_t buflen
Length of the input buffer (don't set manually).
Definition: properties.h:64
universe@390:
char * buffer
Input buffer (don't set manually).
Definition: properties.h:58
universe@390:
int error
Parser error code.
Definition: properties.h:95
universe@390:
size_t tmplen
Internal temporary buffer length (don't set manually).
Definition: properties.h:82
universe@390:
char comment1
The first comment character.
Definition: properties.h:107
universe@390:
int ucx_properties_next(UcxProperties *prop, sstr_t *name, sstr_t *value)
Retrieves the next key/value-pair.
Definition: properties.c:80
universe@390:
int ucx_properties2map(UcxProperties *prop, UcxMap *map)
Retrieves all available key/value-pairs and puts them into a UcxMap.
Definition: properties.c:200
universe@390:
char delimiter
The delimiter that shall be used.
Definition: properties.h:101
universe@390:
char * tmp
Internal temporary buffer (don't set manually).
Definition: properties.h:76
universe@390:
Structure for the UCX map.
Definition: map.h:81
universe@390:
size_t tmpcap
Internal temporary buffer capacity (don't set manually).
Definition: properties.h:88
universe@390:
universe@390:
void ucx_properties_fill(UcxProperties *prop, char *buf, size_t len)
Sets the input buffer for the properties parser.
Definition: properties.c:64
universe@390:
int ucx_properties_store(UcxMap *map, FILE *file)
Stores a UcxMap to a file.
Definition: properties.c:242
universe@390:
void ucx_properties_free(UcxProperties *prop)
Destroys a UcxProperties object.
Definition: properties.c:57
universe@390: