Skip to content

Namespace inih

Namespace List > inih

More...

Classes

Type Name
class INIReader
class INIWriter

Public Types

Type Name
typedef int(* ini_handler
typedef char *(* ini_reader

Public Functions

Type Name
int ini_parse (const char * filename, ini_handler handler, void * user)
int ini_parse_file (FILE * file, ini_handler handler, void * user)
int ini_parse_stream (ini_reader reader, void * stream, ini_handler handler, void * user)

Public Static Functions

Type Name
char * find_chars_or_comment (const char * s, const char * chars)
char * lskip (const char * s)
char * rstrip (char * s)
char * strncpy0 (char * dest, const char * src, size_t size)

Detailed Description

Yet another .ini parser for modern c++ (made for cpp17), inspired and extend from @benhoyt's inih. See project page: https://github.com/SSARCandy/ini-cpp

Public Types Documentation

typedef ini_handler

typedef int(* inih::ini_handler) (void *user, const char *section, const char *name, const char *value);

typedef ini_reader

typedef char*(* inih::ini_reader) (char *str, int num, void *stream);

Public Functions Documentation

function ini_parse

inline int inih::ini_parse (
    const char * filename,
    ini_handler handler,
    void * user
) 

function ini_parse_file

inline int inih::ini_parse_file (
    FILE * file,
    ini_handler handler,
    void * user
) 

function ini_parse_stream

inline int inih::ini_parse_stream (
    ini_reader reader,
    void * stream,
    ini_handler handler,
    void * user
) 

Public Static Functions Documentation

function find_chars_or_comment

static inline char * inih::find_chars_or_comment (
    const char * s,
    const char * chars
) 

function lskip

static inline char * inih::lskip (
    const char * s
) 

function rstrip

static inline char * inih::rstrip (
    char * s
) 

function strncpy0

static inline char * inih::strncpy0 (
    char * dest,
    const char * src,
    size_t size
) 


The documentation for this class was generated from the following file src/utils/Ini.h