Exemple #1
0
void	CInifile::remove_line	( LPCSTR S, LPCSTR L )
{
    R_ASSERT	(!m_flags.test(eReadOnly));

    if (line_exist(S,L)) {
        Sect&	data	= r_section	(S);
        SectIt_ A = std::lower_bound(data.Data.begin(),data.Data.end(),L,item_pred);
        R_ASSERT(A!=data.Data.end() && xr_strcmp(*A->first,L)==0);
        data.Data.erase(A);
    }
}
Exemple #2
0
BOOL			CInifile::line_exist	( const shared_str& S, const shared_str& L )	{
    return	line_exist(*S,*L);
}
int		line_exist_file(t_hs path, t_hs line)
{
  if (!file_exist(path))
    return (-1);
  return (line_exist(path, line));
}