libconfini
Yet another INI parser
Function Overview

Complete list of functions

What follows here is the list of public functions available with libconfini. Almost each of them is independent, hence if you are compiling the library you may decide to remove the functions listed below from the code, with the only exceptions of ini_string_match_ii(), required by ini_array_match(), and strip_ini_cache(), required by both load_ini_file() and load_ini_path().

strip_ini_cache()

Parses and tokenizes a buffer containing an INI file, then dispatches its content to a custom callback.

load_ini_file()

Parses an INI file and dispatches its content using a FILE structure as argument.

load_ini_path()

Parses an INI file and dispatches its content using a path as argument.

ini_string_match_ss()

Compares two simple strings and checks if they match.

ini_string_match_si()

Compares a simple string and an INI string and and checks if they match.

ini_string_match_ii()

Compares two INI strings and checks if they match.

ini_array_match()

Compares two INI arrays and checks if they match.

ini_unquote()

Unescapes \', \", and \\ and removes all unescaped quotes (if single/double quotes are considered metacharacters in respect to the format given)

ini_string_parse()

Unescapes \', \", and \\ and removes all unescaped quotes (if single/double quotes are considered metacharacters in respect to the format given); if the format allows it, sequences of one or more spaces out of quotes will be collapsed.

ini_array_get_length()

Gets the length of a stringified INI array in number of members.

ini_array_foreach()

Calls a custom function for each member of a stringified INI array, without modifying the content of the buffer – useful for read-only (const) stringified arrays.

ini_array_shift()

Shifts the location pointed by ini_strptr to the next member of the INI array (without modifying the content of the buffer), or to NULL if the INI array has no more members – useful for read-only (const) stringified arrays.

ini_array_collapse()

Compresses the distribution of the data in a stringified INI array by removing all the white spaces that surround its delimiters, empty quotes, collapsable spaces, etc.

ini_array_break()

Replaces the first delimiter found (together with the spaces that surround it) with \0

ini_array_release()

Replaces the first delimiter found (together with the spaces that surround it) with \0, then shifts the location pointed by ini_strptr to the next member of the INI array, or to NULL if the INI array has no more members.

ini_array_split()

Splits a stringified INI array into NUL-separated members and calls a custom function for each member.

ini_global_set_lowercase_mode()

Sets the value of the global variable INI_GLOBAL_LOWERCASE_MODE.

ini_global_set_implicit_value()

Sets the value to be to be assigned to implicit keys.

ini_fton()

Calculates the IniFormatNum of an IniFormat.

ini_ntof()

Constructs a new IniFormat according to an IniFormatNum.

ini_get_bool()

Checks whether a string matches one of the booleans listed in the private constant INI_BOOLEANS (case-insensitive)

ini_get_int()

Pointer to atoi()

ini_get_lint()

Pointer to atol()

ini_get_llint()

Pointer to atoll()

ini_get_double()

Pointer to atof()