mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-29 04:39:10 +00:00
LibCore: Add getter for how many groups exist in a Core::ConfigFile
This can be used by an application to find out if any config sections were loaded from the file after a reparse.
This commit is contained in:
parent
fc9cc74555
commit
b15fe2b926
Notes:
sideshowbarker
2024-07-18 11:15:18 +09:00
Author: https://github.com/ADKaster
Commit: b15fe2b926
Pull-request: https://github.com/SerenityOS/serenity/pull/8283
Reviewed-by: https://github.com/alimpfard
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ public:
|
|||
Vector<String> groups() const;
|
||||
Vector<String> keys(const String& group) const;
|
||||
|
||||
size_t num_groups() const { return m_groups.size(); }
|
||||
|
||||
String read_entry(const String& group, const String& key, const String& default_value = String()) const;
|
||||
int read_num_entry(const String& group, const String& key, int default_value = 0) const;
|
||||
bool read_bool_entry(const String& group, const String& key, bool default_value = false) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue