Lines Matching full:dictionary
96 @brief Get number of sections in a dictionary
97 @param d Dictionary to examine
98 @return int Number of sections found in dictionary
100 This function returns the number of sections found in a dictionary.
102 dictionary: a section name is given as "section" whereas a key is
112 int iniparser_getnsec(dictionary * d)
131 @brief Get name for section n in a dictionary.
132 @param d Dictionary to examine
136 This function locates the n-th section in a dictionary and returns
138 dictionary. Do not free or modify the returned string!
143 char * iniparser_getsecname(dictionary * d, int n)
167 @brief Dump a dictionary to an opened file pointer.
168 @param d Dictionary to dump.
172 This function prints out the contents of a dictionary, one element by
178 void iniparser_dump(dictionary * d, FILE * f)
197 @brief Save a dictionary to a loadable ini file
198 @param d Dictionary to dump
202 This function dumps a given dictionary into a loadable ini file.
206 void iniparser_dump_ini(dictionary * d, FILE * f)
234 @brief Save a dictionary section to a loadable ini file
235 @param d Dictionary to dump
236 @param s Section name of dictionary to dump
240 This function dumps a given section of a given dictionary into a loadable ini
244 void iniparser_dumpsection_ini(dictionary * d, char * s, FILE * f)
272 @brief Get the number of keys in a section of a dictionary.
273 @param d Dictionary to examine
274 @param s Section name of dictionary to examine
278 int iniparser_getsecnkeys(dictionary * d, char * s)
305 @brief Get the number of keys in a section of a dictionary.
306 @param d Dictionary to examine
307 @param s Section name of dictionary to examine
310 This function queries a dictionary and finds all keys in a given section.
312 a string allocated in the dictionary; do not free or modify them.
317 char ** iniparser_getseckeys(dictionary * d, char * s)
356 @param d Dictionary to search
361 This function queries a dictionary for a key. A key as read from an
365 the dictionary, do not free or modify it.
368 char * iniparser_getstring(dictionary * d, const char * key, char * def)
384 @param d Dictionary to search
389 This function queries a dictionary for a key. A key as read from an
408 int iniparser_getint(dictionary * d, const char * key, int notfound)
420 @param d Dictionary to search
425 This function queries a dictionary for a key. A key as read from an
430 double iniparser_getdouble(dictionary * d, const char * key, double notfound)
442 @param d Dictionary to search
447 This function queries a dictionary for a key. A key as read from an
471 int iniparser_getboolean(dictionary * d, const char * key, int notfound)
490 @brief Finds out if a given entry exists in a dictionary
491 @param ini Dictionary to search
495 Finds out if a given entry exists in the dictionary. Since sections
497 of querying for the presence of sections in a dictionary.
501 dictionary * ini,
514 @brief Set an entry in a dictionary.
515 @param ini Dictionary to modify.
520 If the given entry can be found in the dictionary, it is modified to
525 int iniparser_set(dictionary * ini, const char * entry, const char * val)
532 @brief Delete an entry in a dictionary
533 @param ini Dictionary to modify
537 If the given entry can be found, it is deleted from the dictionary.
540 void iniparser_unset(dictionary * ini, const char * entry)
617 @brief Parse an ini file and return an allocated dictionary object
619 @return Pointer to newly allocated dictionary
622 the name of the file to be read. It returns a dictionary object that
626 The returned dictionary must be freed using iniparser_freedict().
629 dictionary * iniparser_load(const char * ininame)
644 dictionary * dict ;
734 @brief Free all memory associated to an ini dictionary
735 @param d Dictionary to free
738 Free all memory associated to an ini dictionary.
739 It is mandatory to call this function before the dictionary object
743 void iniparser_freedict(dictionary * d)