| 875 | void CInifile::w_bool(LPCSTR S, LPCSTR L, bool V) { w_string(S, L, V ? "true" : "false"); } |
| 876 | |
| 877 | void CInifile::remove_line(LPCSTR S, LPCSTR L) |
| 878 | { |
| 879 | // R_ASSERT(!bReadOnly); |
| 880 | |
| 881 | if (line_exist(S, L)) |
| 882 | { |
| 883 | Sect& data = r_section(S); |
| 884 | |
| 885 | auto A = data.Data.find(L); |
| 886 | R_ASSERT(A != data.Data.end()); |
| 887 | data.Data.erase(A); |
| 888 | |
| 889 | auto found = std::find_if(data.Ordered_Data.begin(), data.Ordered_Data.end(), [&](const auto& it) { return xr_strcmp(*it.first, L) == 0; }); |
| 890 | R_ASSERT(found != data.Ordered_Data.end()); |
| 891 | data.Ordered_Data.erase(found); |
| 892 | } |
| 893 | } |
| 894 | |
| 895 | void CInifile::remove_section(LPCSTR S) |
| 896 | { |