re_readparm(), re_readparm2(), re_readparm3(),
re_wreadparm(), re_wreadparm2(), re_wreadparm3()

extern KADMOS_ERROR KADMOS_API re_readparm
(ReParm *reparm, unsigned char *reject_level,
const char *file_title, const char *section);

extern KADMOS_ERROR KADMOS_API re_wreadparm
(ReParm *reparm, unsigned char *reject_level,
const wchar_t *file_title, const char *section);

extern KADMOS_ERROR KADMOS_API re_readparm2
(ReParm *reparm, ReSpellParm *rsp, unsigned char *reject_level,
const char *file_title, const char *section);

extern KADMOS_ERROR KADMOS_API re_wreadparm2
(ReParm *reparm, ReSpellParm *rsp, unsigned char *reject_level,
const wchar_t *file_title, const char *section);

extern KADMOS_ERROR KADMOS_API re_readparm3
(ReParm *reparm, ReSpellParm *rsp,
ReSpellParm *rsp2, unsigned char *reject_level,
const char *file_title, const char *section);

extern KADMOS_ERROR KADMOS_API re_wreadparm3
(ReParm *reparm, ReSpellParm *rsp,
ReSpellParm *rsp2, unsigned char *reject_level,
const wchar_t *file_title, const char *section);

Parameter:

reparm
Pointer to a structure ReParm.
rsp, rsp2
Pointer to a structure ReSpellParm.
reject_level
Pointer for the reject level to be read.
file_title
String with the name of the INI file to read.
section
Section of the INI file with the data.

Return value:

RE_SUCCESS or KADMOS error type.

Comment:

With this function the parameters of the structure ReParm can be read from INI files. In the INI file, the parameters are stored in and read from a section [section] under their respective names. The values of single parameters are stored and expected in the related data type. The specification of values using names (for example ALC_NUMERIC), is not yet implemented. Instead of ALC_NUMERIC | ALC_UCALPHA the value 0x00000006 must be specified. The proper format of the parameter files is best retrieved by calling re_writeparm():

      [ReParm]
      prep=2
      noise_diameter_percent=25
      code=100reject_limit=150
      trig_factor=100
      trig_maximum=32  
      

Reference: