16 #ifndef _RL_INI_FILE_H_ 17 #define _RL_INI_FILE_H_ 33 const char *
text(
const char *section,
const char *name);
34 void setText(
const char *section,
const char *name,
const char *
text);
35 int printf(
const char *section,
const char *name,
const char *format, ...);
36 void remove(
const char *section);
37 void remove(
const char *section,
const char *name);
40 const char *
firstName(
const char *section);
41 const char *
nextName(
const char *section);
51 const char *
i18n(
const char *tag,
const char *default_text=
"");
88 const char *
tr(
const char *txt);
105 void copyName(
char *buf,
const char *line);
106 void copyParam(
char *buf,
const char *line);
116 const char *
rltranslate(
const char *txt,
char **mytext=NULL);
117 const char *
rltranslate2(
const char *section,
const char *txt,
char **mytext=NULL);
118 #define rltr(txt) rltranslate(txt) 123 #define pvtr(txt) rltranslate2(p->lang_section,txt,&p->mytext2)
void copyName(char *buf, const char *line)
const char * nextSection()
const char * tr(const char *txt)
const char * i18n(const char *tag, const char *default_text="")
const char * text(const char *section, const char *name)
void copyIdentifier(char *buf, const char *line)
struct rlIniFile::_rlSectionName_ rlSectionName
int read(const char *filename)
const char * rltranslate(const char *txt, char **mytext=NULL)
const char * rltranslate2(const char *section, const char *txt, char **mytext=NULL)
void deleteSectionNames(rlSection *section)
void setText(const char *section, const char *name, const char *text)
void copyParam(char *buf, const char *line)
const char * firstSection()
rlSectionName * firstName
const char * defaultSection()
void setDefaultSection(const char *section)
_rlSection_ * nextSection
_rlSectionName_ * nextName
int rlSetTranslator(const char *language, const char *inifile=NULL)
rlSection * _firstSection
int printf(const char *section, const char *name, const char *format,...)
struct rlIniFile::_rlSection_ rlSection
const char * nextName(const char *section)
const char * firstName(const char *section)
int write(const char *filename)