Lines Matching refs:sec
62 [§ion](const section_t& sec) { return sec.name == section; }); in Find() argument
77 [§ion](const section_t& sec) { return sec.name == section; }); in section_find() argument
83 auto sec = section_find(config, section); in entry_find() local
84 if (sec == config.sections.end()) return nullptr; in entry_find()
86 for (const entry_t& entry : sec->entries) { in entry_find()
133 for (const section_t& sec : src.sections) { in config_new_clone() local
134 for (const entry_t& entry : sec.entries) { in config_new_clone()
135 config_set_string(ret.get(), sec.name, entry.key, entry.value); in config_new_clone()
211 auto sec = section_find(*config, section); in config_set_string() local
212 if (sec == config->sections.end()) { in config_set_string()
214 sec = std::prev(config->sections.end()); in config_set_string()
226 for (entry_t& entry : sec->entries) { in config_set_string()
233 sec->entries.emplace_back(entry_t{.key = key, .value = value_no_newline}); in config_set_string()
239 auto sec = section_find(*config, section); in config_remove_section() local
240 if (sec == config->sections.end()) return false; in config_remove_section()
242 config->sections.erase(sec); in config_remove_section()
249 auto sec = section_find(*config, section); in config_remove_key() local
250 if (sec == config->sections.end()) return false; in config_remove_key()
252 for (auto entry = sec->entries.begin(); entry != sec->entries.end(); in config_remove_key()
255 sec->entries.erase(entry); in config_remove_key()