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